Seata+naocs 使用
摘要:1. 环境seata1.5.2. nacos2.1.0 本地配置好nacos之后 新建一个seata的命名空间,seata 需要使用 seata准备 1: 创建mysql的seata数据库 执行\seata-server-1.5.2\script\server\db\mysql.sql 2: 拷贝c
阅读全文
posted @
2023-09-26 11:11
1161588342
阅读(71)
推荐(0) 编辑
spring boot 上传文件大小超出限制
摘要:查看源码如下: org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration 可以看见调用了MultipartProperties类的createMultiparConfig()方法 org.springf
阅读全文
posted @
2022-10-21 14:12
1161588342
阅读(432)
推荐(0) 编辑
分布式消息事务一致性,以及rocketMq实现
摘要:参考 https://www.jianshu.com/p/eb571e4065ec http://localhost:8080/mall/index.html#/receipt/receipt-edit?id=245
阅读全文
posted @
2019-11-29 14:11
1161588342
阅读(186)
推荐(0) 编辑
Spring colud gateway 源码小计
摘要:方志鹏 https://www.fangzhipeng.com/spring-cloud.html 先看一个小demo gateway 使用查看源码 非常容易使用, 主要用了 fn.apply 的作用: 把 函数 addRequestHeader 作用在GatewayFilterSpec上面调用.
阅读全文
posted @
2019-07-19 17:55
1161588342
阅读(309)
推荐(0) 编辑
Srping cloud Ribbon 自定义负载均衡
摘要:IRule 默认提供有7种方式,使用轮询方式 如何自定义 1:主启动类加@RibbonClient @RibbonClient(name="微服务名", configuration=MySelfRule.class) 也就是说MySelfRule.java不能和@SpringBootApplicat
阅读全文
posted @
2018-08-15 23:01
1161588342
阅读(120)
推荐(0) 编辑
Spring cloud Eureka 和 Zookeeper 比较
摘要:Eureka AP Zookeeper CP 好处:
阅读全文
posted @
2018-08-14 22:18
1161588342
阅读(137)
推荐(0) 编辑
Spring cloud info信息显示
摘要:父工程添加配置如下 子pom.xml $为上面配置的
阅读全文
posted @
2018-08-14 21:36
1161588342
阅读(378)
推荐(0) 编辑
Spring cloud 分布式锁
摘要:https://github.com/easonstudy/springboot_demo study目录中
阅读全文
posted @
2018-04-25 11:51
1161588342
阅读(145)
推荐(0) 编辑
Docker dockerfile-maven-plugin 使用
摘要:https://blog.csdn.net/liubingyu12345/article/details/79015966 背景: 环境阿里云CentOs7下面Docker部署Spring boot 项目 1:docker配置 1.1: docker安装 1.2: 开启docker 远程api 参考
阅读全文
posted @
2018-04-23 18:30
1161588342
阅读(3926)
推荐(0) 编辑
Docker remote api 开启
摘要:https://www.cnblogs.com/520playboy/p/7921633.html ExecStart=/usr/bin/dockerd-current -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 \
阅读全文
posted @
2018-04-23 17:23
1161588342
阅读(131)
推荐(0) 编辑
Linux git 关联 github仓库
摘要:背景: 由于最近学习Spring cloud docker 一键部署, 需要把github仓库项目, 放在Linux上面启动, (以下位置在/root/目录中执行)步骤, 1:安装 git >yum install git -y 查看安装是否成功 >git --version 2:生成ssh ls
阅读全文
posted @
2018-04-23 12:17
1161588342
阅读(272)
推荐(0) 编辑
Spring cloud Eureka高可用 - 配置
摘要:个人项目源码: https://github.com/easonstudy/cloud-demo/tree/master/eureka-peer-server Window 7 修改hosts http://www.cnblogs.com/eason-d/p/8874549.html 注意不要在pe
阅读全文
posted @
2018-04-18 15:10
1161588342
阅读(108)
推荐(0) 编辑
Spring cloud Eureka高可用 - Windows 7 hosts文件立即生效
摘要:hosts 文件所在位置 c:/windows/system32/drivers/etc/hosts 左下角 搜索框 搜索 cmd 弹出命令框 输入 ipconfig /displaydns 显示所有 dns内容 ipconfig /flushdns 刷新所有 dns内容
阅读全文
posted @
2018-04-18 14:20
1161588342
阅读(305)
推荐(0) 编辑
spring-boot-actuator报错Full authentication is required to access this resource
摘要:https://blog.csdn.net/fly910905/article/details/78580895 方式1-关闭验证 方式1-关闭验证 application.properties添加配置参数 management.security.enabled=false 方式2-开启HTTP b
阅读全文
posted @
2018-04-13 18:04
1161588342
阅读(607)
推荐(0) 编辑
Spring cloud @RefreshScope使用
摘要:参数 请求 http://localhost:8881/refresh
阅读全文
posted @
2018-04-13 17:24
1161588342
阅读(1021)
推荐(0) 编辑
Spring cloud config-client 爬坑
摘要:配置文件 找不到属性 Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'from' in string value "${from}"
阅读全文
posted @
2018-04-13 17:01
1161588342
阅读(138)
推荐(0) 编辑
Spring cloud 两种服务调用方式(Rest + Ribbon) 和 Fegin方式
摘要:1:Rest + Ribbon 2:Fegin默认 集成Ribbon
阅读全文
posted @
2018-04-13 13:17
1161588342
阅读(297)
推荐(0) 编辑
Spring Colud 学习
摘要:转自: http://blog.csdn.net/forezp/article/details/70148833#t0
阅读全文
posted @
2018-01-10 18:56
1161588342
阅读(187)
推荐(0) 编辑