springboot静态资源html/js/css等文件路径查找问题

来源:互联网 发布:js modal点击旁边关闭 编辑:程序博客网 时间:2024/05/29 18:48


html文件放在resources/templates下,在请求处理方法返回时会自动到这个目录下查找

js/css等静态资源放在resources/static下,在html中引入时,会自动到这个目录下查找

如图:

<script type="text/javascript" src="./jquery-3.2.1/jquery.js"/>


阅读全文
0 0