例如html路径在'src\main\resources\templates\sample.html',
css路径为'src\main\resources\static\sample.css';
js路径为'src\main\resources\static\sample.js';
css和js的引用如下:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" th:href="@{/css/sample.css}">
</head>
<body>
<form>
</form>
<script src="/static/js/inout_stock_list.js" th:src="@{/js/sample.js}">
</script>
</body>
</html>