会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
17
下一页
2020年4月23日
JJWT 使用示例
摘要: 一、添加依赖包 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.11.1</version> </dependency> <dependency> <groupI
阅读全文
posted @ 2020-04-23 00:56 VictorBu
阅读(4820)
评论(0)
推荐(1)
2020年4月21日
Spring Boot 使用 XXL-JOB
摘要: 一、配置部署调度中心 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
阅读(1902)
评论(0)
推荐(0)
2020年4月20日
Spring Cloud Alibaba 初体验(六) Seata 及结合 MyBatis 与 MyBatis-Plus 的使用
摘要: 一、下载与运行 本文使用 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
阅读(9552)
评论(0)
推荐(1)
2020年4月16日
使用 Jasypt 加密 Spring Boot 配置文件
摘要: 一、添加依赖包 <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
阅读(545)
评论(0)
推荐(0)
Spring Cloud Alibaba 初体验(五) SkyWalking
摘要: 一、下载与运行 本文使用 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
阅读(2065)
评论(0)
推荐(0)
2020年4月15日
RestTemplate 统一添加 Header
摘要: 一、添加拦截器 public class HeaderRequestInterceptor implements ClientHttpRequestInterceptor { private final String headerName; private final String headerVa
阅读全文
posted @ 2020-04-15 20:52 VictorBu
阅读(7450)
评论(0)
推荐(2)
2020年4月10日
Spring Boot 统一返回结果及异常处理
摘要: 在 Spring Boot 构建电商基础秒杀项目 (三) 通用的返回对象 & 异常处理 基础上优化、调整 一、通用类 1.1 通用的返回对象 public class CommonResult<T> { private Integer code; private String msg; privat
阅读全文
posted @ 2020-04-10 17:50 VictorBu
阅读(1637)
评论(2)
推荐(0)
2020年3月30日
Spring Cloud Alibaba 初体验(四) Sentinel
摘要: 一、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
阅读(446)
评论(0)
推荐(0)
Spring Cloud Alibaba 初体验(三) Nacos 与 Dubbo 集成
摘要: 一、新建项目 新建项目,只放置接口,用于暴露 Dubbo 服务接口 public interface GreetingService { String greeting(); } 二、provider 本文以上文中的 Service1 作为 provider,以 Service2 作为 consum
阅读全文
posted @ 2020-03-30 11:08 VictorBu
阅读(4820)
评论(0)
推荐(0)
2020年3月27日
Spring Cloud Alibaba 初体验(二) Nacos 服务注册与发现 + 集成 Spring Cloud Gateway
摘要: 一、服务注册 添加依赖: <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 新建
阅读全文
posted @ 2020-03-27 10:02 VictorBu
阅读(1189)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
17
下一页
公告