org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.github.spring_learn.conf.MyProperties@ConfigurationProperties Bean可以以标准方式注册(例如使用@Bean方法),或者为了方便,可以在这个注释上直接指定。@ConfigurationProperties 不是指快速注册为 Spring Bean 吗
当然,我可以用@compen
我搜索了是否应该用@Component注释POJO。似乎建议不要对pojo进行注释。下面是读取txt文件的OrderStatusMnemonic配置类:public class OrderStatusMnemonic {}'com.spectrum.sci.osm.orderstatus.OrderStatus‘考虑在您的配置中定义