在idea中thymeleaf的语法可能会出错,但是不影响展示,
这样写在html5中会找不到这个地址
但是运行spring后在服务器中显示正常。
<script url="[[@{/}]]js/jquery-3.2.1.slim.min.js"></script>
<style th:inline="text">
body{
background: url("[[@{/}]]images/home-bg.jpg");
background-size: 100%,100%;
}
</style>