@Configration爆红 问题原因: 一:没有添加依赖 二:添加依赖了,但是依赖版本过低 解决方法:把依赖的版本改的高一点 <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.3.13</version> spring3.x后才有@Configration注解,所以添加spring-context依赖的时候 版本要选择3.x以后的