ConfigurationProperties相关

1、使用ConfigurationProperties(prefix=“book”)读取配置文件自定义配置信息时;类的成员变量要和配置文件的后缀名一样;

比如:book.name=English;

           book.author=Tom;成员变量就是name和author;否则会出现null问题;

原文地址:https://www.cnblogs.com/elian91/p/11157713.html