springBoot整合thymeleaf后,无法访问resource文件夹下的static静态资源解决办法

解决方式:
 
在配置文件中添加以下配置即可:
 

spring:
  mvc:
    static-path-pattern: /static/**
posted @ 2023-01-15 13:58  just1t  阅读(590)  评论(0编辑  收藏  举报