1.generator.xml

<?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">

<generatorConfiguration>
    <classPathEntry location="C:\Users\rocky\.m2\repository\com\oracle\ojdbc6\11.2.0.1.0\ojdbc6-11.2.0.1.0.jar" />

    <context />
            
        </table>
    </context>
</generatorConfiguration>

2.  mybatis-generator-core-1.3.2.jar

3.  java -jar mybatis-generator-core-1.3.2.jar -configfile generator.xml -overwrite

4. some problems:

   ~if the table short of primary key, you maynot generate the right mapper file and interface(only has the insert method).

 

 

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-04-29
  • 2021-04-09
  • 2021-11-10
  • 2021-09-02
相关资源
相似解决方案