Home
Sign Up
Sign In
V2EX
›
问与答
spring boot 中的静态资源能放在其他物理目录吗?
azev
·
Aug 3, 2018
· 1474 views
This topic created in 3019 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
·
499 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 21:47
·
PVG 05:47
·
LAX 13:47
·
JFK 16:47
♥ Do have faith in what you're doing.
❯