摘要: 1. 前言 在开发Spring Boot应用时会用到根据条件来向Spring IoC容器注入Bean。比如配置文件存在了某个配置属性才注入Bean : 图中红色的部分是说,只有ali.pay.v1.app-id存在于Spring的环境配置中时这个@Configuration标记的类才能注入Sprin 阅读全文
posted @ 2021-01-13 08:54 码农小胖哥 阅读(1028) 评论(0) 推荐(1) 编辑