为了账号安全,请及时绑定邮箱和手机立即绑定

ssm整合 表现层访问时报错。。

ssm整合 表现层访问时报错。。

冉冉说 2018-10-22 08:28:42
严重: Servlet.service() for servlet [tour-manager] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.nestedIfOptional()Lorg/springframework/core/MethodParameter;] with root causejava.lang.NoSuchMethodError: org.springframework.core.MethodParameter.nestedIfOptional()Lorg/springframework/core/MethodParameter;at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.supportsParameter(RequestParamMethodArgumentResolver.java:137)at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.getArgumentResolver(HandlerMethodArgumentResolverComposite.java:135)
查看完整描述

2 回答

?
慕少森

TA贡献2019条经验 获得超9个赞

谢邀, 你看下你引用的spring-core是什么版本的? MethodParameter#nestedIfOptional()好像是4.3之后才有的, 看下是不是引用了多个不同版本的spring-core, 导致冲突之类的

查看完整回答
反对 回复 2018-10-29
?
德玛西亚99

TA贡献1770条经验 获得超3个赞

按照楼上说的 MethodParameter#nestedIfOptional() 是spring 4.3版本引入新方法,用
mvn dependency:tree 命令查看下哪个pom引入了spring 4.3以上版本

查看完整回答
反对 回复 2018-10-29
  • 2 回答
  • 0 关注
  • 957 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信