Refactoring: project and java package

This commit is contained in:
fecaille
2016-04-06 13:38:50 +02:00
parent 9c27e23174
commit f792354df6
8 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
package fr.pavnay.demo.springboot.react;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
//@EnableOAuth2Sso
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public ServletContextTemplateResolver templateResolver() {
ServletContextTemplateResolver resolver = new ServletContextTemplateResolver();
resolver.setPrefix("/templates/");
resolver.setSuffix(".html");
resolver.setTemplateMode("LEGACYHTML5");
resolver.setCacheable(false);
return resolver;
}
}