Springboot——使用快速创建向导创建Springboot应用

使用Spring Initializer快速创建

IDE都支持使用Spring的项目创建向导快速创建一个 Springboot项目。

以IDEA为例:


取名

选择对应的模块,向导会联网创建相应的Springboot项目



生成的项目:


默认生成的Springboot项目:

1、主程序已经生成好了,我们只需要编写业务逻辑就好了

2、resources文件夹中目录结构

    ①static:保存所有的静态资源:js、css、images

    ②templates:保存所有的模板页面(Springboot默认jar使用嵌入式的Tomcat,默认不支持jsp页面),可以使用模板引擎    (framemaker、thymeleaf)

    ③application.properties:Springboot应用的配置文件(可以在这里更改默认的设置)


猜你喜欢

转载自blog.csdn.net/qq_30604989/article/details/80787513