One solution is having all the views under "/src/main/resources/views" and using the
org.thymeleaf.templateresolver.ClassLoaderTemplateResolver
This way you don't have any dependency (rather than using the "FileTemplateResolver") on the system and also you do not need having any duplicated spring configuration files for the test execution context.
Still it's a bit weird for me having the views in there but... Why not?
Any comment/suggestion over having the views under resource folders?