Failed to configure the data source: the “url” attribute is not specified, and there is no embedded data source coul
Two methods to solve this error:
The first is to cancel automatic database configuration
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
Unconfigure the SpringBootApplication of the startup class
The second is to configure the database information on the configuration file
spring:
datasource:
url: jdbc:mysql://localhost:3306/xxxx
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver
Read More:
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could [Solved]
- idea Error: Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource
- Failed to auto-configure a DataSource: ‘spring.datasource.url‘ is not specified and no embedded data
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified…bug
- [Solved] Spring Boot Error: org.springframework.jdbc.datasource.embedded.EmbeddedData
- [Solved] init datasource error, url: jdbc:mysql://localhost:3306/test
- [Solved] Springboot Error: Error creating bean with name ‘dataSource‘ defined in class path resource
- [Solved] init datasource error, url: xxxjava.sql.SQLRecoverableException: IO ERROR: Undefined Error
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- [Solved] nacos Startup Error: Unable to start embedded Tomcat
- [Solved] SpringBoot+Dubbo Startup Error: Fail to start server(url dubbo192.168.0.920880service
- [Solved] Nacos1.3.2 Startup Error: Unable to start embedded Tomcat
- [Solved] SpringBoot+Dubbo Startup Error: Fail to start server(url: dubbo://192.168.0.9:20880/service
- springboot jsp: There was an unexpected error (type=Not Found, status=404). No message available
- [Solved] Springboot2.x ElasticSearch Error: availableProcessors is already set to [4], rejecting [4]
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- Public Key Retrieval is not allowed [How to Solve]
- Configuration of springboot + Druid connection pool