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
3、批改配置文件application-prod.yml
- a.批改数据库连贯
- b.批改缓存redis配置
- c.批改上传附件配置
- d.切换生产模式打包
首先执行下jeecg-boot-parent的install 操作
而后 maven package 打war包
BCS-AppServer根底设置
- 1、 启动
BCS-AppServer
,通过地址http://ip:1900/console
拜访治理控制台 - 2、 关上
利用治理-罕用利用
页面,点击部署
按钮。 - 3、 点击
上传文件
。 - 4、上传本地打包好的
war包
。 - 5、抉择上传胜利的文件,点击下一步。
- 6、抉择部署为利用
- 7、 批改利用前缀,点击实现,实现部署。
拜访零碎
通过http://[服务器ip]:[利用端口]/
拜访零碎
至此,JeecgBoot曾经胜利部署到BCS-AppServer。