feat: Schema
This commit is contained in:
parent
3edf1cfb27
commit
2a3bfb3a5b
3 changed files with 51 additions and 1 deletions
19
pom.xml
19
pom.xml
|
@ -30,6 +30,7 @@
|
|||
<!-- dependencies -->
|
||||
|
||||
<!-- plugins -->
|
||||
<jsonschema2pojo.version>1.2.1</jsonschema2pojo.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -66,6 +67,24 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jsonschema2pojo</groupId>
|
||||
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
|
||||
<version>${jsonschema2pojo.version}</version>
|
||||
<configuration>
|
||||
<sourceDirectory>${basedir}/schema</sourceDirectory>
|
||||
<targetPackage>eu.ztsh.lfr.model</targetPackage>
|
||||
<useBigDecimals>true</useBigDecimals>
|
||||
<includeAdditionalProperties>false</includeAdditionalProperties>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue