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 be configured

Reason: Failed to determine a suitable driver class

解决了上一个错误之后,又出现了新的错误:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured

根据英文意思应该是没有配置数据源,导致的错误,只需要在application.properties中添加即可:

spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.username=zhangsan
spring.datasource.password=zhangsan

项目成功启动。

你可能感兴趣的:(科研项目)