Springboot启动报错[ main] o.s.boot.SpringApplication: Application run failed

springboot启动时会自动注入数据源和配置jpa 
解决:在@SpringBootApplication中排除其注入 
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

 

你可能感兴趣的:(Springboot启动报错[ main] o.s.boot.SpringApplication: Application run failed)