SpringBoot中@ConfigurationProperties和@value绑定配置信息的区别
一.@ConfigurationProperties绑定配置信息1.编写Bean/* * 读取配置文件application.properties中配置,不需要注解@PropertySource指定配置文件位置。 * 配置文件路径:properties/config.properties * @ConfigurationProperties:告诉springboot将本类中所有属...