随笔分类 -  spring cloud

摘要:当配置中心用application.yml,其他微服务使用配置中心用bootstrap.yml时,其他服务启动时会将自己当作配置中心服务来注册,导致端口冲突。。。 已知服务启动时,bootstrap.yml比application.yml先读取。。。 这里的现象,其他微服务读取配置中心的config 阅读全文
posted @ 2022-09-10 15:37 liness0713 阅读(38) 评论(0) 推荐(0) 编辑
摘要:2021-05-26 14:57:20.387 logback [DiscoveryClient-2] ERROR c.n.discovery.TimedSupervisorTask - task supervisor timed outjava.util.concurrent.TimeoutExc 阅读全文
posted @ 2021-05-26 16:36 liness0713 阅读(7740) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/fxj0720/article/details/80255651 https://www.freesion.com/article/9245162331/ 实际解决这个问题是在站点的bootstrap.yml上添加如下配置 spring: servlet: 阅读全文
posted @ 2020-12-15 10:19 liness0713 阅读(3327) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/tang_jian_dong/article/details/82732064 0 0 * * * ? cron 表达式生成网站: http://cron.qqe2.com/ 阅读全文
posted @ 2020-10-20 14:45 liness0713 阅读(38066) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/edhg/p/10130112.html https://blog.csdn.net/yudianxiaoxiao/article/details/93674293 原代码 @EnableDiscoveryClient @EnableCircuitBr 阅读全文
posted @ 2020-06-03 15:01 liness0713 阅读(725) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yunjiandubu/p/11006919.html https://blog.csdn.net/lijun169/article/details/86536696 最近项目虽然已经在正常运行,但是偶尔会有一些不知名的错误冒出来,比如时不时报一个数据 阅读全文
posted @ 2020-05-14 15:19 liness0713 阅读(1028) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_40584261/article/details/88424058 在Spring Boot项目中,有时候需要获取项目的根路径,可以通过以下方法获取: /** * 获取项目根路径 * * @return */ private static S 阅读全文
posted @ 2020-05-06 11:42 liness0713 阅读(5767) 评论(1) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_34235457/article/details/88231392 文件上传下载rest接口定义import cn.hutool.core.io.FileUtil;import cn.hutool.core.util.StrUtil;impo 阅读全文
posted @ 2019-07-04 14:58 liness0713 阅读(2652) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示