Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 原因: springboot启动时会自动注入数据源和配置jpa 解决: 在@SpringBootApplication中排除其注入 exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfigurat…