Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-11-16 15:32:12.994 ERROR 2668 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
The reason is: when springboot starts, it will automatically inject data source and configure JPA
solution: exclude its injection in @ springbootapplication
@ springbootapplication (exclude = {datasourceautoconfiguration. Class, hibernatejpaautoconfiguration. Class})
//@SpringBootApplication
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
public class CreditApplication {
public static void main(String[] args) {
SpringApplication.run(CreditApplication.class, args);
}
}
Add the above configuration.
Read More:
- Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
- Error starting ApplicationContext. To display the conditions report re-run your application with
- Error starting ApplicationContext. To display the conditions report re run
- Springboot startup error failed to configure a datasource
- Solve the problem of springboot and unit test starting applicationrunner
- Springboot project startup exception – required a single bean, but 2 were found
- Springboot startup error – classnotfound Exception:EnhancerBySpringCGLIB
- Springboot startup error [extshutdown hook]
- Springboot startup exception: error creating bean with name ‘permissioncontroller’
- Springboot startup error could not resolve placeholder XXX
- Springboot plus cross domain annotation @crossorigin startup error
- Springboot startup error: java.lang.IllegalArgumentException : Property ‘sqlSessionFactory’ or ‘sqlSessionTempla
- Springboot modifies the reference of the application.yml or. Properties file to report an error after startup
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- Failed to load ApplicationContext encountered when using mybatis plus
- Mybatis reverse problem failed to load ApplicationContext
- Spring configuration transaction, JUnit unit test error “failed to load ApplicationContext”
- Spring ApplicationContext – Resource leak: ‘context’ is never closed
- An error is reported when springboot starts: error creating bean with name ‘XXXX’