欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

IntelliJ IDEA使用maven實(shí)現(xiàn)tomcat的熱部署

 更新時(shí)間:2018年07月02日 10:58:02   作者:豬腳踏浪  
這篇文章主要介紹了IntelliJ IDEA使用maven實(shí)現(xiàn)tomcat的熱部署,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

在tomcat的conf目錄 tomcat-users.xml配置以下內(nèi)容(<tomcat-users>標(biāo)簽內(nèi)</tomcat-users>),用于部署:

<role rolename="manager"/>    
<role rolename="manager-gui"/>    
<role rolename="admin"/>    
<role rolename="admin-gui"/>   
<role rolename="manager-script"/>   
<user username="tomcat" password="tomcat" roles="admin-gui,admin,manager-gui,manager,manager-script"/ 

啟動tomcat,訪問 http:ip:8080/manager 驗(yàn)證tomcat用戶是否配置成功


在maven工程的pom.xml中配置插件

      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <configuration>
          <port>8080</port>
          <path>/mvc</path>
          <url>http://192.168.43.128:8080/manager/text</url>
          <username>tomcat</username>
          <password>tomcat</password>
        </configuration>
      </plugin>

運(yùn)行配置

點(diǎn)擊Run-->Edit Configurations

點(diǎn)擊+號,選擇Maven ,

輸入信息

Name 給運(yùn)行配置取的名稱

Working directory(工程目錄)

Command line 命令 tomcat7:deploy 或 tomcat7:redeploy


點(diǎn)擊確定,保存。

在Run菜單下找到剛做好的配置,運(yùn)行

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.jstudioframework:jstudio-mvc:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing. @ line 91, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                     
[INFO] ------------------------------------------------------------------------
[INFO] Building jstudio-mvc 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:redeploy (default-cli) @ jstudio-mvc >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jstudio-mvc ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jstudio-mvc ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jstudio-mvc ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\JstudioProject1\JstudioMvc\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jstudio-mvc ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.14:test (default-test) @ jstudio-mvc ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ jstudio-mvc ---
[INFO] Packaging webapp
[INFO] Assembling webapp [jstudio-mvc] in [E:\JstudioProject1\JstudioMvc\target\jstudio-mvc-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [E:\JstudioProject1\JstudioMvc\src\main\webapp]
[INFO] Webapp assembled in [177 msecs]
[INFO] Building war: E:\JstudioProject1\JstudioMvc\target\jstudio-mvc-1.0-SNAPSHOT.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored 
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.2:redeploy (default-cli) @ jstudio-mvc <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.2:redeploy (default-cli) @ jstudio-mvc ---
[INFO] Deploying war to http://192.168.43.128:8080/mvc 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Uploading: http://192.168.43.128:8080/manager/text/deploy?path=%2Fmvc&update=true
Uploaded: http://192.168.43.128:8080/manager/text/deploy?path=%2Fmvc&update=true (7445 KB at 7083.3 KB/sec)
[INFO] tomcatManager status code:200, ReasonPhrase:OK
[INFO] OK - Deployed application at context path /mvc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.720s
[INFO] Finished at: Sun Jul 23 19:35:01 CST 2017
[INFO] Final Memory: 15M/322M
[INFO] ------------------------------------------------------------------------
Process finished with exit code 0

發(fā)布成功。

在tomcat的manager可以看到新發(fā)布的應(yīng)用。


方法2:


這幾個標(biāo)紅的菜單都能遠(yuǎn)程發(fā)布

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • java對接支付寶支付接口簡單步驟記錄

    java對接支付寶支付接口簡單步驟記錄

    最近項(xiàng)目APP需要接入微信、支付寶支付功能,在分配開發(fā)任務(wù)時(shí),聽說微信支付接口比支付寶支付接口要難實(shí)現(xiàn),這篇文章主要給大家介紹了關(guān)于java對接支付寶支付接口的簡單步驟,需要的朋友可以參考下
    2024-05-05
  • Java?Web中ServletContext對象詳解與應(yīng)用

    Java?Web中ServletContext對象詳解與應(yīng)用

    ServletContext是一個容器,可以用來存放變量,供一個web項(xiàng)目中多個Servlet共享,下面這篇文章主要給大家介紹了關(guān)于Java?Web中ServletContext對象詳解與應(yīng)用的相關(guān)資料,需要的朋友可以參考下
    2023-04-04
  • Spring使用注解方式實(shí)現(xiàn)創(chuàng)建對象

    Spring使用注解方式實(shí)現(xiàn)創(chuàng)建對象

    這篇文章主要介紹了Spring使用注解方式實(shí)現(xiàn)創(chuàng)建對象,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2023-02-02
  • 深入JAVA對象深度克隆的詳解

    深入JAVA對象深度克隆的詳解

    本篇文章是對JAVA對象深度克隆進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下
    2013-05-05
  • java實(shí)現(xiàn)簡單猜數(shù)字

    java實(shí)現(xiàn)簡單猜數(shù)字

    這篇文章主要為大家詳細(xì)介紹了java實(shí)現(xiàn)簡單猜數(shù)字,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2020-05-05
  • Springboot項(xiàng)目中運(yùn)用vue+ElementUI+echarts前后端交互實(shí)現(xiàn)動態(tài)圓環(huán)圖(推薦)

    Springboot項(xiàng)目中運(yùn)用vue+ElementUI+echarts前后端交互實(shí)現(xiàn)動態(tài)圓環(huán)圖(推薦)

    今天給大家?guī)硪黄坛剃P(guān)于Springboot項(xiàng)目中運(yùn)用vue+ElementUI+echarts前后端交互實(shí)現(xiàn)動態(tài)圓環(huán)圖的技能,包括環(huán)境配置及圓環(huán)圖前端后端實(shí)現(xiàn)代碼,感興趣的朋友一起看看吧
    2021-06-06
  • Java輸出鏈表倒數(shù)第k個節(jié)點(diǎn)

    Java輸出鏈表倒數(shù)第k個節(jié)點(diǎn)

    這篇文章主要介紹了Java輸出鏈表倒數(shù)第k個節(jié)點(diǎn)的相關(guān)內(nèi)容,涉及三種設(shè)計(jì)思路及代碼示例,具有一定參考價(jià)值,需要的朋友可以了解下。
    2017-10-10
  • springboot 中 druid+jpa+MYSQL數(shù)據(jù)庫配置過程

    springboot 中 druid+jpa+MYSQL數(shù)據(jù)庫配置過程

    這篇文章主要介紹了springboot 中 druid+jpa+MYSQL數(shù)據(jù)庫配置,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2021-08-08
  • java反射原理制作對象打印工具

    java反射原理制作對象打印工具

    本文主要給大家介紹了java反射原理制作對象打印工具的方法和代碼,以及一個熱心網(wǎng)友給出的更加簡潔方便的代碼,小伙伴們需要的話可以參考下。
    2015-12-12
  • 自定義注解和springAOP捕獲Service層異常,并處理自定義異常操作

    自定義注解和springAOP捕獲Service層異常,并處理自定義異常操作

    這篇文章主要介紹了自定義注解和springAOP捕獲Service層異常,并處理自定義異常操作,具有很好的參考價(jià)值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教
    2021-06-06

最新評論