上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 一、添加依赖包 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.11.1</version> </dependency> <dependency> <groupI 阅读全文
posted @ 2020-04-23 00:56 VictorBu 阅读(4651) 评论(0) 推荐(1) 编辑
摘要: 一、配置部署调度中心 1.1 下载源码 https://github.com/xuxueli/xxl-job 1.2 数据库初始化 执行 /xxl-job/doc/db/tables_xxl_job.sql 1.3 修改配置 /xxl-job/xxl-job-admin/src/main/resou 阅读全文
posted @ 2020-04-21 10:41 VictorBu 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: 一、下载与运行 本文使用 Seata 1.1.0:https://github.com/seata/seata/releases Windows 环境下双击 bin/seata-server.bat 启动 Seata Server 二、结合 MyBatis 使用 以 Service1 为例 2.1 阅读全文
posted @ 2020-04-20 16:25 VictorBu 阅读(9373) 评论(0) 推荐(1) 编辑
摘要: 一、添加依赖包 <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.2</version> </depend 阅读全文
posted @ 2020-04-16 20:37 VictorBu 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 一、下载与运行 本文使用 SkyWalking 7.0.0:https://www.apache.org/dyn/closer.cgi/skywalking/7.0.0/apache-skywalking-apm-7.0.0.tar.gz Windows 环境下双击 bin/startup.bat 阅读全文
posted @ 2020-04-16 11:39 VictorBu 阅读(2036) 评论(0) 推荐(0) 编辑
摘要: 一、添加拦截器 public class HeaderRequestInterceptor implements ClientHttpRequestInterceptor { private final String headerName; private final String headerVa 阅读全文
posted @ 2020-04-15 20:52 VictorBu 阅读(7389) 评论(0) 推荐(2) 编辑
摘要: 在 Spring Boot 构建电商基础秒杀项目 (三) 通用的返回对象 & 异常处理 基础上优化、调整 一、通用类 1.1 通用的返回对象 public class CommonResult<T> { private Integer code; private String msg; privat 阅读全文
posted @ 2020-04-10 17:50 VictorBu 阅读(1491) 评论(2) 推荐(0) 编辑
摘要: 一、Sentinel 下载与运行 本文使用 Sentinel 1.7.1:https://github.com/alibaba/Sentinel/releases 使用自定义端口 8089 运行 Sentinel: java -Dserver.port=8089 -Dcsp.sentinel.das 阅读全文
posted @ 2020-03-30 16:42 VictorBu 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 一、新建项目 新建项目,只放置接口,用于暴露 Dubbo 服务接口 public interface GreetingService { String greeting(); } 二、provider 本文以上文中的 Service1 作为 provider,以 Service2 作为 consum 阅读全文
posted @ 2020-03-30 11:08 VictorBu 阅读(4768) 评论(0) 推荐(0) 编辑
摘要: 一、服务注册 添加依赖: <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 新建 阅读全文
posted @ 2020-03-27 10:02 VictorBu 阅读(1163) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页