web项目,maven项目,springboot项目对比

web项目,maven项目,springboot项目对比

 使用eclipse创建的web项目结构

 web项目,maven项目,springboot项目对比

 使用eclipse创建的maven项目结构

web项目,maven项目,springboot项目对比

参考自https://blog.****.net/angelahhj/article/details/47952125

使用eclipse创建maven-web项目目录

web项目,maven项目,springboot项目对比

目录其实就是web和maven的和

参考https://www.cnblogs.com/hongmoshui/p/7994759.html

 使用eclipse创建springboot-web项目目录

web项目,maven项目,springboot项目对比

创建之后发现没有web项目的webapp或者webcontent等目录,它只有src目录

在src/main/resources下面有两个文件夹,static和templates   springboot默认 

static中放静态页面(可以直接访问),还可以建一个public包,这个包下的资源也能直接访问,但是若public和static下有同名的文件,就会只访问static下的

而templates中放动态页面,动态页面需要先请求服务器,访问后台应用程序,然后再转向到页面,比如访问JSP。spring boot建议不要使用JSP,默认使用Thymeleaf来做动态页面。

参考自https://www.cnblogs.com/wangshen31/p/8727359.html