摘要: // 試験方法(neCollectionCheck) boolean result = ReflectionTestUtils.invokeMethod(collectionService_, "neCollectionCheck", getNeInfo(), vlanUsageUsedIndexL 阅读全文
posted @ 2023-03-17 15:37 linxiaofeng 阅读(12) 评论(0) 推荐(0) 编辑
摘要: IntelliJ IDEA 2020.2 破解版(附永久破解激活方法)Java开发者必备的神器 - 癫狂编程 - 博客园 (cnblogs.com) 阅读全文
posted @ 2023-03-13 12:20 linxiaofeng 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 模拟工具类的static,abstact方法要使用mock up new MockUp<MoidUtility>() { @Mock Integer getPortNoFromIfIndex(Integer envString) { return 0; } } 模拟方法log.isDebugEnab 阅读全文
posted @ 2023-03-02 16:18 linxiaofeng 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 报错: Caused by: java.lang.IllegalStateException: JMockit didn't get initialized; please check the -javaagent JVM initialization parameter was used at m 阅读全文
posted @ 2023-02-24 11:44 linxiaofeng 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 io.springfox springfox-swagger2 io.springfox springfox-swagger-ui 2.添加配置类(注意:如果配置类不在一个模块下,那么要进行包扫描@ComponentScan(" ")) @Configuration @EnableSw 阅读全文
posted @ 2022-09-29 20:09 linxiaofeng 阅读(21) 评论(0) 推荐(0) 编辑
摘要: springtask中cron表达式共6位,分别是: 秒 分 时 日 月 周 1表示周日,2表示周一 ....... 1.在启动类上加 :@EnableScheduling 2.在方法上加如:@Scheduled(cron = "0/5 * * * * ?") *表示在任意范围 ?表示不指定,只能出 阅读全文
posted @ 2022-09-27 17:56 linxiaofeng 阅读(30) 评论(0) 推荐(0) 编辑
摘要: (36条消息) ElasticSearch高级 (Query DSL查询 bulk批量操作 导入数据 各种查询 实战技巧-优化比重 全量与增量数据同步)_Ybb_studyRecord的博客-CSDN博客_elasticsearch 批量导入数据 阅读全文
posted @ 2022-09-24 15:28 linxiaofeng 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 <!--网关--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> <!--nac 阅读全文
posted @ 2022-09-24 14:42 linxiaofeng 阅读(18) 评论(0) 推荐(0) 编辑
摘要: nacos的使用 1.导入依赖 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 阅读全文
posted @ 2022-09-23 21:29 linxiaofeng 阅读(19) 评论(0) 推荐(0) 编辑
摘要: docker命令 1.保存镜像:docker save -o [保存的目标文件名称] [镜像名称] 2.导出镜像:docker save -o nginx.tar nginx:latest 3.加载镜像压缩包:docker load -i nginx.tar 4.删除镜像:docker rmi ng 阅读全文
posted @ 2022-09-23 20:52 linxiaofeng 阅读(85) 评论(0) 推荐(0) 编辑