1. why
將靜態(tài)資源放在jar包外部,方便維護(hù)
2. how
在配置文件中增加static-locations抱完,可直接覆蓋默認(rèn)的靜態(tài)資源路徑配置信息
在application.yml中添加配置
spring:
resources:
static-locations: file:/uiboilermanage/
將靜態(tài)資源放在jar包外部,方便維護(hù)
在配置文件中增加static-locations抱完,可直接覆蓋默認(rèn)的靜態(tài)資源路徑配置信息
在application.yml中添加配置
spring:
resources:
static-locations: file:/uiboilermanage/