1、file
2、new->Project
3、spring Initializr
(这里可以选maven项目,这样就没有springboot的方便性了,springboot中也有选择可以用maven来管理),用springboot项目的好处是src目录下自动生成了java的文件夹,不用手动建立。
4、这里可以选择maven project和maven pom(暂时没弄懂有什么区别)
5、选择spring boot的一些starter pom包:这里可以选择web 和 Thymeleaf 模板引擎
以上是新建操作结束了
6、在springboot的入口类(其实就是默认启动项的类)Demo5Application编写代码
idea新建spring boot项目步骤

7、在templates路径下新建index.html文件;注意在index.html文件中meta > 要加才能运行

注意:项目不能运行,springboot项目看浏览页的报错似乎没什么用,要看后端控制台的才有用

相关文章:

  • 2021-12-02
  • 2021-07-11
  • 2021-12-25
  • 2021-12-16
  • 2021-12-14
  • 2021-12-26
  • 2021-11-28
  • 2021-11-14
猜你喜欢
  • 2021-07-24
  • 2021-11-14
  • 2021-06-07
  • 2021-05-28
  • 2022-12-23
  • 2022-01-28
  • 2021-08-19
相关资源
相似解决方案