看下spring说的类,两个类之间发生循环引用了,请在一方的注入属性上添加@Lazy注解。避免循环引用。

更多推荐

Spring consider using ‘getBeanNamesOfType‘ with the ‘allowEagerInit‘ flag turned