<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] # 簡介 Maven Tomcat插件現在主要有兩個版本,tomcat-maven-plugin和tomcat7-maven-plugin,使用方式基本相同。 tomcat-maven-plugin 插件官網: ~~~ http://mojo.codehaus.org/tomcat-maven-plugin/plugin-info.html ~~~ tomcat7-maven-plugin 插件官網: ~~~ http://tomcat.apache.org/maven-plugin.html。 ~~~ # tomcat-maven-plugin ~~~ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.1</version> <configuration> <path>/wp</path> <port>8080</port> <uriEncoding>UTF-8</uriEncoding> <url>http://localhost:8080/manager/html</url> <server>tomcat6</server> </configuration> </plugin> ~~~ path 是訪問應用的路徑 port 是tomcat 的端口號 uriEncoding URL按UTF-8進行編碼,這樣就解決了中文參數亂碼。 Server 指定tomcat名稱。 配置了這個插件之后,項目就是使用你配置的這個插件運行了,項目一啟動,就會把你配置的這個 Tomcat 的信息下載下來。也就是說,即使你本地不安裝 Tomcat,web 項目也可以運行 幾個常用的Goal: ~~~ tomcat:deploy --部署一個web war包 tomcat:reload --重新加載web war包 tomcat:start --啟動tomcat tomcat:stop --停止tomcat tomcat:undeploy--停止一個war包 tomcat:run 啟動嵌入式tomcat ,并運行當前項目 ~~~ # tomcat7-maven-plugin ~~~xml <build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <!-- 設置編碼格式 --> <uriEncoding>UTF-8</uriEncoding> <!-- 控制 tomcat 端口號 --> <port>80</port> <!-- 項目發布到 tomcat 后的名稱 --> <!-- 如果寫 /,相當于項目發布后的名稱為 ROOT --> <!-- 如果寫 /abc,相當于項目發布后的名稱為 abc --> <path>/</path> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> ~~~ 在這里要注意一下,該插件命名方式有些不同,比如啟動tomcat ,對應的目標命令是: `tomcat7:run` ,同樣,其它命令也是這樣,需要更改為:tomcat7:`<插件執行點>` ~~~ tomcat7:deploy --部署一個web war包 tomcat7:reload --重新加載web war包 tomcat7:start --啟動tomcat tomcat7:stop --停止tomcat tomcat7:undeploy--停止一個war包 tomcat7:run 啟動嵌入式tomcat ,并運行當前項目 ~~~ 如果需要debug,就使用debug as 方式啟動項目!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看