mybatis-generator官网:

  http://www.mybatis.org/generator/running/runningWithMaven.html

 

在pom.xml中的 build下添加:

<build>
        <plugins>
            <plugin>
                <groupId>org.mybatis.generator</groupId>
                <artifactId>mybatis-generator-maven-plugin</artifactId>
                <version>1.3.5</version>
            </plugin>
    .....
</plugins>
</build>

 

在Maven Projects里面可以看到插件已经被集成, 

 

 

spring boot 使用mybatis-generator

 

 

在resources目录下会自动生成mybatis-generator.xml文件。

spring boot 使用mybatis-generator

 

只需要配置mybatis-generator.xml文件,然后就会生成所需文件

 

相关文章:

  • 2021-06-25
  • 2021-07-21
  • 2021-04-20
  • 2021-07-18
  • 2021-06-12
  • 2021-10-16
  • 2021-04-25
猜你喜欢
  • 2019-07-04
  • 2021-06-14
  • 2021-10-03
  • 2021-05-13
  • 2021-07-10
  • 2020-04-01
  • 2022-12-23
相关资源
相似解决方案