![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 71
天青色等烟雨...
卷卷卷
展开
-
在springboot主程序启动后实现多个程序自动运行
在springboot的项目中,需要在容器启动之后执行一些操作,springboot提供了ApplicationRunner和CommandLineRunner两个接口,按理说可以帮助我们实现这种需求。但在项目里有两个程序实现了ApplicationRunner接口,并将逻辑代码分别放在了run()方法里,实际只能运行起来一个程序.原创 2022-03-22 15:36:49 · 1836 阅读 · 1 评论 -
SpringBoot与es(elasticsearch)整合问题集锦
在springboot项目中,针对elasticsearch读写遇到的问题记录.原创 2022-03-22 14:23:24 · 3546 阅读 · 0 评论