spring-boot - 为什么我每次运行 Spring Boot 应用程序时都会从服务器获取配置:http://localhost:8888?
问题描述
它是一个错误吗?我跟着这个链接。有什么解决方法....我的 Stack-Trace 如下
Fetching config from server at : http://localhost:8888
Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
No active profile set, falling back to default profiles: default
Bootstrapping Spring Data repositories in DEFAULT mode.
Finished Spring Data repository scanning in 31ms. Found 0 repository interfaces.
BeanFactory id=691d8d29-ed5e-3599-85d5-3143f172a939
Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e56f3e25] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$1894122] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.autoconfigure.RefreshAutoConfiguration$JpaInvokerConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
解决方案
推荐阅读
- asp.net-core - 使用 signalR 仅向一个用户发送消息
- docker - Docker 输出未显示在 ubuntu 的日志中,但显示在 debian 中
- java - 尝试解析简单类型的子类型时缺少类型 id,缺少类型 id 属性类型
- kotlin - 每当我传递字符串列表的值时,都会出现错误
- reactjs - 删除或添加行时,如何使用 React Hooks 刷新表?
- python - 为什么 Python 字符串中的空字符串计数返回 len(str) + 1?
- swift - 尝试在 XCode 中连接 Shopify 和 Swift / SwiftUI 时出错
- ruby-on-rails - Sidekiq 和 Rails 的未初始化常量错误
- javascript - 从 JS 中的值定位单个类实例
- linux-kernel - 预处理器宏 D__KERNEL__ 和 __KERNEL__ 之间的区别