{"id":9901,"date":"2025-04-18T17:43:12","date_gmt":"2025-04-18T09:43:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/9901.html"},"modified":"2025-04-18T17:43:12","modified_gmt":"2025-04-18T09:43:12","slug":"2024072100-idea%e9%85%8d%e7%bd%aetomcat","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/9901.html","title":{"rendered":"2024072100-idea\u914d\u7f6etomcat"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"1%E3%80%81%E5%AE%89%E8%A3%85tomcat-toc\" style=\"margin-left:80px\">1\u3001\u5b89\u88c5tomcat<\/p>\n<p id=\"2%E3%80%81%E5%88%9B%E5%BB%BAmaven%E5%B7%A5%E7%A8%8B%EF%BC%88%E6%A8%A1%E5%9D%97%EF%BC%89-toc\" style=\"margin-left:80px\">2\u3001\u521b\u5efamaven\u5de5\u7a0b&#xff08;\u6a21\u5757&#xff09;<\/p>\n<p id=\"3%E3%80%81%E5%88%9B%E5%BB%BAweb%E6%96%87%E4%BB%B6%E5%A4%B9-toc\" style=\"margin-left:80px\">3\u3001\u521b\u5efaweb\u6587\u4ef6\u5939<\/p>\n<p id=\"4%E3%80%81%E6%89%93%E5%BC%80module%EF%BC%8C%E9%85%8D%E7%BD%AEweb%E8%B7%AF%E5%BE%84-toc\" style=\"margin-left:80px\">4\u3001\u6253\u5f00module&#xff0c;\u914d\u7f6eweb\u8def\u5f84<\/p>\n<p id=\"5%E3%80%81%E9%85%8D%E7%BD%AEapplication%20server-toc\" style=\"margin-left:80px\">5\u3001\u914d\u7f6eapplication server<\/p>\n<p id=\"6%E3%80%81%E7%82%B9%E5%87%BB%E9%85%8D%E7%BD%AEtomcat-toc\" style=\"margin-left:80px\">6\u3001\u70b9\u51fb\u914d\u7f6etomcat<\/p>\n<p id=\"7%E3%80%81%E9%80%89%E6%8B%A9tomcat-toc\" style=\"margin-left:80px\">7\u3001\u9009\u62e9tomcat<\/p>\n<p id=\"8%E3%80%81%E9%85%8D%E7%BD%AEartifact-toc\" style=\"margin-left:80px\">8\u3001\u914d\u7f6eartifact<\/p>\n<p id=\"9%E3%80%81%E9%80%89%E6%8B%A9artifact-toc\" style=\"margin-left:80px\">9\u3001\u9009\u62e9artifact<\/p>\n<p id=\"10%E3%80%81%E4%B8%8A%E4%B8%8B%E6%96%87%E8%B7%AF%E5%BE%84-toc\" style=\"margin-left:80px\">10\u3001\u914d\u7f6e\u8bbf\u95ee\u8def\u5f84<\/p>\n<p id=\"11%E3%80%81%E4%BF%AE%E6%94%B9%E7%82%B9%E5%87%BB%E8%BF%90%E8%A1%8C%E6%97%B6%E7%9A%84%E6%9B%B4%E6%96%B0%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:80px\">11\u3001\u4fee\u6539\u70b9\u51fb\u8fd0\u884c\u65f6\u7684\u66f4\u65b0\u65b9\u5f0f<\/p>\n<p id=\"12%E3%80%81%E9%80%89%E6%8B%A9tomcat-toc\" style=\"margin-left:80px\">12\u3001\u9009\u62e9tomcat<\/p>\n<p id=\"13%E3%80%81%E6%B3%A8%E6%84%8Fweb.xml%E6%8A%A5%E9%94%99-toc\" style=\"margin-left:80px\">13\u3001\u6ce8\u610fweb.xml\u62a5\u9519<\/p>\n<p id=\"14%E3%80%81%E7%BC%96%E5%86%99%E6%B5%8B%E8%AF%95%E7%9A%84controller-toc\" style=\"margin-left:80px\">14\u3001\u7f16\u5199\u6d4b\u8bd5\u7684controller<\/p>\n<p id=\"15%E3%80%81%E8%BF%90%E8%A1%8Ctomcat-toc\" style=\"margin-left:80px\">15\u3001\u8fd0\u884ctomcat<\/p>\n<p id=\"16%E3%80%81%E6%B5%8F%E8%A7%88%E5%99%A8%E8%AE%BF%E9%97%AE-toc\" style=\"margin-left:80px\">16\u3001\u6d4f\u89c8\u5668\u8bbf\u95ee<\/p>\n<p id=\"17%E3%80%81tomcat%E8%BF%90%E8%A1%8C%E5%A4%9A%E4%B8%AAwar%E5%8C%85-toc\" style=\"margin-left:80px\">17\u3001tomcat\u8fd0\u884c\u591a\u4e2awar\u5305<\/p>\n<hr id=\"hr-toc\" \/>\n<h4 id=\"1%E3%80%81%E5%AE%89%E8%A3%85tomcat\">1\u3001\u5b89\u88c5tomcat<\/h4>\n<p>windows\u5b89\u88c5tomcat<\/p>\n<\/p>\n<h4 id=\"2%E3%80%81%E5%88%9B%E5%BB%BAmaven%E5%B7%A5%E7%A8%8B%EF%BC%88%E6%A8%A1%E5%9D%97%EF%BC%89\">2\u3001\u521b\u5efamaven\u5de5\u7a0b&#xff08;\u6a21\u5757&#xff09;<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"153\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac36fbe.png\" width=\"649\" \/><\/p>\n<\/p>\n<h4 id=\"3%E3%80%81%E5%88%9B%E5%BB%BAweb%E6%96%87%E4%BB%B6%E5%A4%B9\">3\u3001\u521b\u5efaweb\u6587\u4ef6\u5939<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"226\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac44b98.png\" width=\"823\" \/><\/p>\n<p>\u4f1a\u81ea\u52a8\u51fa\u73b0\u4e00\u4e2a\u84dd\u70b9&#xff0c;\u5982\u679c\u6ca1\u6709\u51fa\u73b0&#xff0c;\u9700\u8981\u505a\u4e00\u4e9b\u914d\u7f6e&#xff0c;\u770b\u7b2c4\u6b65<\/p>\n<\/p>\n<h4 id=\"4%E3%80%81%E6%89%93%E5%BC%80module%EF%BC%8C%E9%85%8D%E7%BD%AEweb%E8%B7%AF%E5%BE%84\">4\u3001\u6253\u5f00module&#xff0c;\u914d\u7f6eweb\u8def\u5f84<\/h4>\n<p>\u3010File\u3011-&gt; \u3010Project Structutre\u3011<\/p>\n<p>\u5982\u679cmodule\u4e0b\u9762\u6ca1\u6709web\u6807\u5fd7&#xff0c;\u5219\u70b9\u51fb\u52a0\u53f7\u6dfb\u52a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"227\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac5a67e.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"326\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac7810b.png\" width=\"1102\" \/><\/p>\n<\/p>\n<p>\u6709\u4e86web\u6807\u5fd7&#xff0c;\u5219\u9009\u62e9\u8def\u5f84<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"679\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac9fff3.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u518d\u6dfb\u52a0web.xml\u8def\u5f84&#xff0c;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"258\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eace5f5f.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>web.xml\u7684\u8def\u5f84\u9700\u8981\u548cidea\u7684\u6587\u4ef6\u76ee\u5f55\u8def\u5f84\u4fdd\u6301\u4e00\u81f4&#xff0c;\u5e76\u9009\u62e9\u7248\u672c\u53f7&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>D:\\\\1002-project\\\\tech-1022-spring-mvc\\\\mvc-101-demo\\\\src\\\\main\\\\webapp\\\\WEB-INF\\\\web.xml<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"477\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094309-68021ead12200.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u8def\u5f84\u90fd\u6dfb\u52a0\u540e\u7684\u6548\u679c&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"679\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094309-68021ead45c1d.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"5%E3%80%81%E9%85%8D%E7%BD%AEapplication%20server\">5\u3001\u914d\u7f6eapplication server<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"503\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094309-68021ead8ad60.png\" width=\"1079\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"343\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094309-68021eadc14be.png\" width=\"1005\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"392\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094309-68021eaddc343.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"6%E3%80%81%E7%82%B9%E5%87%BB%E9%85%8D%E7%BD%AEtomcat\">6\u3001\u70b9\u51fb\u914d\u7f6etomcat<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"121\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eae13586.png\" width=\"720\" \/><\/p>\n<\/p>\n<h4 id=\"7%E3%80%81%E9%80%89%E6%8B%A9tomcat\">7\u3001\u9009\u62e9tomcat<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"451\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eae1f70e.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"8%E3%80%81%E9%85%8D%E7%BD%AEartifact\">8\u3001\u914d\u7f6eartifact<\/h4>\n<p>\u6ce8\u610fpom\u4e2d\u7684\u6253\u5305\u65b9\u5f0f\u9009\u62e9war&#xff0c;\u5426\u5219\u8fd9\u91cc\u65e0\u6cd5\u51fa\u73b0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"276\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eae53829.png\" width=\"1169\" \/><\/p>\n<\/p>\n<h4 id=\"9%E3%80%81%E9%80%89%E6%8B%A9artifact\">9\u3001\u9009\u62e9artifact<\/h4>\n<p>\u4e24\u79cd\u90fd\u53ef\u4ee5\u9009\u62e9&#xff0c;idea\u4e2d\u4e00\u822c\u9009\u62e9\u7b2c\u4e8c\u79cd<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"420\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eae7616c.png\" width=\"1098\" \/><\/p>\n<\/p>\n<h4 id=\"10%E3%80%81%E4%B8%8A%E4%B8%8B%E6%96%87%E8%B7%AF%E5%BE%84\">10\u3001\u914d\u7f6e\u8bbf\u95ee\u8def\u5f84<\/h4>\n<p>\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u559c\u597d\u4fee\u6539<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"197\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eaea543e.png\" width=\"994\" \/><\/p>\n<\/p>\n<h4 id=\"11%E3%80%81%E4%BF%AE%E6%94%B9%E7%82%B9%E5%87%BB%E8%BF%90%E8%A1%8C%E6%97%B6%E7%9A%84%E6%9B%B4%E6%96%B0%E6%96%B9%E5%BC%8F\">11\u3001\u4fee\u6539\u70b9\u51fb\u8fd0\u884c\u65f6\u7684\u66f4\u65b0\u65b9\u5f0f<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"458\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eaeb92a9.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"12%E3%80%81%E9%80%89%E6%8B%A9tomcat\">12\u3001\u9009\u62e9tomcat<\/h4>\n<p>\u5b89\u88c5tomcat\u540e&#xff0c;Application server\u8fd9\u91cc\u81ea\u52a8\u51fa\u73b0tomcat<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"230\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094310-68021eaeeb190.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"13%E3%80%81%E6%B3%A8%E6%84%8Fweb.xml%E6%8A%A5%E9%94%99\">13\u3001\u6ce8\u610fweb.xml\u62a5\u9519<\/h4>\n<p>&#039;org.springframework.web.servlet.DispatcherServlet&#039; is not assignable to &#039;javax.servlet.Servlet,jakarta.servlet.Servlet&#039;\u00a0<\/p>\n<p>\u4e0d\u540c\u7684tomcat\u7248\u672c\u5339\u914d\u4e0d\u540c\u7248\u672c\u7684servlet&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"147\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094311-68021eaf15445.png\" width=\"1200\" \/><\/p>\n<p>\u5982\u679c\u662ftomcat10&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7248\u672c<\/p>\n<p>&lt;dependency&gt;<br \/>\n            &lt;groupId&gt;org.springframework&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;spring-webmvc&lt;\/artifactId&gt;<br \/>\n            &lt;version&gt;6.1.4&lt;\/version&gt;<br \/>\n        &lt;\/dependency&gt;<br \/>\n        &lt;!&#8211;\u65e5\u5fd7\u6846\u67b6Logback\u4f9d\u8d56&#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;ch.qos.logback&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;logback-classic&lt;\/artifactId&gt;<br \/>\n            &lt;version&gt;1.5.3&lt;\/version&gt;<br \/>\n        &lt;\/dependency&gt;<br \/>\n        &lt;!&#8211;Servlet\u4f9d\u8d56&#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;jakarta.servlet&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;jakarta.servlet-api&lt;\/artifactId&gt;<br \/>\n            &lt;version&gt;6.0.0&lt;\/version&gt;<br \/>\n            &lt;scope&gt;provided&lt;\/scope&gt;<br \/>\n        &lt;\/dependency&gt;<br \/>\n        &lt;!&#8211;Spring6\u548cThymeleaf\u6574\u5408\u4f9d\u8d56&#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;org.thymeleaf&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;thymeleaf-spring6&lt;\/artifactId&gt;<br \/>\n            &lt;version&gt;3.1.2.RELEASE&lt;\/version&gt;<br \/>\n        &lt;\/dependency&gt; <\/p>\n<h4 id=\"14%E3%80%81%E7%BC%96%E5%86%99%E6%B5%8B%E8%AF%95%E7%9A%84controller\">14\u3001\u7f16\u5199\u6d4b\u8bd5\u7684controller<\/h4>\n<p>&#064;Controller<br \/>\npublic class FirstController {<br \/>\n    &#064;RequestMapping(value &#061; &#034;\/test&#034;)<br \/>\n    public String hello() {<br \/>\n        return &#034;first&#034;;<br \/>\n    }<br \/>\n} <\/p>\n<h4 id=\"15%E3%80%81%E8%BF%90%E8%A1%8Ctomcat\">15\u3001\u8fd0\u884ctomcat<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"54\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094311-68021eaf2c215.png\" width=\"470\" \/><\/p>\n<\/p>\n<h4 id=\"16%E3%80%81%E6%B5%8F%E8%A7%88%E5%99%A8%E8%AE%BF%E9%97%AE\">16\u3001\u6d4f\u89c8\u5668\u8bbf\u95ee<\/h4>\n<p>http:\/\/localhost:8080\/springMVC\/test<\/p>\n<\/p>\n<h4 id=\"17%E3%80%81tomcat%E8%BF%90%E8%A1%8C%E5%A4%9A%E4%B8%AAwar%E5%8C%85\">17\u3001tomcat\u8fd0\u884c\u591a\u4e2awar\u5305<\/h4>\n<p>\u5982\u679c\u6709\u591a\u4e2aweb\u6a21\u5757&#xff0c;\u4ea7\u751f\u591a\u4e2awar\u5305&#xff0c;\u53ef\u4ee5\u70b9\u51fb\u51cf\u53f7\u5220\u9664\u5176\u4e2d\u4e00\u4e2a&#xff0c;\u9700\u8981\u7684\u65f6\u5019\u518d\u91cd\u65b0\u6dfb\u52a0<\/p>\n<p>\u6216\u8005\u90fd\u901a\u8fc7tomcat\u8fd0\u884c&#xff0c;\u4f46\u662fApplication context\u8def\u5f84\u4e0d\u80fd\u91cd\u590d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"783\" src=\"2025-04-18iieo0r0sm02.png\" width=\"1046\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1w\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf41\u6b21\u3002\u5b89\u88c5tomcat\u540e\uff0cApplication server\u8fd9\u91cc\u81ea\u52a8\u51fa\u73b0tomcat\u3002\u4f1a\u81ea\u52a8\u51fa\u73b0\u4e00\u4e2a\u84dd\u70b9\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u9700\u8981\u505a\u4e00\u4e9b\u914d\u7f6e\uff0c\u770b\u7b2c4\u6b65\u3002\u5982\u679cmodule\u4e0b\u9762\u6ca1\u6709web\u6807\u5fd7\uff0c\u5219\u70b9\u51fb\u52a0\u53f7\u6dfb\u52a0\u3002\u6ce8\u610fpom\u4e2d\u7684\u6253\u5305\u65b9\u5f0f\u9009\u62e9war\uff0c\u5426\u5219\u8fd9\u91cc\u65e0\u6cd5\u51fa\u73b0\u3002\u4e24\u79cd\u90fd\u53ef\u4ee5\u9009\u62e9\uff0cidea\u4e2d\u4e00\u822c\u9009\u62e9\u7b2c\u4e8c\u79cd\u3002\u5982\u679c\u662ftomcat10\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7248\u672c\u3002\u6709\u4e86web\u6807\u5fd7\uff0c\u5219\u9009\u62e9\u8def\u5f84\u3002\u518d\u6dfb\u52a0web.xml\u8def\u5f84\uff0c\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u559c\u597d\u4fee\u6539\u3002_idea\u914d\u7f6etomcat<\/p>\n","protected":false},"author":2,"featured_media":9881,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[386,99,43],"topic":[],"class_list":["post-9901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-intellij-idea","tag-java","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/9901.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1w\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf41\u6b21\u3002\u5b89\u88c5tomcat\u540e\uff0cApplication server\u8fd9\u91cc\u81ea\u52a8\u51fa\u73b0tomcat\u3002\u4f1a\u81ea\u52a8\u51fa\u73b0\u4e00\u4e2a\u84dd\u70b9\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u9700\u8981\u505a\u4e00\u4e9b\u914d\u7f6e\uff0c\u770b\u7b2c4\u6b65\u3002\u5982\u679cmodule\u4e0b\u9762\u6ca1\u6709web\u6807\u5fd7\uff0c\u5219\u70b9\u51fb\u52a0\u53f7\u6dfb\u52a0\u3002\u6ce8\u610fpom\u4e2d\u7684\u6253\u5305\u65b9\u5f0f\u9009\u62e9war\uff0c\u5426\u5219\u8fd9\u91cc\u65e0\u6cd5\u51fa\u73b0\u3002\u4e24\u79cd\u90fd\u53ef\u4ee5\u9009\u62e9\uff0cidea\u4e2d\u4e00\u822c\u9009\u62e9\u7b2c\u4e8c\u79cd\u3002\u5982\u679c\u662ftomcat10\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7248\u672c\u3002\u6709\u4e86web\u6807\u5fd7\uff0c\u5219\u9009\u62e9\u8def\u5f84\u3002\u518d\u6dfb\u52a0web.xml\u8def\u5f84\uff0c\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u559c\u597d\u4fee\u6539\u3002_idea\u914d\u7f6etomcat\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/9901.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T09:43:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac36fbe.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9901.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/9901.html\",\"name\":\"2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T09:43:12+00:00\",\"dateModified\":\"2025-04-18T09:43:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/9901.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/9901.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9901.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"2024072100-idea\u914d\u7f6etomcat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/9901.html","og_locale":"zh_CN","og_type":"article","og_title":"2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1w\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf41\u6b21\u3002\u5b89\u88c5tomcat\u540e\uff0cApplication server\u8fd9\u91cc\u81ea\u52a8\u51fa\u73b0tomcat\u3002\u4f1a\u81ea\u52a8\u51fa\u73b0\u4e00\u4e2a\u84dd\u70b9\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u9700\u8981\u505a\u4e00\u4e9b\u914d\u7f6e\uff0c\u770b\u7b2c4\u6b65\u3002\u5982\u679cmodule\u4e0b\u9762\u6ca1\u6709web\u6807\u5fd7\uff0c\u5219\u70b9\u51fb\u52a0\u53f7\u6dfb\u52a0\u3002\u6ce8\u610fpom\u4e2d\u7684\u6253\u5305\u65b9\u5f0f\u9009\u62e9war\uff0c\u5426\u5219\u8fd9\u91cc\u65e0\u6cd5\u51fa\u73b0\u3002\u4e24\u79cd\u90fd\u53ef\u4ee5\u9009\u62e9\uff0cidea\u4e2d\u4e00\u822c\u9009\u62e9\u7b2c\u4e8c\u79cd\u3002\u5982\u679c\u662ftomcat10\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7248\u672c\u3002\u6709\u4e86web\u6807\u5fd7\uff0c\u5219\u9009\u62e9\u8def\u5f84\u3002\u518d\u6dfb\u52a0web.xml\u8def\u5f84\uff0c\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u559c\u597d\u4fee\u6539\u3002_idea\u914d\u7f6etomcat","og_url":"https:\/\/www.wsisp.com\/helps\/9901.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T09:43:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418094308-68021eac36fbe.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/9901.html","url":"https:\/\/www.wsisp.com\/helps\/9901.html","name":"2024072100-idea\u914d\u7f6etomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T09:43:12+00:00","dateModified":"2025-04-18T09:43:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/9901.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/9901.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/9901.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"2024072100-idea\u914d\u7f6etomcat"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/9901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=9901"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/9901\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/9881"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=9901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=9901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=9901"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=9901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}