【发布时间】:2015-01-26 01:22:25
【问题描述】:
在我当前的 spring-boot 项目中,我的观点是这样的:
<link href="signin.css" rel="stylesheet"/>
引用静态 css 文件。当我运行项目并访问引用此文件的视图之一时,我会收到 404 未找到错误或 403 未授权错误,具体取决于我将文件放入项目中的位置。
到目前为止我尝试过这个:
src/main/resources/static/css (with this, I use css/signin.css instead of signin.css)
src/main/resources/templates/static/css (with this, I use css/signin.css instead of signin.css)
src/src/main/resources/templates/acesso (same folder of the html file)
存储此类文件的正确位置是什么?
【问题讨论】:
标签: spring spring-boot