Skip to content

Spring Boot 3.0.0-M5 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. #453

@xuxiaowei-com-cn

Description

@xuxiaowei-com-cn

Please fill it out carefully, or it will be closed.
请认真填写,不然会直接关闭。

Enviroment

JDK Version(required):

SpringBoot Version(required):
3.0.0-M5

dynamic-datasource-spring-boot-starter Version(required):
3.5.2

druid Version(optional):
hikari 5.0.1

Describe what happened

使用 Spring Boot 3.0.0-M4 运行项目正常,使用 Spring Boot 3.0.0-M5 运行项目报错,错误内如见下方。

Expected Result:

Actual Result:

If there is an exception,or aop invalid,please attach the exception trace:

以下是使用 Spring Boot 3.0.0-M5 运行时的错误

"D:\Program Files\dragonwell-17.0.3.0.3+7-GA\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:62731,suspend=y,server=n -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\JetBrains\Toolbox\apps\IDEA-U\ch-0\222.4345.14\plugins\java\lib\rt\debugger-agent.jar=file:/C:/Users/xuxiaowei/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -classpath D:\IdeaProjects\xuxiaowei-cloud-next-2\passport\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-system\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-log\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-validation\target\classes;D:\Apache\apache-maven-3.6.3-repo\com\google\guava\guava\31.1-jre\guava-31.1-jre.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\Apache\apache-maven-3.6.3-repo\org\checkerframework\checker-qual\3.12.0\checker-qual-3.12.0.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\errorprone\error_prone_annotations\2.11.0\error_prone_annotations-2.11.0.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-validation\3.0.0-M5\spring-boot-starter-validation-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\hibernate\validator\hibernate-validator\7.0.5.Final\hibernate-validator-7.0.5.Final.jar;D:\Apache\apache-maven-3.6.3-repo\jakarta\validation\jakarta.validation-api\3.0.2\jakarta.validation-api-3.0.2.jar;D:\Apache\apache-maven-3.6.3-repo\org\jboss\logging\jboss-logging\3.5.0.Final\jboss-logging-3.5.0.Final.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\Apache\apache-maven-3.6.3-repo\commons-io\commons-io\2.11.0\commons-io-2.11.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-webmvc\6.0.0-M6\spring-webmvc-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-aop\6.0.0-M6\spring-aop-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-beans\6.0.0-M6\spring-beans-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-context\6.0.0-M6\spring-context-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-expression\6.0.0-M6\spring-expression-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-aop\3.0.0-M5\spring-boot-starter-aop-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\aspectj\aspectjweaver\1.9.9.1\aspectjweaver-1.9.9.1.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-mail\3.0.0-M5\spring-boot-starter-mail-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-context-support\6.0.0-M6\spring-context-support-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\com\sun\mail\jakarta.mail\2.0.1\jakarta.mail-2.0.1.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-oauth2-jose\6.0.0-M7\spring-security-oauth2-jose-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-core\6.0.0-M7\spring-security-core-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-crypto\6.0.0-M7\spring-security-crypto-6.0.0-M7.jar;D:\IdeaProjects\xuxiaowei-cloud-next-2\utils\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-session-redis\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-core\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-redis\target\classes;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-data-redis\3.0.0-M5\spring-boot-starter-data-redis-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\io\lettuce\lettuce-core\6.2.0.RELEASE\lettuce-core-6.2.0.RELEASE.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-common\4.1.82.Final\netty-common-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-handler\4.1.82.Final\netty-handler-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-resolver\4.1.82.Final\netty-resolver-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-buffer\4.1.82.Final\netty-buffer-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-transport-native-unix-common\4.1.82.Final\netty-transport-native-unix-common-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-codec\4.1.82.Final\netty-codec-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\io\netty\netty-transport\4.1.82.Final\netty-transport-4.1.82.Final.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\session\spring-session-data-redis\3.0.0-M4\spring-session-data-redis-3.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\session\spring-session-core\3.0.0-M4\spring-session-core-3.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\data\spring-data-redis\3.0.0-M6\spring-data-redis-3.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\data\spring-data-keyvalue\3.0.0-M6\spring-data-keyvalue-3.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\data\spring-data-commons\3.0.0-M6\spring-data-commons-3.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-tx\6.0.0-M6\spring-tx-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-oxm\6.0.0-M6\spring-oxm-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-web\6.0.0-M7\spring-security-web-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\tomcat\embed\tomcat-embed-core\10.0.23\tomcat-embed-core-10.0.23.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\tomcat\tomcat-annotations-api\10.0.23\tomcat-annotations-api-10.0.23.jar;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-oauth2\target\classes;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-mybatis\target\classes;D:\Apache\apache-maven-3.6.3-repo\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.3.0-SNAPSHOT\mybatis-spring-boot-starter-2.3.0-20221010.161036-52.jar;D:\Apache\apache-maven-3.6.3-repo\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.3.0-SNAPSHOT\mybatis-spring-boot-autoconfigure-2.3.0-20221010.161036-52.jar;D:\Apache\apache-maven-3.6.3-repo\org\mybatis\mybatis\3.5.11\mybatis-3.5.11.jar;D:\Apache\apache-maven-3.6.3-repo\org\mybatis\mybatis-spring\2.1.0-SNAPSHOT\mybatis-spring-2.1.0-20221015.025306-44.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\mybatis-plus-boot-starter\3.5.2\mybatis-plus-boot-starter-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\mybatis-plus\3.5.2\mybatis-plus-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\org\jetbrains\kotlin\kotlin-stdlib-jdk8\1.7.10\kotlin-stdlib-jdk8-1.7.10.jar;D:\Apache\apache-maven-3.6.3-repo\org\jetbrains\kotlin\kotlin-stdlib\1.7.10\kotlin-stdlib-1.7.10.jar;D:\Apache\apache-maven-3.6.3-repo\org\jetbrains\kotlin\kotlin-stdlib-common\1.7.10\kotlin-stdlib-common-1.7.10.jar;D:\Apache\apache-maven-3.6.3-repo\org\jetbrains\annotations\13.0\annotations-13.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\jetbrains\kotlin\kotlin-stdlib-jdk7\1.7.10\kotlin-stdlib-jdk7-1.7.10.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\dynamic-datasource-spring-boot-starter\3.5.2\dynamic-datasource-spring-boot-starter-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-jdbc\3.0.0-M5\spring-boot-starter-jdbc-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\com\zaxxer\HikariCP\5.0.1\HikariCP-5.0.1.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-jdbc\6.0.0-M6\spring-jdbc-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\mysql\mysql-connector-java\8.0.30\mysql-connector-java-8.0.30.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\mybatis-plus-extension\3.5.2\mybatis-plus-extension-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\mybatis-plus-core\3.5.2\mybatis-plus-core-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\com\baomidou\mybatis-plus-annotation\3.5.2\mybatis-plus-annotation-3.5.2.jar;D:\Apache\apache-maven-3.6.3-repo\com\github\jsqlparser\jsqlparser\4.4\jsqlparser-4.4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-oauth2-resource-server\3.0.0-M5\spring-boot-starter-oauth2-resource-server-3.0.0-M5.jar;D:\IdeaProjects\xuxiaowei-cloud-next-2\cloud-commons-parent\cloud-starter-loadbalancer\target\classes;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-web\6.0.0-M6\spring-web-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter-loadbalancer\4.0.0-M4\spring-cloud-starter-loadbalancer-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-loadbalancer\4.0.0-M4\spring-cloud-loadbalancer-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\io\projectreactor\reactor-core\3.5.0-M6\reactor-core-3.5.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\Apache\apache-maven-3.6.3-repo\io\projectreactor\addons\reactor-extra\3.5.0-M6\reactor-extra-3.5.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-cache\3.0.0-M5\spring-boot-starter-cache-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\com\stoyanr\evictor\1.0.0\evictor-1.0.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-web\3.0.0-M5\spring-boot-starter-web-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter\3.0.0-M5\spring-boot-starter-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot\3.0.0-M5\spring-boot-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-autoconfigure\3.0.0-M5\spring-boot-autoconfigure-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-logging\3.0.0-M5\spring-boot-starter-logging-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\ch\qos\logback\logback-classic\1.2.11\logback-classic-1.2.11.jar;D:\Apache\apache-maven-3.6.3-repo\ch\qos\logback\logback-core\1.2.11\logback-core-1.2.11.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\logging\log4j\log4j-to-slf4j\2.18.0\log4j-to-slf4j-2.18.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\logging\log4j\log4j-api\2.18.0\log4j-api-2.18.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;D:\Apache\apache-maven-3.6.3-repo\jakarta\annotation\jakarta.annotation-api\2.0.0\jakarta.annotation-api-2.0.0.jar;D:\Apache\apache-maven-3.6.3-repo\org\yaml\snakeyaml\1.32\snakeyaml-1.32.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-json\3.0.0-M5\spring-boot-starter-json-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.4\jackson-datatype-jdk8-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.4\jackson-datatype-jsr310-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.4\jackson-module-parameter-names-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-tomcat\3.0.0-M5\spring-boot-starter-tomcat-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\tomcat\embed\tomcat-embed-el\10.0.23\tomcat-embed-el-10.0.23.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\tomcat\embed\tomcat-embed-websocket\10.0.23\tomcat-embed-websocket-10.0.23.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-thymeleaf\3.0.0-M5\spring-boot-starter-thymeleaf-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\thymeleaf\thymeleaf-spring6\3.1.0.M2\thymeleaf-spring6-3.1.0.M2.jar;D:\Apache\apache-maven-3.6.3-repo\org\thymeleaf\thymeleaf\3.1.0.M2\thymeleaf-3.1.0.M2.jar;D:\Apache\apache-maven-3.6.3-repo\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\Apache\apache-maven-3.6.3-repo\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\Apache\apache-maven-3.6.3-repo\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;D:\Apache\apache-maven-3.6.3-repo\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-oauth2-authorization-server\1.0.0-M2\spring-security-oauth2-authorization-server-1.0.0-M2.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-config\6.0.0-M7\spring-security-config-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-oauth2-core\6.0.0-M7\spring-security-oauth2-core-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-oauth2-resource-server\6.0.0-M7\spring-security-oauth2-resource-server-6.0.0-M7.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-core\6.0.0-M6\spring-core-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\spring-jcl\6.0.0-M6\spring-jcl-6.0.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\com\nimbusds\nimbus-jose-jwt\9.24.4\nimbus-jose-jwt-9.24.4.jar;D:\Apache\apache-maven-3.6.3-repo\com\github\stephenc\jcip\jcip-annotations\1.0-1\jcip-annotations-1.0-1.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\core\jackson-databind\2.13.4\jackson-databind-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\core\jackson-annotations\2.13.4\jackson-annotations-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\com\fasterxml\jackson\core\jackson-core\2.13.4\jackson-core-2.13.4.jar;D:\Apache\apache-maven-3.6.3-repo\cn\com\xuxiaowei\boot\next\spring-boot-starter-wechat-miniprogram\0.1.0-SNAPSHOT\spring-boot-starter-wechat-miniprogram-0.1.0-20221013.014756-7.jar;D:\Apache\apache-maven-3.6.3-repo\p6spy\p6spy\3.9.1\p6spy-3.9.1.jar;D:\Apache\apache-maven-3.6.3-repo\cn\hutool\hutool-all\5.8.8\hutool-all-5.8.8.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter-consul-config\4.0.0-M4\spring-cloud-starter-consul-config-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter-consul\4.0.0-M4\spring-cloud-starter-consul-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-consul-core\4.0.0-M4\spring-cloud-consul-core-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\com\ecwid\consul\consul-api\1.4.5\consul-api-1.4.5.jar;D:\Apache\apache-maven-3.6.3-repo\com\google\code\gson\gson\2.9.1\gson-2.9.1.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar;D:\Apache\apache-maven-3.6.3-repo\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;D:\Apache\apache-maven-3.6.3-repo\org\apache\httpcomponents\httpcore\4.4.15\httpcore-4.4.15.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-consul-config\4.0.0-M4\spring-cloud-consul-config-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-commons\4.0.0-M4\spring-cloud-commons-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter-consul-discovery\4.0.0-M4\spring-cloud-starter-consul-discovery-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-consul-discovery\4.0.0-M4\spring-cloud-consul-discovery-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter-bootstrap\4.0.0-M4\spring-cloud-starter-bootstrap-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-starter\4.0.0-M4\spring-cloud-starter-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\cloud\spring-cloud-context\4.0.0-M4\spring-cloud-context-4.0.0-M4.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\security\spring-security-rsa\1.0.11.RELEASE\spring-security-rsa-1.0.11.RELEASE.jar;D:\Apache\apache-maven-3.6.3-repo\org\bouncycastle\bcpkix-jdk15on\1.69\bcpkix-jdk15on-1.69.jar;D:\Apache\apache-maven-3.6.3-repo\org\bouncycastle\bcprov-jdk15on\1.69\bcprov-jdk15on-1.69.jar;D:\Apache\apache-maven-3.6.3-repo\org\bouncycastle\bcutil-jdk15on\1.69\bcutil-jdk15on-1.69.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-starter-actuator\3.0.0-M5\spring-boot-starter-actuator-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-actuator-autoconfigure\3.0.0-M5\spring-boot-actuator-autoconfigure-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\org\springframework\boot\spring-boot-actuator\3.0.0-M5\spring-boot-actuator-3.0.0-M5.jar;D:\Apache\apache-maven-3.6.3-repo\io\micrometer\micrometer-observation\1.10.0-M6\micrometer-observation-1.10.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\io\micrometer\micrometer-commons\1.10.0-M6\micrometer-commons-1.10.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\io\micrometer\micrometer-core\1.10.0-M6\micrometer-core-1.10.0-M6.jar;D:\Apache\apache-maven-3.6.3-repo\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\Apache\apache-maven-3.6.3-repo\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\Apache\apache-maven-3.6.3-repo\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;D:\Apache\apache-maven-3.6.3-repo\com\sun\activation\jakarta.activation\2.0.1\jakarta.activation-2.0.1.jar;D:\JetBrains\Toolbox\apps\IDEA-U\ch-0\222.4345.14\lib\idea_rt.jar cloud.xuxiaowei.next.passport.PassportApplication
Connected to the target VM, address: '127.0.0.1:62731', transport: 'socket'

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::             (v3.0.0-M5)

2022-10-16 11:54:45.118 - INFO 6040 --- [           main] b.c.PropertySourceBootstrapConfiguration :  :  :  :  : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/passport,dev/'}, BootstrapPropertySource {name='bootstrapProperties-config/passport/'}, BootstrapPropertySource {name='bootstrapProperties-config/application,dev/'}, BootstrapPropertySource {name='bootstrapProperties-config/application/'}]
-2022-10-16 11:54:45.144 - INFO 6040 --- [           main] c.x.next.passport.PassportApplication    :  :  :  :  : The following 1 profile is active: "dev"
-2022-10-16 11:54:45.392 - WARN 6040 --- [           main] o.s.c.annotation.AnnotationTypeMapping   :  :  :  :  : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'proxyMode' attribute in @org.springframework.cloud.context.config.annotation.RefreshScope with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = org.springframework.context.annotation.Scope.class).
-2022-10-16 11:54:47.049 - INFO 6040 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate :  :  :  :  : Multiple Spring Data modules found, entering strict repository configuration mode
-2022-10-16 11:54:47.053 - INFO 6040 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate :  :  :  :  : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
-2022-10-16 11:54:47.084 - INFO 6040 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate :  :  :  :  : Finished Spring Data repository scanning in 14 ms. Found 0 Redis repository interfaces.
-2022-10-16 11:54:48.326 - INFO 6040 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  :  :  :  :  : Tomcat initialized with port(s): 1401 (http)
-2022-10-16 11:54:48.339 - INFO 6040 --- [           main] o.apache.catalina.core.StandardService   :  :  :  :  : Starting service [Tomcat]
-2022-10-16 11:54:48.340 - INFO 6040 --- [           main] org.apache.catalina.core.StandardEngine  :  :  :  :  : Starting Servlet engine: [Apache Tomcat/10.0.23]
-2022-10-16 11:54:48.447 - INFO 6040 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       :  :  :  :  : Initializing Spring embedded WebApplicationContext
-2022-10-16 11:54:48.448 - INFO 6040 --- [           main] w.s.c.ServletWebServerApplicationContext :  :  :  :  : Root WebApplicationContext: initialization completed in 3289 ms
-2022-10-16 11:54:48.566 -ERROR 6040 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  :  :  :  :  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webMvcMetricsFilter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'webMvcMetricsFilter' parameter 0: Error creating bean with name 'simpleMeterRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/export/simple/SimpleMetricsExportAutoConfiguration.class]: Error creating bean with name 'dataSourcePoolMetadataMeterBinder' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/jdbc/DataSourcePoolMetricsAutoConfiguration$DataSourcePoolMetadataMetricsConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourcePoolMetadataMeterBinder' parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Failed to determine a suitable driver class
-2022-10-16 11:54:48.604 - INFO 6040 --- [           main] o.apache.catalina.core.StandardService   :  :  :  :  : Stopping service [Tomcat]
-2022-10-16 11:54:48.615 - WARN 6040 --- [           main] ConfigServletWebServerApplicationContext :  :  :  :  : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server
-2022-10-16 11:54:48.629 - INFO 6040 --- [           main] ConditionEvaluationReportLoggingListener :  :  :  :  : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
-2022-10-16 11:54:48.657 -ERROR 6040 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :  :  :  :  : 

***************************
APPLICATION FAILED TO START
***************************

Description:

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


Action:

Consider the following:
	If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active).

-Disconnected from the target VM, address: '127.0.0.1:62731', transport: 'socket'

Process finished with exit code 1

Steps to reproduce

  • Step 1

  • Step 2

  • Step 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions