SpringBoot系列6-目录说明

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ytuglt/article/details/83549123

resources 目录说明

目录结构如下:
在这里插入图片描述

  • static : 保存所有的静态资源;js,css,images
  • templates: 保存所有的模板页面;(SpringBoot 默认jar包使用嵌入式的Tomcat ,默认不支持JSP页面);可以使用模板引擎(freemarker,thymeleaf)
  • application.properties: Spring Boot 应用的配置文件;如改变端口号可在配置文件中添加如下配置:
server.port=8082

重启应用程序就会发现端口已经变更了

猜你喜欢

转载自blog.csdn.net/ytuglt/article/details/83549123
今日推荐