Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache

org.apache.ibatis.type.TypeException: Could not resolve type alias ‘org.mybatis.caches.ehcache.LoggingEhcache’. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache

我的mapper文件是使用工具生成的,不知道谁把二级缓存给打开了,然而我们项目中没有配置Ehcache



<mapper namespace="share.moc.modular.mapper.MocModifyodGoodsMapper">

    
    <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/>

    
    <resultMap id="BaseResultMap" type="share.moc.modular.entity.MocModifyodGoods">
        <id column="MODIFYOD_GOODS_ID" property="modifyodGoodsId" />
        <result column="MODIFYOD_GOODS_MODIFYOD_ID" property="modifyodGoodsModifyodId" />
        <result column="MODIFYOD_GOODS_INFO" property="modifyodGoodsInfo" />
    resultMap>

    
    <sql id="Base_Column_List">
        MODIFYOD_GOODS_ID AS modifyodGoodsId, MODIFYOD_GOODS_MODIFYOD_ID AS modifyodGoodsModifyodId, MODIFYOD_GOODS_INFO AS modifyodGoodsInfo
    sql>

mapper>

你可能感兴趣的:(错误,java)