启动微服务报错
目前解决办法:先注释掉链路追踪的依赖,后面需要再加上
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-12-05 10:05:07.355 ERROR 608 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :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 (no profiles are currently active).
解决办法:在配置中心添加数据库或注释掉数据库依赖(这里添加数据库),如果配置中心有数据库,检查数据中心是否加注解
spring:
application:
name: update-service
cloud:
config:
uri: http://localhost:9007
profile: default
label: master
config:
import: optional:configserver:http://localhost:9007
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/bill-manager?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
username: root
password: 123456
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
未指定eureka注册中心,在本地或仓库application.yml进行配置
Attempting to connect to: [127.0.0.1:5672]
未打开rabbitmq控制台