一、该问题的重现步骤是什么?
将原来项目升级成最新版本后,
由于跨版本太多,我采用是把最新代码下载下来之后 ,把自己的业务代码,数据库,复制到最新的代码上,
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'notice' not found. Available parameters are [ew, page, param1, param2]
大部分功能都是正常使用的,只有在公告列表中,报错,
/** * 分页 */ @GetMapping("/list") @ApiImplicitParams({ @ApiImplicitParam(name = "category", value = "公告类型", paramType = "query", dataType = "integer"), @ApiImplicitParam(name = "title", value = "公告标题", paramType = "query", dataType = "string") }) @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入notice") public R> list(@ApiIgnore @RequestParam Map notice, Query query) { IPage pages = noticeService.page(Condition.getPage(query), Condition.getQueryWrapper(notice, Notice.class)); return R.data(NoticeWrapper.build().pageVO(pages)); }
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
原使用是bladex Boot2.2,现换成2.7
四、请提供详细的错误堆栈信息,这很重要。
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'notice' not found. Available parameters are [ew, page, param1, param2] at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) at com.sun.proxy.$Proxy128.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForIPage(MybatisMapperMethod.java:122) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:87) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89) at com.sun.proxy.$Proxy203.selectPage(Unknown Source) at com.baomidou.mybatisplus.extension.service.IService.page(IService.java:296) at com.baomidou.mybatisplus.extension.service.IService$$FastClassBySpringCGLIB$$f8525d18.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) at com.hx.modules.desk.service.impl.NoticeServiceImpl$$EnhancerBySpringCGLIB$$6b24ea76.page( ) at com.hx.modules.desk.controller.NoticeController.list(NoticeController.java:98) at com.hx.modules.desk.controller.NoticeController$$FastClassBySpringCGLIB$$878e7aa9.invoke( ) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端