鮀城小帅 2018-11-27 01:55 采纳率: 100%
浏览 1760
已采纳

SpringCloud微服务开发时报了一个错,请经验丰富的高手指教一下?

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Nov 27 09:52:19 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
status 500 reading ProcessApplyRemoteService#getCertListByAccttypeRemote(Byte); content: {"timestamp":1543283539684,"status":500,"error":"Internal Server Error","exception":"org.mybatis.spring.MyBatisSystemException","message":"nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='accType', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).","path":"/get/cert/list/by/accttype/remote/0"}

  • 写回答

3条回答 默认 最新

  • 鮀城小帅 2018-11-27 02:00
    关注

    好吧!刚发的问题贴,立马自己解决了!也是没谁了。主要在于sql语句使用多表查询,在进行id获取时使用了on ,事实是需要使用in来指定所有的变量,不然就会出现查询返回结果为0,而数据库却明明存在该数据的尴尬局面

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能