我导入了依赖了还有这个
在另外一个类上EnableConfiguratinProperties注解启用该注解标识的类 就没这个了
不过能运行起yml中的值注入进来了就是不知道为什么有这个错
@ConfigurationProperties(prefix="user")这个东西是为了方便把username、age、bass等注入进User对象。如果没有这个对象,需要还另外一种写法@Value(${user.username})、@Value(${user.age})