![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springcloud
super-DAI
这个作者很懒,什么都没留下…
展开
-
SpringCloud Config分布式配置
1.SpringCloud Config分布式配置什么是SpringCloud Config分布式配置中心 比如现在有多个服务A、B、C三个服务,那么他就会有三个配置文件,那如果我们可以把这三个配置文件放在同一个配置中心中,这样效果就会比较的好,然后我们就从这个配置服务中心去找,这样的话就比较的方便; SpringCloud Config为微服务架构中的微服务提供集中化的外部配置支持,配置服务器为各个不同微服务的应用的所有环节提供了一个中心化的外部配置。 Spring Cloud Config原创 2020-11-08 21:19:02 · 137 阅读 · 0 评论 -
SpringCloud-Eureka集群搭建
1.SpringCloud环境搭建创建一个maven项目(删除src目录):父工程导入相关依赖(jar包)<!--打包方式--><packaging>pom</packaging><!-- <properties>--><!-- <!–引入版本号–>--><!-- <junit.version>原创 2020-11-07 21:55:44 · 273 阅读 · 0 评论 -
什么是SpringCloud
1.SpringCloud是什么?SpringCloud他是现代化的java开发SpringCloud他是基于Springboot提供了一套微服务解决方案,包括服务注册与发现,配置中心,全链路监控,服务网关,负载均衡,熔断器等组件,除了基于NetFlix的开源组件做高度抽象封装之外,还有一些选型中立的开源组件。SpringCloud的利用SpringBoot的开发便利性,巧妙地简化了分布式系统基础设施的开发,SpringCloud为开发人员提供了快速构建分布式系统的一些工具,包括配置管理,服务发现,原创 2020-11-07 21:48:01 · 184 阅读 · 1 评论 -
找不到或无法加载主类
1.配置Eureka报错Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat版本的问题,之前用的springboot2.26、springcloud用的1.46就报错了,然后我把Springboot的版本降到2.16就可以运行了2.找不到或无法加载主类说明有一些资源或者文件不存在了原创 2020-10-23 23:06:10 · 707 阅读 · 0 评论 -
Cannot deserialize instance of
1.无法从START_ARRAY标记中反序列化’ com.ddf.springcloud.pojo.Dept '的实例Cannot deserialize instance of com.ddf.springcloud.pojo.Dept out of START_ARRAY tokenat [Source: (PushbackInputStream); line: 1, column: 1]最终发现是这里错了:返回值类型错了应该是这个:...原创 2020-10-23 23:02:25 · 9206 阅读 · 0 评论 -
Failed to bind properties under ‘mybatis.configuration‘ to org.apache.ibatis.session.Configuration:
1.记录一下使用SpringCloud分布式集群踩得坑01:找不到mybatis配置文件Failed to bind properties under ‘mybatis.configuration’ to org.apache.ibatis.session.Configuration:之前一直以为是版本的问题,然后降低了版本也还是一样!!!最后测试发现是我这个地方路径写错了:...原创 2020-10-23 22:59:46 · 5568 阅读 · 2 评论