Skip to content
Advertisement

Spring-boot thymeleaf load HTML file from classpath

I’ve a multi module project structure like :

JavaScript

and on my controller:

JavaScript

I’m getting the error message as below:

JavaScript

Is there configuration needed to configure something specially for spring for searching templates on class path?

Advertisement

Answer

Adding following properties solves my problem:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement