![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springcloud
-droidcoffee-
这个作者很懒,什么都没留下…
展开
-
zuul 集群报错 Load balancer does not have available server for client
如果想把/session/** 请求转发到多个外部服务器,则需要配置集群zuul: # 重定向 # add-host-header: true routes: session-share: path: /session/** stripPrefix: true serviceId: session-clurserribbon.eu原创 2018-01-21 10:09:46 · 21355 阅读 · 0 评论 -
spring boot EnableAutoConfiguration exclude 无效
首先讲一下SpringBootApplication注解 源码定义为@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documented@Inherited@SpringBootConfiguration@EnableAutoConfiguration@ComponentScan(excludeFilter...原创 2018-02-26 09:31:45 · 10440 阅读 · 5 评论 -
Springboot 动态刷新的几点注意
1、bootstrap.yml中的配置属性 无法动态刷新 只能添加在application.yml中 2、需要在调用的地方添加@RefreshScope、不能只在Application上添加 3 、需要引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <a...原创 2018-05-07 14:10:52 · 8017 阅读 · 0 评论 -
com.netflix.zuul.exception.ZuulException: Forwarding error
解决办法hystrix: command: default: execution: isolation: thread: timeoutInMilliseconds: 60000 ribbon: ReadTimeout: 60000 ConnectTimeout: 60000 zuu原创 2018-01-30 11:24:40 · 10634 阅读 · 0 评论 -
Can not construct instance of java.util.LinkedHashMap: no String-argument constructor/factory method
出现这个问题是由于 参数传入的是一个String类型 无法转换为Map$.ajax({ type:'POST', url:hostUrl, dataType:'json', contentType:'application/json', async:fa...原创 2018-02-09 11:15:11 · 23067 阅读 · 0 评论 -
调用feign请求超时 feign.RetryableException: Read timed out executing POST
feign.RetryableException: Read timed out executing POST http://xxx at feign.FeignException.errorExecuting(FeignException.java:67) at feign.SynchronousMethodHandler.executeAndDecode(Synchronous原创 2018-02-04 14:36:28 · 23679 阅读 · 3 评论 -
FeignClient调试404 feign.FeignException: status 404 reading
先说一下源码 调用Feign服务的时候 执行的核心代码如下package feign;.......//省略import/** * Submits HTTP {@link Request requests}. Implementations are expected to be thread-safe. */public interface Client { /**原创 2018-02-03 19:38:27 · 28643 阅读 · 5 评论 -
security认证导致的Cannot execute request on any known server
如果服务器端设置安全认证了 客户端在在配置defaultZone的时候需要带上用户名、密码 defaultZone: http://coffee:123456@localhost:9761/admin/eureka/ 否则将会报错com.netflix.discovery.shared.transport.TransportException: Cannot execute req原创 2018-01-10 14:43:44 · 6946 阅读 · 1 评论 -
Load balancer does not have available server for client
eureka服务器的客户端(服务消费端)如果在fetchRegistry设置为false的情况下 Feigh一端启动的时候 会报错eureka: client: registerWithEureka: true fetchRegistry: falseWhitelabel Error PageThis application has no explicit ma原创 2018-01-10 14:41:10 · 37129 阅读 · 13 评论 -
用编译好的springboot源码 开发项目--入门
首先把你编译好的spring-boot工程的 artifactId改一下,否则引用的时候不会引用本地的工程然后新建一个spring boot的工程把编译好的springbboot项目 ,放到依赖的第一行,负责启动的时候会报错dependencies> dependency> groupId>org.springframework.bootg原创 2018-01-24 23:18:02 · 1069 阅读 · 0 评论 -
spring boot源码编译
官网地址 https://projects.spring.io/spring-boot/ 源码地址 https://github.com/spring-projects/spring-boot 直接download 目录结构大概如下 如果全部编译的话,我没有编译通过 我是直接编译的spring-boot的工程C:\spring-boot-master\spring-原创 2018-01-24 20:39:04 · 2716 阅读 · 0 评论 -
spring boot 项目 redis启动报错 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
先说一下解决办法 修改配置redis.conf文件 C:\Users\coffee>C:\Java\Redis-x64-3.2.100\redis-server.exe redis.conf把redis.conf的配置文件的注释改为# notify-keyspace-events ""notify-keyspace-events Egxorg.springframework.b原创 2018-01-24 17:50:00 · 7212 阅读 · 0 评论 -
security认证导致的Cannot execute request on any known server
如果服务器端设置安全认证了 客户端在在配置defaultZone的时候需要带上用户名、密码 defaultZone: http://coffee:123456@localhost:9761/admin/eureka/ 否则将会报错com.netflix.discovery.shared.transport.TransportException: Cannot execute r原创 2018-01-15 13:42:23 · 2116 阅读 · 0 评论 -
spring cloud之 config配置刷新
有两种刷新方式1、http;//host:项目端口/项目上下文路径/refresh2、http;//host:config端口/config上下文路径/config management-上下文路径/bus/refresh原创 2019-02-01 16:43:08 · 385 阅读 · 0 评论