idea 搭建spring boot 项目

 

2

 

idea 搭建spring boot 项目

然后点击下面的next

之后点击web选择web 点击sql 选择mysql mybatis

idea 搭建spring boot 项目

点击next

idea 搭建spring boot 项目

idea 搭建spring boot 项目

 

如果你使用的数据库是mysql 那么需要配置下在idea 搭建spring boot 项目

里面填写

######3#######数据库配置################
spring.datasource.url=jdbc:mysql://localhost:3306/enterprise_manage_system
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

这些干什么的都有说明 换成自己的即可

测试一下, 在包里面填写数据

idea 搭建spring boot 项目

运行  

看最下面如果看到

idea 搭建spring boot 项目

started 多少秒也就说明启动成功

然后在浏览器中测试输入地址+端口号+he(自己去的)

 

相关文章: