[错误展示]

SpringBoot 整合 Thymeleaf 引入静态资源失败解决方案_Java学习

[解决方案]

在配置文件中加:

spring:
  mvc:
  	static-path-pattern: /static/**/**
  thymeleaf:
    cache: false

如:

SpringBoot 整合 Thymeleaf 引入静态资源失败解决方案_JavaEE_02

[效果展示]

SpringBoot 整合 Thymeleaf 引入静态资源失败解决方案_spring boot_03

没有问题。