Spring 5 & Spring Boot 2 Hands-on preparation procedure

2018-11-27 Upgraded to Spring 5.1 + Spring Boot 2.1!

For hands-on, bring your own laptop with the following preparations:

If you have any questions about preparation, please reply or DM to my account @suke_masa on Twitter and we will answer!

Download slides

This is the material for the Spring overview lecture that will be used in the first 30 minutes. It is convenient to download it from the URL below so that you can refer to it later in hands-on. https://www.slideshare.net/masatoshitada7/pivotalspring-framework-51-spring-boot-21-jjugccc

What to install in advance

We recommend a 64-bit OS with a memory of 4GB or more. The OS can be Windows / macOS / Linux.

The database and application server use the built-in one (H2, Embedded Tomcat), so there is no need to install it.

Source code clone

Please clone from GitHub with the following command.

$ git clone https://github.com/MasatoshiTada/spring5-boot2-handson.git

Import source code (for Eclipse)

(1) Start Eclipse. (2) Select [File]-[Import]. (3) Select [Maven]-[Existing Maven Project] and select [Next].

eclipse01.PNG

(4) Click the [Browse] button in the [Root Directory] and select the cloned [spring5-boot2-handson] folder.

eclipse02.PNG

(5) Make sure that all four projects [01-spring5], [02-spring5-answer], [03-boot2], and [04-boot2-answer] are displayed and checked, and then click [Finish]. ]Choose.

eclipse03.PNG

(6) The project import will start. It will take some time to download the library from Maven Central.

Import source code (for IntelliJ IDEA)

(1) Start IntelliJ IDEA and select [Import Project].

スクリーンショット 2018-07-08 17.23.48.png

(2) Select the cloned [spring5-boot2-handson] folder.

idea01.png

(3) Select [Import project from external model]-[Maven] and select [Next].

スクリーンショット 2018-07-08 17.05.08.png

(4) Check [Search for projects recursively] and select [Next].

スクリーンショット 2018-07-08 17.06.29.png

If the following screen appears before the next (5), just select [Next]. Then, the screen of (5) is displayed.

スクリーンショット 2018-12-10 10.32.04.png

(5) Make sure that all four projects [01-spring5], [02-spring5-answer], [03-boot2], and [04-boot2-answer] are displayed and checked, and then click [Next]. ]Choose.

If the above 4 projects are not displayed in the list, the folder selected in (2) may be incorrect.

スクリーンショット 2018-07-08 17.19.55.png

(6) Select [Finish] as it is.

スクリーンショット 2018-07-08 17.23.02.png

(7) The project import will start. It will take some time to download the library from Maven Central.

Confirmation of execution of answer example

(1) 02-spring5-answer There is a main () method in the com.example.Main class of the project, so execute it.

For Eclipse, execute [Run As]-[Java Application].

(2) Check the console. If there is no stack trace etc. and "Information: Starting ProtocolHandler [" http-nio-8080 "]" is displayed at the end, the embedded Tomcat is starting correctly on port number 8080.

スクリーンショット 2018-07-08 18.17.35.png

(3) Access http: // localhost: 8080 / sample / with a web browser. The login screen will be displayed. Please log in with your email address ʻ[email protected] and password ʻadmin.

(4) If the customer information for 5 people is displayed as shown below, it is successful.

スクリーンショット 2018-07-08 18.20.43.png

(5) Stop the main () method. This completes the preparation procedure.

Start of hands-on

(1) First, read through the slides.

(2) 01-spring5 / todo-1.md is the procedure of Exercise 1.

Recommended Posts

Spring 5 & Spring Boot 2 Hands-on preparation procedure
Spring Boot learning procedure
Akka hands-on preparation procedure from Java
Challenge Spring Boot
Spring Boot Form
Spring Boot Memorandum
gae + spring boot
JSUG Study Group 2018 Part 4 Spring 5 & Spring Boot 2 Hands-on Impressions
LINE Bot x Java (Spring Boot) construction procedure
SPRING BOOT learning record 01
Spring Boot + Heroku Postgres
Spring boot memo writing (1)
First Spring Boot (DI)
SPRING BOOT learning record 02
Spring Boot2 cheat sheet
Spring Boot exception handling
Spring Boot Servlet mapping
Spring boot development-development environment-
Learning Spring Boot [Beginning]
Spring boot memo writing (2)
Spring Boot 2.2 Document Summary
[Spring Boot] DataSourceProperties $ DataSourceBeanCreationException
Spring Boot 2.3 Application Availability
Spring boot tutorials Topics
Download with Spring Boot
[Spring Boot] Environment construction (macOS)
Set context-param in Spring Boot
Try Spring Boot from 0 to 100.
Generate barcode with Spring Boot
Hello World with Spring Boot
Spring Boot on Microsoft Azure
Implement GraphQL with Spring Boot
Get started with Spring boot
Hello World with Spring Boot!
Spring Boot 2 multi-project in Gradle
[Spring Boot] Web application creation
spring boot port duplication problem
Run LIFF with Spring Boot
SNS login with Spring Boot
Spring Boot Hot Swapping settings
[Java] Thymeleaf Basic (Spring Boot)
Introduction to Spring Boot ① ~ DI ~
File upload with Spring Boot
Spring Boot starting with copy
Introduction to Spring Boot ② ~ AOP ~
CICS-Run Java application-(4) Spring Boot application
Spring Boot starting with Docker
Spring Boot + Springfox springfox-boot-starter 3.0.0 Use
Spring Boot DB related tips
Hello World with Spring Boot
Introductory hands-on for beginners of Spring 5 & Spring Boot 2 has been released
Set cookies with Spring Boot
[Spring Boot] Easy paging recipe
Use Spring JDBC with Spring Boot
Docker × Spring Boot environment construction
Major changes in Spring Boot 1.5
Add module with Spring Boot
Getting Started with Spring Boot
NoHttpResponseException in Spring Boot + WireMock
[Spring Boot] Send an email
Spring Boot performance related settings