Quick build of Spring boot base-restfull API Simple Project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.