org.thymeleaf.exceptions.TemplateInputException

tip

JDK has a bug that happens when using '/' and '//' paths. If you can, remove this from code, or follow what's said here: https://github.com/spring-projects/spring-boot/issues/1744

tip

Check how the URL looks like, sometimes it might happen that you have a rest controller ending with a '/' and the page name starts with one as well, so it can't resolve the name.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • javatalks.ru / Spring (Thymeleaf Page Layouts)
    via by Unknown author,
  • TemplateInputException in Controller
    via Stack Overflow by sponge
    ,
    • org.thymeleaf.exceptions.TemplateInputException: Error resolving template "home/home", template might not exist or might not be accessible by any of the configured Template Resolvers at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:246)[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1104)[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060)[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011)[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]

    Users with the same issue

    tomthomastomthomas
    131 times, last one,
    SteVio1989SteVio1989
    1 times, last one,
    asdasdasdasd
    6 times, last one,
    Shadd518Shadd518
    17 times, last one,
    thiago.santosthiago.santos
    3 times, last one,
    17 more bugmates