今天开发遇到这个问题,找不到这个login.html
使用RestController就没错误,但是无法转到这个页面
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [login.html], template might not exist or might not be accessible by any of the configured Template Resolvers
解决方案:
application.yml里面加上

spring:
  thymeleaf:
    mode: HTML
    encoding: utf-8
    cache: false
    prefix: classpath:/templates/

就能解决
希望能交流更多技术,关注小白的微信公众号吧。
关于springboot Error resolving template之类问题

相关文章:

  • 2021-11-04
  • 2021-05-09
  • 2021-05-15
  • 2021-10-04
  • 2022-01-31
  • 2022-12-23
  • 2021-08-15
  • 2021-04-22
猜你喜欢
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2021-06-22
  • 2021-09-01
相关资源
相似解决方案