Home
Sign Up
Sign In
V2EX
›
问与答
spring boot 中的静态资源能放在其他物理目录吗?
azev
·
Aug 3, 2018
· 1487 views
This topic created in 3028 days ago, the information mentioned may be changed or developed.
现在都打进 jar 包里了 改东西有些麻烦
能不能像 thymeleaf 模板那样可以在程序配置文件中配置一个外部的文件夹
像这样 spring.thymeleaf.prefix=file:./templates/
最好是通过配置 不用加解析程序
jar
templates
thymeleaf
file
1 replies
azev
OP
Aug 3, 2018
1
查到了 可以用这个
spring.resources.static-locations
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2862 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 05:12
·
PVG 13:12
·
LAX 21:12
·
JFK 00:12
♥ Do have faith in what you're doing.
❯