錯(cuò)誤提示“加密”?
在換成Mybatis之前程序能正常運(yùn)行,換了之后一直報(bào)錯(cuò),
<!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 '精彩內(nèi)容' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'encrypted' in 'class java.lang.String'
2016-07-21
找到錯(cuò)誤了。。。<result column="description" jdbcType="VARCHAR" property="description.encrypted"/>
多了.encrypted