摘要: /*************** 1、pom引入openfeign**********************/ <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-op 阅读全文
posted @ 2021-07-21 09:58 w20200618 阅读(2232) 评论(0) 推荐(0)
摘要: /********************** 自定义 授权拦截注解***********************************/ @Target({ElementType.METHOD, ElementType.TYPE})@Retention(RetentionPolicy.RUNTI 阅读全文
posted @ 2021-07-14 15:13 w20200618 阅读(290) 评论(0) 推荐(0)
摘要: 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)
摘要: /***************************** 导入使用步骤 *********************************/ List<Map<String, Object>> analysisExcel = null;synchronized (this) { Map<Stri 阅读全文
posted @ 2021-07-05 20:21 w20200618 阅读(32) 评论(0) 推荐(0)
摘要: @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)
摘要: 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)
摘要: @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)
摘要: 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)