1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
      springboot內(nèi)嵌和外部tomcat啟動(dòng)是怎樣的

      本篇文章給大家分享的是有關(guān)springboot內(nèi)嵌和外部tomcat啟動(dòng)是怎樣的,小編覺得挺實(shí)用的,因此分享給大家學(xué)習(xí),希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。

      創(chuàng)新互聯(lián)公司是專業(yè)的昌圖網(wǎng)站建設(shè)公司,昌圖接單;提供做網(wǎng)站、成都網(wǎng)站制作,網(wǎng)頁(yè)設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行昌圖網(wǎng)站開發(fā)網(wǎng)頁(yè)制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

      一.  embedded tomcat

      1.

      spring-boot-starter-web 內(nèi)置了tomcat

          org.springframework.boot    spring-boot-starter-web
        org.springframework.boot  spring-boot-starter-tomcat  2.0.3.RELEASE  compile

      springboot 項(xiàng)目使用內(nèi)嵌tomcat 啟動(dòng)

      1).

      @SpringBootApplication

      2)

      SpringApplication.run(TelemarketingUsersynApplication.class, args);

      二. 使用外部tomcat 啟動(dòng)

      1.繼承 SpringBootServletInitializer

      2.重寫 SpringApplicationBuilder 方法

      @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})public class xxxxxx extends SpringBootServletInitializer{    @Override    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {        return builder.sources(xxxxxx .class);    }    public static void main(String[] args) {        SpringApplication.run(TelemarketingUsersynApplication.class, args);    }}

      3. 添加外部tomcat 依賴

          com.jd.security    jd-security-tomcat    1.13.WEBAPP    org.apache.tomcat    tomcat-jasper    8.0.30    provided    org.apache.tomcat    tomcat-catalina    8.0.30    provided

      以上就是springboot內(nèi)嵌和外部tomcat啟動(dòng)是怎樣的,小編相信有部分知識(shí)點(diǎn)可能是我們?nèi)粘9ぷ鲿?huì)見到或用到的。希望你能通過這篇文章學(xué)到更多知識(shí)。更多詳情敬請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。


      當(dāng)前名稱:springboot內(nèi)嵌和外部tomcat啟動(dòng)是怎樣的
      文章網(wǎng)址:http://ef60e0e.cn/article/gedjsp.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        洪江市| 潞城市| 海盐县| 汉阴县| 左权县| 京山县| 雅安市| 托里县| 滕州市| 旬阳县| 大理市| 南汇区| 阿克陶县| 永州市| 赤水市| 尼玛县| 方山县| 吉木萨尔县| 南雄市| 富蕴县| 仙游县| 上思县| 德惠市| 金昌市| 贵德县| 东港市| 磴口县| 沧州市| 巴彦县| 兴城市| 莱西市| 德保县| 淮南市| 满城县| 永和县| 尉氏县| 蒲江县| 酒泉市| 庆阳市| 耿马| 泸定县|