springboot idea to create a detailed tutorial demo project

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/sgl520lxl/article/details/82143992

1: In a new idea work space module

 

2: Set the port number that comes with the tomcat, then do not set the default 8080

 

3: hierarchical project needs to be created to start the class with the same level directory Figure

 

4: We write a test controller

 

5: Start project

 

6: Test Access

Successful visit.

Note: The third step is to set focus on the directory structure, setting error may access the report 404

Guess you like

Origin blog.csdn.net/sgl520lxl/article/details/82143992