Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 742 Bytes

README.md

File metadata and controls

47 lines (39 loc) · 742 Bytes

Generator Example

使用

1. 添加maven插件

<build>
    <plugins>
        <plugin>
            <groupId>io.github.wangyuheng</groupId>
            <artifactId>arc-maven-plugin</artifactId>
            <version>1.6.0</version>
        </plugin>
    </plugins>
</build>

2. 按需修改配置文件

classpath: arc-generator.json

{
  "basePackage": "io.github.wangyuheng.arcgeneratorexample",
  "dropAll": false,
  "genStrategies": [
    {
      "codeGenOperation": "OVERRIDE",
      "codeGenType": "TYPE"
    },
    {
      "codeGenOperation": "OVERRIDE",
      "codeGenType": "API"
    }
  ],
  "ignoreJavaFileNames": [
    "User"
  ]
}

3. 执行maven指令

mvn arc:generate