springboot应用部署到weblogic 基本步骤
1、在原pom.xml的基础上增添leagcy依赖,并修改打包方式为war
<artifactId>liqi-admin</artifactId>
<packaging>war</packaging>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-legacy</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
2、去掉spring boot依赖自带的tomcat,使用外置tomcat,若有servlet-api的使用,则一起加入依赖
<!-- SpringBoot Web容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<!-- 加exclusions去除打包时的内置tomcat-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat-embed-el</groupId>
<artifactId>org.apache.tomcat.embed</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--增加servlet依赖根据需要选择2.5或者3.0的-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<!-- <scope>test</scope>-->
</dependency>
<dependency>
<groupId