另一个问题:The type org.springframework.beans.factory.support.BeanNameGenerator cannot be resolved. It is indirectly referenced from required .class files,从这句话意思来看是缺少org.springframework.beans相关得jar包,重复上述操作,找到org.springframework.beans相关jar包,引入即可。
总结/个人理解:The import “xxx” cannot be resolved相关问题,即为"xxx"相关的依赖缺失,引入相关的jar包即可。