Spring boot 部署到WebSphere 遇到的坑

编程知识 更新时间:2023-04-05 04:05:18

公司统一用WebSphere,后期UAT、PROD环境都需要使用WebSphere. 所以尝试从Tomcat切换到WebSphere.

遇到的坑1: 

    Spring boot 部署到websphere8.5会报错,因为Spring boot 内置的logback2.10 是用Java9进行编译的。Tomcat 是能够认Java9,而 Ws 8.5 不认Java9. 

    所以 要将Spring boot 降版本。目前使用版本是Spring boot 2.0。 降低到Spring boot 1.5可用。

遇到的坑2: 

    Spring boot降版本的时候,由于我的maven库用的阿里镜像,但是阿里镜像不全...

    使用Spring boot 1.5时候,pom.xml文件会缺少jar。

    后来切换到原生国外maven地址,重新拉了文件,Spring boot 1.5 可用。

遇到的坑3: 

    在编译启动时候,以前用的Spring boot 2.0 中,启动jar包是第二个。

    切换到Spring boot 1.5以后,使用第一个jar包。

    

更多推荐

Spring boot 部署到WebSphere 遇到的坑

本文发布于:2023-04-05 04:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/b28c793b9196ff71b400f7391669053c.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Spring   boot   WebSphere

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 44673文章数
  • 14阅读数
  • 0评论数