会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
w20200618
博客园
首页
新随笔
联系
订阅
管理
2021年7月21日
FeignClient使用动态地址
摘要: /*************** 1、pom引入openfeign**********************/ <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-op
阅读全文
posted @ 2021-07-21 09:58 w20200618
阅读(2232)
评论(0)
推荐(0)
2021年7月14日
使用自定义注解校验用户授权和获取授权信息
摘要: /********************** 自定义 授权拦截注解***********************************/ @Target({ElementType.METHOD, ElementType.TYPE})@Retention(RetentionPolicy.RUNTI
阅读全文
posted @ 2021-07-14 15:13 w20200618
阅读(290)
评论(0)
推荐(0)
2021年7月8日
mock测试
摘要: 1、导入mockjs 2、在main.js中引入mock /** * mock 测试 */const openMock = true// const openMock = falseif (openMock) { require('@/../test/mock')} /***************
阅读全文
posted @ 2021-07-08 18:37 w20200618
阅读(105)
评论(0)
推荐(0)
2021年7月5日
excel导入
摘要: /***************************** 导入使用步骤 *********************************/ List<Map<String, Object>> analysisExcel = null;synchronized (this) { Map<Stri
阅读全文
posted @ 2021-07-05 20:21 w20200618
阅读(32)
评论(0)
推荐(0)
excel 导出工具类
摘要: @PostMapping(value = "/exportAllDevice")public void exportAllDevice( @RequestHeader @NotBlank(message = "authorization不能为空") String authorization, @Re
阅读全文
posted @ 2021-07-05 20:14 w20200618
阅读(126)
评论(0)
推荐(0)
自定义字符串拼接类
摘要: public class MyStringBuilder { private StringBuilder sb; public MyStringBuilder(){ sb = new StringBuilder(); } /** * 添加数据值 * @param obj * @return */ p
阅读全文
posted @ 2021-07-05 20:11 w20200618
阅读(58)
评论(0)
推荐(0)
Aes加解密工具类
摘要: public class AesUtil { public static final String UTF_8 = "UTF-8"; /** * 必须16位 */ private static final String S_KEY ="0123456789ABCDEF"; /** * 必须16位 *
阅读全文
posted @ 2021-07-05 20:09 w20200618
阅读(187)
评论(0)
推荐(0)
分页结果工具类
摘要: public class PageInfoUtil { /** * 获取分页结果 * * @param pageBase * @param totalRecord * @param objData * @return */ public static PageInfo getPageInfo(Pag
阅读全文
posted @ 2021-07-05 20:06 w20200618
阅读(84)
评论(0)
推荐(0)
全局api统一返回结果类
摘要: @Data@Slf4j@Schema(description = "全局API统一返回结果类")public class Result<T> { /** * 状态码 0 成功 */ @Schema(description = "状态码 0 成功,其他--失败") private Integer co
阅读全文
posted @ 2021-07-05 20:04 w20200618
阅读(202)
评论(0)
推荐(0)
集成swagger3基本用法
摘要: 1、引入pom<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version></dependency>2、增加swagger3配
阅读全文
posted @ 2021-07-05 11:49 w20200618
阅读(1626)
评论(0)
推荐(0)
下一页
公告