报错结尾:
Error creating bean with name ‘mvcResourceUrlProvider’: Requested bean is currently in creation: Is there an unresolvable circular reference?
基本上都是:循环依赖注入。
就是重复注入,导致ben创建不了
解决方案:
你需要给报错的类加一个懒依赖的注解
@Lazy
千万别导错包了
import org.springframework.context.annotation.Lazy;