qq_30916263
qq_30916263
采纳率0%
2017-08-14 12:10 阅读 1.0k

mybatis generator出错:#HY000

我是用的eclipse-generator插件,之前用一直没事,但是不知道今天为什么一直报错,求大牛指点 错误信息

下面是我的配置:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >

location="C:/Users/yanpin/.m2/repository/mysql/mysql-connector-java/5.1.42/mysql-connector-java-5.1.42.jar" />

<context id="mySql">

    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
        connectionURL="jdbc:mysql://197.255.20.22:8066/AdminDB" userId="root"
        password="mycat" />

    <javaTypeResolver>
        <property name="forceBigDecimals" value="false" />
    </javaTypeResolver>

    <!-- 生成模型的包名和位置 -->
    <javaModelGenerator
        targetPackage="com.yijiupi.himalaya.supplychain.orgSettings.domain.po"
        targetProject="himalaya-supplychain-microservice-orgSettings-provider">
        <property name="enableSubPackages" value="true" />
        <property name="trimStrings" value="true" />
    </javaModelGenerator>

    <!-- 生成映射文件的包名和位置 -->
    <sqlMapGenerator targetPackage="mappings"
        targetProject="himalaya-supplychain-microservice-orgSettings-provider\src\main\resources">
        <property name="enableSubPackages" value="true" />
    </sqlMapGenerator>

    <!-- 生成DAO的包名和位置 -->
    <javaClientGenerator type="XMLMAPPER"
        targetPackage="com.yijiupi.himalaya.supplychain.orgSettings.domain.dao"
        targetProject="himalaya-supplychain-microservice-orgSettings-provider">
        <property name="enableSubPackages" value="true" />
    </javaClientGenerator>



    <table tableName="adminuser" domainObjectName="AdminUserPO"
        enableCountByExample="false" enableUpdateByExample="false"
        enableDeleteByExample="false" enableSelectByExample="false"
        selectByExampleQueryId="false">
        <property name="useActualColumnNames" value="true"/>
    </table> 


</context>

再次感谢

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐