Error resolving template “index”, template might not exist or might not be accessible by any of the configured Template Resolvers

前端 未结 10 840
灰色年华
灰色年华 2020-12-01 07:28

This question has been asked before but I did not solve my problem and I getting some weird functionality.

If I put my index.html file in the static directory like s

相关标签:
10条回答
  • 2020-12-01 08:18

    In the console is telling you that is a conflict with login. I think that you should declare also in the index.html thymeleaf. Something like:

        <html xmlns="http://www.w3.org/1999/xhtml" 
        xmlns:th="http://www.thymeleaf.org" 
        xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
        xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
    
    <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>k</title> 
    </head>
    
    0 讨论(0)
  • 2020-12-01 08:23

    If you are facing this issue and everything looks good, try invalidate cache/restart from your IDE. This will resolve the issue in most of the cases.

    0 讨论(0)
  • 2020-12-01 08:24

    It May be due to some exceptions like (Parsing NUMERIC to String or vise versa).

    Please verify cell values either are null or do handle Exception and see.

    Best, Shahid

    0 讨论(0)
  • 2020-12-01 08:26

    Check for the name of the

    templates

    folder. it should be templates not template(without s).

    0 讨论(0)
提交回复
热议问题