Error resolving template [ok], template might not exist or might not be accessible...解决办法

最近在springboot访问templates目录下的HTML资源时踩了深坑
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [ok], template might not exist or might not be accessible by any of the configured Template Resolvers
始终访问不了ok.html,网上的各种方法试了个遍也不行。

解决办法:
在pom.xml的resources添加配置防止html被过滤器拦截
Error resolving template [ok], template might not exist or might not be accessible...解决办法
成功了!高兴!写个博客做个记录,希望能对你有所帮助。
Error resolving template [ok], template might not exist or might not be accessible...解决办法