springboot發佈tomcat後靜態文件路徑問題

1.打成war發佈tomcat是否是有資源路徑問題? 修改application.properties文件 ; 添加: (sonicApplication,是對應war打包名)javascript server.servlet.context-path=/sonicApplication 2.若是用Thymeleaf 模板:修改html ,引用文件的方法,好比 <html lang="en" xm
相關文章
相關標籤/搜索