springboot启动类

@SpringBootApplication(exclude = SecurityAutoConfiguration.class, scanBasePackages = "com.***")//(exclude={JpaRepositoriesAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@MapperScan("com.***")
@EnableWebSecurity
public class PscmWebApplication {
// @Bean
//    public PlatformTransactionManager txManager(DataSource dataSource) {
//        return new DataSourceTransactionManager(dataSource);
//    }
    public static void main(String[] args) {
      SpringApplication springApplication = new SpringApplication(PscmWebApplication.class);    
      springApplication.addListeners(new ApplicationStartup());
      springApplication.run(args);   
   }
}

你可能感兴趣的:(springboot启动类)