Spring Cloud切换内嵌Tomcat为宝兰德Application Server_springboot 使用宝兰德中间件替换.docx
-
资源ID:96687179
资源大小:316.04KB
全文页数:2页
- 资源格式: DOCX
下载积分:5金币
快捷下载
会员登录下载
微信登录下载
三方登录下载:
微信扫一扫登录
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
Spring Cloud切换内嵌Tomcat为宝兰德Application Server_springboot 使用宝兰德中间件替换.docx
Spring Cloud切换内嵌Tomcat为宝兰德Application Server 目录 替换Tomcat中间件 Tomcat是什么 Spring Cloud剔除tomcat 引入宝兰德Application Server 打包运行 授权 gateway为什么不依赖Tomcat 替换Tomcat中间件 Tomcat是什么 Apache Tomcat (called “Tomcat” for short) is a free and open-source implementation of the Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies.2 It provides a “pure Java” HTTP web server environment in which Java code can also run. Thus it is a Java web application server, although not a full JEE application server. Tomcat is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation, released under the Apache License 2.0 license. Spring Cloud剔除tomcat 1 2 3 4 5 6 7 8 9 10 11 12 13 <!-集成springmvc框架 -> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <!- 适配宝兰德,移除tomcat-> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> <optional>true</optional> </dependency> 引入宝兰德Application Server 宝蓝德中间件的获取目前在官网是不能直接下载的,下载会提示你联系管理员;我是通过官网联系到客服,说明来意后,当地的销售人员联系我,并发送了相关中间件程 序; 百度网盘提取码:564x 将需要的相关jar包install到本地的maven仓库,目前我只是用到了bes-lite-spring-boot-2.x-starter-9.5.5.003.jar和bes-websocket-9.5.5.003.jar install命令 1 mvn install:install-file -Dfile=./bes-lite-spring-boot-2.x-starter-9.5.5.003.jar -DgroupId=com.bes.appserv-web -DartifactId=bes-lite-spring-boot-2. 1/2 1 mvn install:install-file -Dfile=./bes-websocket-9.5.5.003.jar -DgroupId=com.bes.appserv-web -DartifactId=bes-websocket -Dversion=9.5.5.003 -Dpackag 在pom文件中引入打包的库文件 1 2 3 4 5 6 7 8 9 10 11 <!- 添加宝兰德依赖-> <dependency> <groupId>com.bes.appserv-web</groupId> <artifactId>bes-lite-spring-boot-2.x-starter</artifactId> <version>9.5.5.003</version> </dependency> <dependency> <groupId>com.bes.appserv-web</groupId> <artifactId>bes-websocket</artifactId> <version>9.5.5.003</version> </dependency> 引入成功后,Tomcat相关的import需要做适当调整。 打包运行 目前项目就网关和系统模块两个模块,打包后正常启动 网关微服务 spring gateway目前是不依赖tomcat的,所以无需调整; 系统微服务 日志输出这部分内容就说明宝兰德中间件正确启动了; 授权 gateway为什么不依赖Tomcat 2/2