Springboot前端thymeleaf html页面js和css相对路径引用问题解决
第一种方案:<base th:href="@{/}">第二种方案:<script th:src="@{/js/myjs.js}"></script>目录结构如下:login.html:这里命名为login不用理会,只是测试而已,具体是为了给大家展示路径引用问题.controller.javaspringboot中,通过application...
转载
2019-09-18 23:17:52 ·
1202 阅读 ·
0 评论