mybatis No enum const class org.apache.ibatis.type.JdbcType.Integer(转)

mybais在使用的时候报错,写法是

 

 <if test="direct != null and direct != ''" >
        #{direct,jdbcType=Integer,
      </if>

 

最后修正为

 

 

 

 <if test="direct != null and direct != ''" >
        #{direct,jdbcType=INTEGER,
      </if>

 

所以 mybatis配置重的jdbaType类型要是大写的,否则就会出现此种异常

posted @ 2017-12-15 12:34  guodaxia  阅读(164)  评论(0)    收藏  举报