1、首页配置:注意点:所有页面的静态资源都需要使用thymeleaf接管,@{} 每个静态页面的命名空间添加xmlns:th="http://www.thymeleaf.org" href前加th: 链接url改为@{} 相关文章: