<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ![](https://box.kancloud.cn/36214b3306eb1d79c66396abc8756756_1198x528.png) ![](https://box.kancloud.cn/63a3317878495265eb82c0236196d88f_1228x1084.png) 我們先不跳過 ![](https://box.kancloud.cn/ce21bc063ca8f4b40260f2526492ee5a_1228x1068.png) 一般是跳過骨架的,不跳過骨架一般目錄是不全的 ![](https://box.kancloud.cn/16ff7352ba96542653f66603a09e8490_870x406.png) war是web打包 jar是java打包 pom是父項目打包 **處理紅色叉號** ![](https://box.kancloud.cn/40f15c348d79974c3d7804223af3fa33_884x290.png) 手動在webapp文件夾下創建一個WEB-INF文件夾,在里面放一個web.xml文件 ~~~ <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> ~~~ 這樣子紅色叉號就解決了 **處理編譯版本** 在pom.xml中添加如下代碼 ~~~ <build> <!-- 配置了很多插件 --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> ~~~ 然后又出現了個小叉號,我們更新下maven ![](https://box.kancloud.cn/1885013597d4533a5d5cb1e8bd243aaa_1170x1548.png) 然后我們創建servlet ![](https://box.kancloud.cn/63631a72171531d3b92a694daf9d578a_1632x810.png) 發現這邊在報錯,報錯的原因是缺少包還有一個原因是web.xml那 他會對web.xml修改,并且對xml頭部還有修改 把頭部重復的部分給去掉 ![](https://box.kancloud.cn/1633f2aabcd0cd758ba2c554c6cb6447_1576x460.png) 然后我們解決下servlet缺少jar的問題 我們在pom.xml中添加以下代碼 ~~~ <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.9</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> </dependencies> ~~~ 然后保存,jar包依賴就解決了 然后開始運行 ![](https://box.kancloud.cn/4e904d5a1de65caf2e71d0024588def6_1248x1272.png) 在里面寫 ![](https://box.kancloud.cn/0e099a4ae0235b600020e6dca7f809bb_562x468.png) 然后訪問`http://localhost:8080/hello/HelloServlet`
                  <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>

                              哎呀哎呀视频在线观看