因为在同一个class 里面,引用了另一个注解@AllArgsConstructor
后来删除了@AllArgsConstructor,只是留下@Value ,项目正常启动
结论:@AllArgsConstructor 与 @Value 注解不能同时使用

更多推荐

Consider defining a bean of type ‘java.lang.String‘ in your configuration注入配置报错问