某院bizworks 部署手册
1.在内网nexus上导入对应依赖
2.在ruoyi-admin pom中设置 用来设置jar包生成路径
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<!--打成jar包后复制到的路径 -->
<outputDirectory>
../target/classes
</outputDirectory>
<resources>
<resource>
<!--项目中的路径 -->
<directory>src/main/resources/</directory>
</resource>
</resources>
</configuration>
</execution>
<!--可配置多个提取复制路径只需要 “<id>”名字不一样即可 -->
<execution>
<id>copy-bulid</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>
../target
</outputDirectory>
<resources>
<resource>
<directory>target</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
3.新建app-meta, 设置dockerfile(参考原有项目设置)
FROM XXXX:8080/bizworks/bizworks-java:0.0.9
WORKDIR /app/bin
ARG JAR_PACKAGE
ENV JAR_PACKAGE=${JAR_PACKAGE}
COPY ${JAR_PACKAGE} /app/bin
ENTRYPOINT ["/bin/bash", "-c", "exec java ${JAVA_OPTS} -jar ${JAR_PACKAGE}"]
4.设置controller注解
其中包含applicationService
和@Method @ReturnValue
5.在项目resource下设置bizworks文件夹,新建配置文件 modules.yaml
其中配置对应的业务域和扫描路径 需要检查配置业务域名称 否则部署上去后访问接口404
6.在idea中下载bizworks tools插件 点击右侧bizworks按钮 扫描对应的控制器
进行对应的模型上报
7.同步代码到平台中,进行部署 注意:需先反扫上报后再部署
8.查看中心应用中的接口定义,如果类型为接口 则扫描上报成功
可以通过调用postman接口进行测试是否能够使用