fix: 生产环境web静态资源目录配置

This commit is contained in:
xiongxiaoyang
2025-03-18 20:22:54 +08:00
parent 3858cd4e49
commit f5a9a7423f
3 changed files with 3 additions and 11 deletions

View File

@ -3,12 +3,13 @@ spring:
import: classpath:application-common-prod.yml
#静态文件路径配置
resources:
static-locations: file:${user.dir}/templates/${templates.name}/static/
#thymeleaf模版路径配置
thymeleaf:
prefix: file:${user.dir}/templates/${templates.name}/html/
suffix: .html
web:
resources:
static-locations: file:${user.dir}/templates/${templates.name}/static/
#模版配置
templates: