没有合适的资源?快使用搜索试试~ 我知道了~
首页金蝶容器重新部署war包过程详细阐述
金蝶容器重新部署war包过程详细阐述
需积分: 50 2.7k 浏览量
更新于2023-05-27
评论
收藏 1.2MB PDF 举报
附件是出差时参与项目时,使用了国产化平台金蝶容器Apusic时,把重新制作war包放入容器的过程详细阐明。
资源详情
资源评论
资源推荐

金蝶容器中重新部署 war 包
war 包部署文档说明
属性
信息
文档名称
金蝶容器中重新部署 war 包
提供方
中电 52 所
版本号
V1.2.0
文档修改日志
1 简介
由于当前的项目 platform 需要部署在 192.168.1.92 上,因此在添加了
新的功能之后,需要重新为项目制作 jar 包和重新把项目部署在金蝶
容器中,在此简要的把部署的过程总结如下。
注意:platform 项目默认部署的在 192.168.1.92 上,并且端口为 8080,由于项目基于
SpringBoot,因此在默认情况下访问接口时是需要加入项目名称 platform 的,但为了
修改时间
修改人
修改描述
版本号
2019-04-08
宋全恒
初始化文档添加 war 包
部署的完整过程
V1.0.0
2019-04-10
宋全恒
修改启动项目的方式,
之前使用 war 包直接启
动,现在则通过在外部
解压缩,拷贝文件夹到
applications 目录进行
V1.1.0
2019-04-10
宋全恒
添加数据 重 定 向 的 相
关内容和任务管理
V1.2.0

之前接口的一致性,把 platform 制作成 ROOT 项目,默认访问的接口不需要添加
访问接口 url 类似如下:
http://192.168.1.92:8080/platform/api/resource/acsDevice/allAcsDevices
2 制作 war 包
2.1 pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.cetc52</groupId>
<artifactId>platform</artifactId>
<version>V1.0</version>
<name>platform</name>
<packaging>war</packaging>
<description>Support project for 28</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
…
</dependencies>
<build>
<finalName>platform</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<skip>true</skip>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>${project.basedir}/src/main/resources/lib</extdirs>
<!--extdirs>lib</extdirs>-->
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<webResources>
<resource>
<directory>src/main/resources/lib/</directory>
<targetPath>WEB-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
2.2 检测 application.properties
当前 application.properties 配置文件如下:
#server.port=9555
visitor.eventUploadUrl=http://192.168.1.92:10000/zhyqts/services/rest/monitor/visitorEvent

isc.eventUploadUrl=http://192.168.1.92:10000/yqsjcj/services/rest/rest/get
isc.testUrl=http://192.168.1.92:10000/zhyqts/services/rest/monitor/action
isc.gatewayUrl=http://192.168.1.51:8080/JRYX/api/doorCaution
logging.file=mylog.log
tomcat.ip=192.168.1.92
tomcat.port=8080
tomcat.projectName=
#config for lieying service
lieying.ip=192.168.1.117
lieying.address=https://${lieying.ip}:443
lieying.uploadAddress=http://192.168.1.92:10000
lieying.loginName=admin
lieying.passwd=hik12345
#config for lianpu service
lianpu.ip=192.168.1.112
lianpu.address=https://${lianpu.ip}:443
lianpu.uploadAddress=http://192.168.1.92:10000
lianpu.loginName=admin
lianpu.passwd=hik12345+
#config for iSecureCenter
iSecureCenter.host=192.168.1.111
iSecureCenter.appkey=20644300
iSecureCenter.appsecret=uBvol0HInjIc8oOJoT3a
2.3 配置含义
配置的具体含义如下图所示:
参数名称
参数含义
备注
visitor.eventUploadUrl
访客事件上报 url
需要根据实际情况进
行填写
isc.eventUploadUrl
Isc 统一事件上报 url
isc.testUrl
Isc 测试 url
isc.gatewayUrl
Isc 平台向网关一型上报事件的 Url
logging.file
日志文件
暂不使用
tomcat.ip
War 包运行所在的 tomcat ip 地址
项目部署的容器所在的 ip 和
对应的端口,端口为 8080,默
认
tomcat.port
War 包运行所在的 tomcat ip 端口
tomcat.projectName
War 包项目名称
默认 platform,不要填写内容
lieying.ip
猎鹰服务器 ip 地址
剩余16页未读,继续阅读













安全验证
文档复制为VIP权益,开通VIP直接复制

评论0