JeecgBoot集成宝兰德AppServer部署方案

2024-02-20  本文已影响0人  JEECG

JeecgBoot Version: 3.5+ 版本 后台采用war包的打包方案。

后台JeecgBoot项目打war包

war包前需要对项目进行微小改动:

1、jeecg-system-start/pom.xml文件中

1.1、项目格式设置为war

<packaging>war</packaging>

1.2、pom.xml文件删除插件spring-boot-maven-plugin

下面配置删除

<build>
   <plugins>
    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
   </plugins>
</build>

1.3、排除tomcat-embed-websocket依赖包

<!-- SYSTEM 系统管理模块 -->
<dependency>
    <groupId>org.jeecgframework.boot</groupId>
    <artifactId>jeecg-system-biz</artifactId>
    <version>${jeecgboot.version}</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-websocket</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<!-- DEMO 示例模块 -->
<dependency>
    <groupId>org.jeecgframework.boot</groupId>
    <artifactId>jeecg-module-demo</artifactId>
    <version>${jeecgboot.version}</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-websocket</artifactId>
        </exclusion>
    </exclusions>
</dependency>

2、注释掉WebSocketConfig的 ServerEndpointExporter注册方法

路径:jeecg-boot-base/jeecg-boot-base-core/org.jeecg.config.WebSocketConfig

image.png

3、修改配置文件application-prod.yml

首先执行下jeecg-boot-parent的install 操作


image.png

然后 maven package 打war包


image.png

BCS-AppServer基础设置

访问系统

通过http://[服务器ip]:[应用端口]/访问系统

image.png

至此,JeecgBoot已经成功部署到BCS-AppServer

上一篇 下一篇

猜你喜欢

热点阅读