i trying go through of spring boot tutorials. imported 1 in eclipse: https://spring.io/guides/gs/securing-web/
at step "create unsecured web application", launched in eclipse. starts ok, , open http://localhost:8080 in browser, , following error:
whitelabel error page application has no explicit mapping /error, seeing fallback. sat mar 26 15:15:03 gmt 2016 there unexpected error (type=internal server error, status=500). error resolving template "home", template might not exist or might not accessible of configured template resolvers
i can see following error in console in eclipse:
2016-03-26 15:15:03.598 error 4464 --- [nio-8080-exec-1] org.thymeleaf.templateengine : [thymeleaf][http-nio-8080-exec-1] exception processing template "home": error resolving template "home", template might not exist or might not accessible of configured template resolvers 2016-03-26 15:15:03.629 error 4464 --- [nio-8080-exec-1] o.a.c.c.c.[.[.[/].[dispatcherservlet] : servlet.service() servlet [dispatcherservlet] in context path [] threw exception [request processing failed; nested exception org.thymeleaf.exceptions.templateinputexception: error resolving template "home", template might not exist or might not accessible of configured template resolvers] root cause org.thymeleaf.exceptions.templateinputexception: error resolving template "home", template might not exist or might not accessible of configured template resolvers @ org.thymeleaf.templaterepository.gettemplate(templaterepository.java:246) ~[thymeleaf-2.1.4.release.jar:2.1.4.release] @ org.thymeleaf.templateengine.process(templateengine.java:1104) ~[thymeleaf-2.1.4.release.jar:2.1.4.release]
the stack trace longer, can provide if needed.
other this, didn't change source code of tutorial initial state (which inside initial directory in example)
any ideas?
the error error resolving template home
means view resolver not find template matching path.
spring boot starter thymeleaf configure default view resolver expect find html file @ following location : src/main/resources/templates/
. make sure home.html
found @ location. if is, check if don't have exception occuring before 1 sent us.
regards, daniel
Comments
Post a Comment