Spring Boot Basic Tutorial 1-spring tool Suite Tools Installation
Spring Boot Basic Tutorial 2-restfull Quick build of API Simple project
Spring Boot Basic Tutorial 3-configuration file in detail: properties and Yaml
Spring Boot Basic Tutorial 4-Configuration Files-Multi-environment configuration
Spring Boot Basic Tutorial 5-Log configuration-logback and Log4j2
Source Address: Https://github.com/roncoo/spring-boot-demo
First, build a simple Restfull API interface Project
1, the introduction of Spring-boot-starter-web, its dependent on the package of learning
2, the introduction of Spring-boot-devtools, its dependent on the package of learning
3, the implementation of the Code
4. Running the project
Run the main method directly or use the MAVEN command: Spring-boot:run
Test: Http://localhost:8080/index
With parameters: http://localhost:8080/index/get?name=wujing
With parameter in Chinese: http://localhost:8080/index/get?name= Without Borders
URL Test: http://localhost:8080/index/get/1/wujing
URL test: http://localhost:8080/index/get/1/Without Borders
5. Packaged
Command: Clean Package
6. Run Command: Java–jar Roncoo-education-0.0.1-snapshot.jar
Quick build of Spring boot base-restfull API Simple Project