Spring boot 部署到WebSphere 遇到的坑

公司统一用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包。

    

猜你喜欢

转载自blog.csdn.net/Damon__Wang/article/details/80885838