【笔记】SpringBoot项目配置前端页面 发表于 2020-09-30 更新于 2023-06-10 阅读次数: 前言SpringBoot项目配置前端页面,需要引入thymeleaf和spring web依赖 配置12345678910# 单体架构spring.thymeleaf.prefix=classpath:/templates/# 前后端分离架构动态页面# spring.thymeleaf.prefix=file:/src/main/resources/templates/# spring.thymeleaf.prefix=file:///src/main/resources/templates/# spring.thymeleaf.prefix=http://localhost/# 前后端分离架构静态页面# spring.mvc.static-path-pattern= 完成