When using thymeleaf integration layui has reported 404

Today has reported 404 fragments using function thymeleaf, I always thought my path was wrong, but double-check several times or useless,

Then considered the browser cache issues, and clear in the configuration after you close the browser cache cache found or not, the wonder of it will not be haunted

Not depressed, then eat a packet of instant noodles under the gain buff, I think there might be decisive idea of ​​the target and then deleted, really successful, beep of a dog;

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:fragment="xhead(title)">
    <meta charset="UTF-8">
    <title th:text="${title}">后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <base th:href="@{/}" th:src="@{/}"/>
    <!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />-->
    <link rel="stylesheet" th:href="@{/layui/css/font.css}">
    <link rel="stylesheet" th:href="@{/layui/css/xadmin.css}">
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/layui/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/layui/js/xadmin.js}"></script>
</head>
</html>

 

Guess you like

Origin www.cnblogs.com/book-mountain/p/11615924.html