义齿
1496 ワード
@EnableAutoConfiguration
@ComponentScan(basePackages = {"cn.creditease"})
@EntityScan(basePackages="cn.creditease.entity")
@EnableJpaRepositories(basePackages="cn.creditease.reposirory")
public class ServletInitializer extends SpringBootServletInitializer {
@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
return builder.build();
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(ServletInitializer.class);
}
}