摘要: 需求 在服务启动时,获取服务的所有controller层接口url列表,通过CommandLineRunner实现服务启动时的操作。 CommandLineRunner在SpringApplication.run运行完成之后后才会运行自己创建的实现类。加入@Component注解后,就可以将对象交给 阅读全文
posted @ 2023-03-07 13:52 Andya_net 阅读(1227) 评论(0) 推荐(0) 编辑