spring 版本冲突maven报错

12-12 08:45:38.564 main  ERROR o.s.w.c.ContextLoader - Context initialization failed
java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.<init>(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
    at org.springframework.context.expression.StandardBeanExpressionResolver.<init>(StandardBeanExpressionResolver.java:98) ~[spring-context-4.1.2.RELEASE.jar:4.1.2.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553) ~[spring-context-4.1.2.RELEASE.jar:4.1.2.RELEASE]


去查看包org.springframework.expression,SpelParserConfiguration的构造方法4与3版本有变化。找到依赖低版本的包,排除

你可能感兴趣的:(spring 版本冲突maven报错)