需求:在项目启动后 , 把字典表里面的值都放在Redis 中
springboot 提供的CommandLineRunner解决 ,如果有多个CommandLineRunner ,则需要使用@Order指定顺序
CommandLineRunner
最新推荐文章于 2024-04-16 14:43:13 发布
需求:在项目启动后 , 把字典表里面的值都放在Redis 中
springboot 提供的CommandLineRunner解决 ,如果有多个CommandLineRunner ,则需要使用@Order指定顺序