关于使用spring.datasource.hikari连接数据库找不到找不到url的问题
applica.properties里配置连接数据库使用hikari
#链接数据库
spring.datasource.primary.jdbc-url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8 &serverTimezone=Asia/Shanghai
spring.datasource.primary.username=root
spring.datasource.primary.password=root
spring.datasource.primary.driver-class-name=com.mysql.cj.jdbc.Driver
出现的问题异常
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
未能配置数据源:未指定“url”属性,也无法配置嵌入式数据源。
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-09-08 18:28:06.345 ERROR 7148 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Fail