首页 文章
  • 0 votes
     answers
     views

    Spring 4 - 无法提供静态内容(bootstrap)

    我正在尝试在Spring Boot应用程序中提供一些静态内容(css和js文件) . 根据本指南(http://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot),src / main / resources / [static-public]中的所有内容都会自动添加到类路径中,因此可用 . 不幸的是,我设法...
  • -1 votes
     answers
     views

    spring boot静态资源404错误

    我正在研究 Spring 季靴子 . 现在我必须将我的静态资源部署到Web项目,并将其链接,但它会返回404错误 此外,当我访问“localhost:8080 / appie / resources / js / common.js”浏览器返回404错误(我的上下文路径是/ appie) . 那可能是什么原因? server.contextPath=/appie

热门问题