今天犯了一个低级错误,记下来,警惕自己。 在使用@Autowired注解的时候,忘记使用@Component给他实例化了,然后启动就一直报错"Error creating bean with name",记录下来,鞭策自己一下。