resources 目录说明

目录结构如下:
SpringBoot系列6-目录说明

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

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

相关文章:

  • 2022-01-12
  • 2022-01-05
  • 2022-03-02
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2021-10-18
  • 2021-09-06
  • 2021-10-19
  • 2022-01-18
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案