* HTML pages in Sping boot cannot load JS, CSS, etc.
1## The way of writing the path in HTML - that is, the absolute path and the relative path.
This is related to Baidu. It is an example.
This is the first step, you need to use an absolute path, it will not be expanded here
Because my css js front-end framework is placed under static,
I hope it can help you
```java
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/jquery.scrollTo.min.js"></script>
<script src="../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
<script src="../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.min.js}"></script>
<script src="../static/lib/qrcode/qrcode.min.js" th:src="@{/lib/qrcode/qrcode.min.js}"></script>
<script src="../static/lib/waypoints/jquery.waypoints.min.js" th:src="@{/lib/waypoints/jquery.waypoints.min.js}"></script>
<script>
<script src="../static/layui/layui.js" th:src="@{/layui/layui.js}"></script>
<script src="../static/js/yss/gloable.js" th:src="@{/js/yss/gloable.js}"></script>
<script src="
JS and CSS cannot be loaded on HTML pages in SSM
Generally, when using the ssm framework, more jsp problems are used
Take a look
at the code
…/static/js/plugins/nprogress.js" th:src="@{/js/plugins/nprogress.js}">
<head>
<meta charset="UTF-8">
<title>系统登录 - 智能家具管理系统</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/resource/css/style.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/resource/css/login.css" />
</head>