Error creating bean with name 'fileController': Unsatisfied dependency expressed through field 'tranFileService'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'tranFileService': Bean with name 'tranFileService' has been injected into other beans [tranStringMGService] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
发生场景是,service-A中注入service-B,service-B中注入service-A,spring在启动时不知先注入service-A,还是service-B,这就是所谓的循环依赖,解决办法是在其中一个或两个注入加上@Lazy注解。