问题 static目录结构如下: 通过thymeleaf的 th:href="@{/css/me.css}"方式引入static目录下的静态资源时,网页无法加载静态资源,经查询貌似是springboot2会拦截静态资源。 解决方案 自定义一个配置类,配置资源映射: package com.dwc.blog; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org