微服务(microservices)这个概念不是新概念,很多公司已经在实践了,例如亚马逊、Google、FaceBook,Alibaba。微服务架构模式(MicroservicesArchitecturePattern)的目的是将大型的、复杂的、长期运行的应用程序构建为一组相互配合的服务,每个服务都可以很容易得局部改良。Micro这个词意味着每个服务都应该足够小,但是,这里的小不能用代码量来比较,
分类:
编程语言 时间:
2019-07-23 10:00:27
阅读次数:
100
报错问题: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfig ...
分类:
数据库 时间:
2019-07-22 10:14:25
阅读次数:
110
provider service注解暴露服务 PS:@Service注解很容易用错,目前有两个包有@Service注解: com.alibaba.dubbo.config.annotation.Service:用于标注对外暴露的dubbo接口实现类。 org.springframework.ster ...
分类:
其他好文 时间:
2019-07-21 18:32:42
阅读次数:
429
一、下载fastjson.jar http://repo1.maven.org/maven2/com/alibaba/fastjson 二、项目添加jar包 Java Build Path 三、导入类 四、转换(这里以集合为例) ...
分类:
编程语言 时间:
2019-07-21 16:26:01
阅读次数:
182
安装了elementary os系统,内核是ubuntu18.0.4 将镜像的源更换成国内,在安装程序的时候会更加快 最近用了腾讯的源,挺好用的,链接附上,找到自己的linux系统版本,点击help就能看到 https://opsx.alibaba.com/mirror 1.备份源文件sources ...
分类:
系统相关 时间:
2019-07-21 01:06:22
阅读次数:
182
该文档是基于springcloud版本进行开发。Nacos持久化可以参考:https://mp.weixin.qq.com/s/6khhRU46J2kFJKUBuDyTGQ项目集成依赖最新版本可以参考https://github.com/spring-cloud-incubator/spring-cloud-alibaba/releases<dependency><groupId
分类:
编程语言 时间:
2019-07-20 10:27:36
阅读次数:
360
Spring Cloud Alibaba | Sentinel: 服务限流高级篇 Springboot: 2.1.6.RELEASE SpringCloud: Greenwich.SR1 如无特殊说明,本系列文章全采用以上版本 [TOC] 上一篇 "《Spring Cloud Alibaba | S ...
分类:
编程语言 时间:
2019-07-20 09:49:45
阅读次数:
135
一、导包: <dependencies> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.2.0</version> </de ...
分类:
编程语言 时间:
2019-07-19 21:06:06
阅读次数:
145
Spring Cloud Alibaba | Sentinel: 服务限流基础篇 Springboot: 2.1.6.RELEASE SpringCloud: Greenwich.SR1 如无特殊说明,本系列文章全采用以上版本 [TOC] 上一篇 "《Spring Cloud Alibaba | S ...
分类:
编程语言 时间:
2019-07-19 10:48:55
阅读次数:
2013
包:com.alibaba.fastjson.JSONObject;需求:在调用post请求的接口时,入参参数是json格式。 解决: 1、用map对象分别将入参的格式键值对写好 2、将map对象转换为json对象 3、直接用此json对象作为post接口的入参即可 ...
分类:
编程语言 时间:
2019-07-18 15:10:48
阅读次数:
425