mybatis逆向工程生成的代码怎么使用

2025-04-07 11:39:54
推荐回答(1个)
回答1:

  官方文档中提供的运行逆向工程的几种方法
  Running MyBatis Generator

  MyBatis Generator (MBG) can be run in the following ways:

  (1)From the command prompt with an XML configuration
  (2)As an Ant task with an XML configuration
  (3)As a Maven Plugin
  (4)From another Java program with an XML configuration
  (5)From another Java program with a Java based configuration
  (6)还可以通过eclipse的插件生成代码

  建议使用java程序方式(From another Java program with an XML configuration),不依赖开发工具。