Closed jhcao23 closed 7 years ago
I think the easiest way to fix it is to change to templateResolver.setPrefix("views/")
in WebMvcConfig.templateResolver
Thank's, it works.
yep, That fixes it!
It's correct. changing
@Bean public TemplateResolver templateResolver() { TemplateResolver templateResolver = new ClassLoaderTemplateResolver(); templateResolver.setPrefix("/views/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML5"); return templateResolver; } to
@Bean public TemplateResolver templateResolver() { TemplateResolver templateResolver = new ClassLoaderTemplateResolver(); templateResolver.setPrefix("views/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML5"); return templateResolver; } Works.
Shouldn't this be commited to the repo?
I cannot start any of the spring-social-showcase-sec or spring-social-showcase module after I run the command './gradlew tomcatRun' from terminal on Mac:
and root case: