The startup class has been configured
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
The error information is as follows:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through field 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Reason: the default datasource is used.
solution: start the accumulation configuration
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
Read More:
- shiro Error org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of ty
- Error creating bean with name ‘datasource’ defined in class path resource
- Datasource bean injection failed, with startup error
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- Field userrepository in com.example.demo2.service.imp.UserServiceImp required a bean of type ‘com.ex
- Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded (How to Fix)
- [Fixed]No bean named ‘sqlSessionFactoryBean’ available
- An error is reported when springboot starts: error creating bean with name ‘XXXX’
- Failed to configure a DataSource
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- C language error: expected declaration or statement at end of input
- This function has none of deterministic, no SQL, or reads SQL data in its error records
- Type error: sequence item 0: expected STR instance, int found
- error: expected declaration or statement at end of input
- Solve the runtimeerror in RNN: expected scalar type long but found float error
- C language error – [error] expected declaration or statemt at end of input— solution.
- Failed to configure a DataSource: ‘ url’ attribute
- Servlet error: no interface expected here