亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

錯誤提示“加密”?

在換成Mybatis之前程序能正常運行,換了之后一直報錯,


<!DOCTYPE mapper
? ? ? ?PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
? ? ? ?"http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="Message">

? ?<resultMap type="com.imooc.bean.Message" id="MessageResult">
? ? ? ?<id column="id" jdbcType="INTEGER" property="id"/>
? ? ? ?<result column="command" jdbcType="VARCHAR" property="command"/>
? ? ? ?<result column="description" jdbcType="VARCHAR" property="description.encrypted"/>
? ? ? ?<result column="content" jdbcType="VARCHAR" property="content"/>
? ?</resultMap>

? ?<select id="queryMessageList" ?resultMap="MessageResult">
? ? ? ?SELECT
? ? ? ? ? ?id,
? ? ? ? ? ?command,
? ? ? ? ? ?description,
? ? ? ? ? ?content
? ? ? ?FROM message
? ? ? ?WHERE 1 = 1
? ?</select>
</mapper>



### The error may involve Message.queryMessageList
### The error occurred while handling results
### SQL: SELECT ? ? ? ? ? ? id, ? ? ? ? ? ? command, ? ? ? ? ? ? description, ? ? ? ? ? ? content ? ? ? ? FROM message ? ? ? ? WHERE 1 = 1
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'encrypted' of 'class java.lang.String' with value '精彩內容' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'encrypted' in 'class java.lang.String'

正在回答

1 回答

找到錯誤了。。。<result column="description" jdbcType="VARCHAR" property="description.encrypted"/>

多了.encrypted

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

錯誤提示“加密”?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號