跳到主要内容

导出接口配置数据

引入依赖

<dependency>
<groupId>com.manatee.manatee-lowcode</groupId>
<artifactId>lowcode-generation</artifactId>
<version>${lowcode.version}</version>
</dependency>

导出文件

// 暂时通过 api 导出,后续提供可视化操作
http:127.0.0.1:xxxx/biz/modularity/project0/moduleJsonGenerationForWangfa?projectId=xxxx

添加配置文件

manatee:
config-data-source-type: file

检查 pom ,确认 resource 下的 json 文件会被打进 jar 包

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.json</include>
</includes>
</resource>
</resources>
</build>

结束。