上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: @Configuration @EnableAsync public class AppConfig implements AsyncConfigurer { @Bean("myAsyncThread”) public Executor getAsyncExecutor() { ThreadPool 阅读全文
posted @ 2024-01-31 14:39 清明雨下 阅读(13) 评论(0) 推荐(0)
摘要: @Componentpublic class KafkaRegisterEntryPoint implements CommandLineRunner { @Autowired ApplicationContext applicationContext; @Override public void 阅读全文
posted @ 2024-01-31 11:28 清明雨下 阅读(44) 评论(0) 推荐(0)
摘要: import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationEvent; import org.springframework.context.event.A 阅读全文
posted @ 2024-01-29 16:16 清明雨下 阅读(27) 评论(1) 推荐(0)
摘要: 一、在linux机器上创建隧道 172.36.11.154 能访问 172.36.11.153:22端口 , 172.36.11.154 不能直接访问10.209.22.101:8157 则 172.36.11.154:18154 》(172.36.11.153:22) 》10.209.22.101 阅读全文
posted @ 2024-01-19 16:40 清明雨下 阅读(188) 评论(0) 推荐(0)
摘要: @FeignClient(name = "feignClient", url = "${aaa.Url:http://127.0.0.1:80}", configuration = {CustFeignConfig.class})public interface FeignClient { @Pos 阅读全文
posted @ 2024-01-17 09:09 清明雨下 阅读(21) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/fox9916/article/details/129086542 阅读全文
posted @ 2023-11-21 09:52 清明雨下 阅读(12) 评论(0) 推荐(0)
摘要: CommandLineRunner ApplicationRunner 注意: 在其run方法中如果使用线程操作,那么 如果线程中有使用dao 且dao是注入的话,则dao在第二次使用时 连接会被关闭,解决方案是,在run方法中publish一个event 然后通过EventListener 异步处 阅读全文
posted @ 2023-11-21 09:40 清明雨下 阅读(15) 评论(0) 推荐(0)
摘要: 如果 msg 是 { "b": 1, "a": null } JSONObject msgObj = JSON.parseObject(msg); msgObj.getOrDefault("a","").toString() 报空指针 阅读全文
posted @ 2023-09-14 10:58 清明雨下 阅读(56) 评论(0) 推荐(0)
摘要: public void deleteDir(File dir){ try (Stream<Path> walk = Files.walk(dir.toPath())) { walk.sorted(Comparator.reverseOrder()) .forEach(path -> { try { 阅读全文
posted @ 2023-05-31 17:18 清明雨下 阅读(51) 评论(0) 推荐(0)
摘要: 转https://blog.csdn.net/weixin_45070175/article/details/118559272 阅读全文
posted @ 2022-11-21 14:44 清明雨下 阅读(29) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页