Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find template location

Tags:

java

spring

I have created a simple application using Spring and everything is working, Spring boot up however I get this warning which prevents my page from being seen:

2017-01-03 14:15:19.522  WARN 4456 --- [  restartedMain].t.AbstractTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)

However, I've got my templates in a folder and I do not know what is wrong. Please note I am begineer in Spring.

To show how my directory looks like I am uploading an image. Please tell my in any other information is required

enter image description here

like image 978
Przemek Wojtas Avatar asked Aug 26 '26 16:08

Przemek Wojtas


1 Answers

I also ran into the same issue, not quite sure how it has happened but in my project .classpath file there was a rule that excludes all the sources under src/main/resources. i removed that and it worked like a charm

like image 73
mekbib.awoke Avatar answered Aug 29 '26 06:08

mekbib.awoke