新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

springBoot打包部署到远程服务器的tomcat中-创新互联

前言

成都创新互联服务项目包括寿光网站建设、寿光网站制作、寿光网页制作以及寿光网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,寿光网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到寿光省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

Spring Boot项目一般都是内嵌tomcat或者jetty服务器运行,很少用war包部署到外部的服务容器,即使放到linux中,一般也是直接启动Application类,但是有些时候我们需要部署到外部的服务器,这对于Spring Boot来说却有点麻烦

下面话不多说了,来一起看看详细的介绍吧。

环境声明:


jdk:1.8


服务器:阿里云,ubuntu 16.04


springBoot:1.5.9.RELEASE

目的


将springBoot 打包到远程服务器的tomcat中。

pom.xml

<?xml version="1.0" encoding="UTF-8"?>

 4.0.0
 waibao
 project
 1.0-SNAPSHOT
 war
 
  org.springframework.boot
  spring-boot-starter-parent
  1.5.9.RELEASE
 
 
  1.8
 
 
     org.springframework.boot
   spring-boot-starter-web
    
  
     org.springframework.boot
   spring-boot-starter-tomcat
   provided
  
     org.mybatis.spring.boot
   mybatis-spring-boot-starter
   1.3.1
  
  
     org.springframework.boot
   spring-boot-starter-thymeleaf
  
  
     net.sourceforge.nekohtml
   nekohtml
   1.9.22
  
     org.springframework.boot
   spring-boot-starter-jdbc
  
     org.mybatis.spring.boot
   mybatis-spring-boot-starter
   1.3.1
  
     org.springframework.boot
   spring-boot-starter-test
   test
  
  
   mysql
   mysql-connector-java
   6.0.6
  
  
  
   com.alibaba
   druid
   1.1.5
  
  
  
   com.alibaba
   fastjson
   1.2.40
  
  
     org.springframework.boot
   spring-boot-devtools
   1.5.9.RELEASE
   true
   true
  
 
 
  /testweb
  
       org.apache.maven.plugins
    maven-war-plugin
    2.4
    
     false
    
   
  
 

分享标题:springBoot打包部署到远程服务器的tomcat中-创新互联
链接URL:http://www.wjwzjz.com/article/dcehjj.html
在线咨询
服务热线
服务热线:028-86922220
TOP