maaho 2019-11-22 16:57 采纳率: 0%
浏览 4719

这类 jdbcType (null) combina 问题怎么处理?

报错内容:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error updating database. Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'infoShip'. It was either not specified and/or could not be found for the javaType (com.c503.position.domain.InfoShip) : jdbcType (null) combination.

Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'infoShip'. It was either not specified and/or could not be found for the javaType (com.c503.position.domain.InfoShip) : jdbcType (null) combination.] with root cause

java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'infoShip'. It was either not specified and/or could not be found for the javaType (com.c503.position.domain.InfoShip) : jdbcType (null) combination.

下面是 .xml文件里的

<resultMap id="BaseResultMap" type="com.c503.position.domain.InfoTerminalManagement" autoMapping="true">
    <id column="id" property="id" />
    <result column="terminal_id" property="terminalId" />
    <result column="terminal_type" property="terminalType" />
    <result column="ship_name" property="shipName" />
    <result column="state" property="state" />
    <!-- 一对一映射,封装InfoShip的内容-->
<association  property="infoShip" javaType="com.c503.position.domain.InfoShip" autoMapping="true" >
        <id column="id" property="id"  />
        <result column="ship_name" property="shipName" />
        <result column="ship_id" property="shipId" />
        <result column="ship_type" property="shipType" />
        <result column="owner_name" property="ownerName" />
        <result column="owner_tel" property="ownerTel" />
        <result column="ship_length" property="shipLength" />
        <result column="ship_width" property="shipWidth" />
        <result column="ship_depth" property="shipDepth" />
        <result column="material" property="material" />
        <result column="power" property="power" />
        <result column="ship_picture" property="shipPicture" />
</association>
</resultMap>
  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler