当前位置:网站首页>Idea create a new sprintboot project

Idea create a new sprintboot project

2022-07-05 10:18:00 Bu fan

1. New projects

 Insert picture description here
![ Insert picture description here ](https://img-blog.csdnimg.cn/50eefe3cadb546f4958e27f5720a7494.png
 Insert picture description here
 Insert picture description here

 Insert picture description here

2. Change maven

 Insert picture description here
 Insert picture description here
Rename the configuration file suffix
 Insert picture description here
 Insert picture description here
 Insert picture description here

3.mybatis Environment configuration

 Insert picture description here
 Insert picture description here
 Insert picture description here

 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

 Insert picture description here
Copied to the pom After the file , You need to click the small icon to refresh ,
 Insert picture description here
maven Before downloading

You can refresh or download again
 Insert picture description here

Write profile
 Insert picture description here
 Insert picture description here
Here we are ,springboot+springMVC+mybatis Environment is complete

4. stay idea Use in mysql

 Insert picture description here

 Insert picture description here

5. Automatically generate entities corresponding to database tables javabean

 Insert picture description here
 Insert picture description here
 Insert picture description here

6. Be careful : Every time you create a new project, you need to reconfigure maven

原网站

版权声明
本文为[Bu fan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050947169644.html