{"id":78810,"date":"2026-02-28T09:43:22","date_gmt":"2026-02-28T01:43:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78810.html"},"modified":"2026-02-28T09:43:22","modified_gmt":"2026-02-28T01:43:22","slug":"idea%e5%ae%9e%e7%8e%b0srping%e5%85%a5%e9%97%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78810.html","title":{"rendered":"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f"},"content":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u300aJava EE\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u6559\u7a0b&#xff08;Spring&#043;SpringMVC&#043;Mybatis&#xff09;\u300b\u7b2c2\u7248\u4e2d\u7684\u7b2c6\u7ae0\u4e2d\u7684\u201cSpring\u7684\u5165\u95e8\u7a0b\u5e8f\u201d<\/p>\n<p>IDEA\u7248\u672c&#xff1a;2024.1<\/p>\n<p>\u672c\u6587\u6e90\u4ee3\u7801\u4e0b\u8f7d&#xff1a;<\/p>\n<p>\u901a\u8fc7\u7f51\u76d8\u5206\u4eab\u7684\u6587\u4ef6&#xff1a;spring01&#xff08;\u5165\u95e8\u7a0b\u5e8f&#xff09;.zip \u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1mtd3WRMbzJjg33TnonuxIQ?pwd&#061;7xap \u63d0\u53d6\u7801: 7xap<\/p>\n<p>\u4e00\u4e9b\u95ee\u9898&#xff1a;<\/p>\n<p>jdk1.8\u4e0b\u8f7d\u5730\u5740&#xff1a;<\/p>\n<p>jdk1.8.0_131.zip(\u8bbf\u95ee\u5bc6\u7801: 8855)<\/p>\n<p>Maven3.6.3\u4e0b\u8f7d\u5730\u5740&#xff1a;<\/p>\n<p>apache-maven-3.6.3.zip (\u8bbf\u95ee\u5bc6\u7801: 8855)<\/p>\n<p>Win10\u5982\u4f55\u914d\u7f6eJava JDK\u73af\u5883&#xff0c;\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<\/p>\n<p>Win10\u5982\u4f55\u914d\u7f6eMaven\u73af\u5883&#xff0c;\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<\/p>\n<p>IDEA\u5982\u4f55\u914d\u7f6eJDK,\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<\/p>\n<p>IDEA\u5982\u4f55\u914d\u7f6eMaven&#xff0c;\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<\/p>\n<p>\u53ef\u80fd\u9047\u5230\u7684\u62a5\u9519&#xff1a;<\/p>\n<p>java.io.IOException: Could not find resource mybatis-config.xml<\/p>\n<p>IDEA \u8fde\u63a5\u6570\u636e\u5e93\u62a5\u9519Public Key Retrieval is not allowed<\/p>\n<h2>1.\u521b\u5efaMaven\u9879\u76ee<\/h2>\n<p>\u6253\u5f00IDEA&#xff0c;\u70b9\u51fb\u201cFile\u2014&gt;New\u2014&gt;Project\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014317-69a24835b71b8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 2024\u7248\u521b\u5efamaven\u9879\u76ee\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f&#xff08;\u672c\u6587\u4f7f\u7528\u65b9\u5f0f\u4e00&#xff09;&#xff1a;<\/p>\n<p>\u65b9\u5f0f\u4e00&#xff1a;\u4f7f\u7528java<\/p>\n<p>\u9009\u62e9Java&#xff0c;\u7136\u540e\u8f93\u51fa\u540d\u79f0\u3001\u4f4d\u7f6e\u3002\u7136\u540e\u8fd9\u91cc\u9009\u62e9\u201cMaven\u201d&#xff0c;JDK\u7248\u672c\u5efa\u8bae\u9009\u62e91.8<\/p>\n<p>\u7136\u540e\u70b9\u51fb\u201d\u521b\u5efa\u201c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014318-69a2483640b6c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u65b9\u5f0f\u4e8c&#xff1a;\u4f7f\u7528Maven Archetype\u521b\u5efa<\/p>\n<p>\u9009\u62e9\u201dMaven Archetype\u201c&#xff0c;<\/p>\n<p>\u8fd9\u91cc\u9009\u62e9\u7684Archetype\u662fmaven-archetype-quickstart<\/p>\n<p>&#xff08;\u8fd9\u91cc\u6682\u65f6\u4e0d\u9009\u62e9&#xff1a;maven-archetype-webapp,\u76ee\u524d\u8fd8\u4e0d\u662f\u4e00\u4e2ajava web\u7a0b\u5e8f&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014318-69a2483674a0f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u672c\u6587\u4f7f\u7528\u65b9\u5f0f\u4e00\u8fdb\u884c\u521b\u5efa&#xff0c;\u65b9\u5f0f\u4e8c\u5982\u679cmaven\u914d\u7f6e\u7684\u4e0d\u5bf9&#xff0c;\u6709\u53ef\u80fd\u51fa\u73b0\u7a7a\u9879\u76ee\u3002<\/p>\n<p>\u521b\u5efa\u5b8c\u6bd5\u540e&#xff0c;\u9879\u76ee\u7ed3\u6784\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014318-69a24836a8a18.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>2.\u5f15\u7528spring\u4f9d\u8d56<\/h2>\n<p>\u6211\u4eec\u6253\u5f00\u9879\u76ee\u7684pom\u6587\u4ef6&#xff0c;\u628a\u4f9d\u8d56\u7684\u4ee3\u7801\u6dfb\u52a0\u4e0a&#xff0c; \u7136\u540e\u5237\u65b0maven\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014318-69a24836c2215.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53c2\u8003\u7684pom\u6587\u4ef6\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token prolog\">&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>project<\/span> <span class=\"token attr-name\">xmlns<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/maven.apache.org\/POM\/4.0.0<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n         <span class=\"token attr-name\"><span class=\"token namespace\">xmlns:<\/span>xsi<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/www.w3.org\/2001\/XMLSchema-instance<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n         <span class=\"token attr-name\"><span class=\"token namespace\">xsi:<\/span>schemaLocation<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>modelVersion<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>4.0.0<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>modelVersion<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>com.guo<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring01<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>1.0-SNAPSHOT<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>properties<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>maven.compiler.source<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>8<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>maven.compiler.source<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>maven.compiler.target<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>8<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>maven.compiler.target<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>project.build.sourceEncoding<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>UTF-8<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>project.build.sourceEncoding<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>properties<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependencies<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;Spring\u7684\u57fa\u7840\u5305Spring-core&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>org.springframework<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring-core<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>5.2.8.RELEASE<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;Spring\u7684\u57fa\u7840\u5305Spring-beans&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>org.springframework<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring-beans<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>5.2.8.RELEASE<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;Spring\u7684\u57fa\u7840\u5305Spring-context&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>org.springframework<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring-context<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>5.2.8.RELEASE<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;Spring\u7684\u57fa\u7840\u5305Spring-expressinon&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>org.springframework<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring-expression<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>5.2.8.RELEASE<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;Spring\u7684\u4f9d\u8d56\u5305commons-logging&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>commons-logging<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>commons-logging<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n            <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>1.2<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependencies<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>project<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u7684\u9879\u76ee\u7684pom.xml\u6587\u4ef6\u957f\u5f97\u4e0b\u9762\u8fd9\u6837&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a2483728c42.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53f3\u51fb\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u9009\u62e9\u201d\u6dfb\u52a0\u4e3amaven\u9879\u76ee\u201c&#xff0c;\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u5219\u8df3\u8fc7\u3002<\/p>\n<h2>3.\u6dfb\u52a0\u9879\u76ee\u4ee3\u7801<\/h2>\n<p>\u5148\u521b\u5efa\u76f8\u5e94\u7684\u6587\u4ef6\u5939 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a248373c735.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8fd9\u91cc\u586b\u5165\u5305\u540d&#xff08;\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u586b\u5199&#xff09;&#xff0c;\u586b\u5199\u5b8c\u6bd5\u540e\u56de\u8f66\u786e\u5b9a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a2483757e1c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u521b\u5efa\u5b8c\u6bd5\u540e&#xff0c;\u6211\u4eec\u7ee7\u7eed\u53f3\u51fb\u521a\u624d\u521b\u5efa\u7684\u6587\u4ef6\u5939&#xff0c;\u9009\u62e9\u201d\u65b0\u5efa\u201c\u2014&gt;\u201dJava \u7c7b\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a248376c87e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u521b\u5efa\u4e00\u4e2a\u7c7b&#xff0c;\u8fd9\u91cc\u7684\u7c7b\u540d\u5c31\u53eb\u201dHelloSpring\u201c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a248378ce40.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801&#xff0c;\u6ce8\u610f\u5305\u8def\u5f84\u3002<\/p>\n<p><span class=\"token keyword\">package<\/span> <span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>guo<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">HelloSpring<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token class-name\">String<\/span> userName<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">setUserName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span> userName<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userName<span class=\"token operator\">&#061;<\/span>userName<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">show<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span>userName<span class=\"token operator\">&#043;<\/span><span class=\"token string\">&#034;:\u6b22\u8fce\u6765\u5230Spring&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a24837a1e4c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>4.\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6<\/h2>\n<p>\u53f3\u51fbresources\u6587\u4ef6\u5939&#xff0c;\u9009\u62e9\u201d\u65b0\u5efa\u201c\u2014\u2014&gt;\u201dXML\u914d\u7f6e\u6587\u4ef6\u201d\u2014\u2014&gt;\u201dSpring\u914d\u7f6e\u201d <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014319-69a24837cce76.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7136\u540e\u8d77\u4e00\u4e2a\u540d\u5b57&#xff0c;\u5c31\u53ebapplicationContext<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a2483811ef8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u521b\u5efa\u5b8c\u6bd5\u4ee5\u540e\u7684\u521d\u59cb\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a2483825bfc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6211\u4eec\u5728\u8fd9\u91cc\u9762\u6dfb\u52a0bean<\/p>\n<p><span class=\"token prolog\">&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>beans<\/span> <span class=\"token attr-name\">xmlns<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/www.springframework.org\/schema\/beans<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n       <span class=\"token attr-name\"><span class=\"token namespace\">xmlns:<\/span>xsi<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/www.w3.org\/2001\/XMLSchema-instance<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n       <span class=\"token attr-name\"><span class=\"token namespace\">xsi:<\/span>schemaLocation<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/www.springframework.org\/schema\/beans http:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token comment\">&lt;!&#8211; \u5c06\u6307\u5b9a\u7c7b\u914d\u7f6e\u7ed9Spring&#xff0c;\u8ba9Spring\u521b\u5efaHelloSpring\u5bf9\u8c61\u7684\u5b9e\u4f8b &#8211;&gt;<\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>bean<\/span> <span class=\"token attr-name\">id<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>helloSpring<span class=\"token punctuation\">&#034;<\/span><\/span> <span class=\"token attr-name\">class<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>com.guo.HelloSpring<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n        <span class=\"token comment\">&lt;!&#8211;\u4e3auserName\u5c5e\u6027\u8d4b\u503c&#8211;&gt;<\/span><br \/>\n        <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>property<\/span> <span class=\"token attr-name\">name<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>userName<span class=\"token punctuation\">&#034;<\/span><\/span> <span class=\"token attr-name\">value<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>\u5f20\u4e09<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>property<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>bean<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>beans<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u6ce8\u610f\u5305\u8def\u5f84&#xff0c;\u6dfb\u52a0\u5b8c\u540e\u5982\u4e0b&#xff0c;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a2483874bcd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>5.\u7f16\u5199\u6d4b\u8bd5\u4ee3\u7801<\/h2>\n<p>\u4e0a\u9762\u7f16\u5199\u5b8c\u4e86\u7c7b\u548cbean&#xff0c;\u4e0b\u9762\u5f00\u59cb\u7f16\u5199\u6d4b\u8bd5\u4ee3\u7801\u3002<\/p>\n<p>\u53f3\u51fb\u6211\u4eec\u7684\u5305\u8def\u5f84&#xff0c;\u70b9\u51fb\u201d\u65b0\u5efa\u201c\u2014\u2014&gt;\u201dJava\u7c7b\u201d <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a248389f94d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7c7b\u540d\u53eb&#xff1a;TestHelloSpring<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a24838c0cc8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6211\u4eec\u5728\u91cc\u9762\u5199\u4e00\u4e2amain\u65b9\u6cd5&#xff0c;\u6267\u884c\u6d4b\u8bd5\u64cd\u4f5c<\/p>\n<p><span class=\"token keyword\">package<\/span> <span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>guo<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>springframework<span class=\"token punctuation\">.<\/span>context<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">ApplicationContext<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>springframework<span class=\"token punctuation\">.<\/span>context<span class=\"token punctuation\">.<\/span>support<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">ClassPathXmlApplicationContext<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">TestHelloSpring<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/\u521d\u59cb\u5316spring\u5bb9\u5668&#xff0c;\u52a0\u8f7dapplicationContext.xml\u914d\u7f6e<\/span><br \/>\n        <span class=\"token class-name\">ApplicationContext<\/span> applicationContext<span class=\"token operator\">&#061;<\/span><span class=\"token keyword\">new<\/span><br \/>\n                <span class=\"token class-name\">ClassPathXmlApplicationContext<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;applicationContext.xml&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u901a\u8fc7\u5bb9\u5668\u83b7\u53d6\u914d\u7f6e\u4e2dhelloSpring\u7684\u5b9e\u4f8b<\/span><br \/>\n        <span class=\"token class-name\">HelloSpring<\/span> helloSpring<span class=\"token operator\">&#061;<\/span><br \/>\n                <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">HelloSpring<\/span><span class=\"token punctuation\">)<\/span>applicationContext<span class=\"token punctuation\">.<\/span><span class=\"token function\">getBean<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;helloSpring&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        helloSpring<span class=\"token punctuation\">.<\/span><span class=\"token function\">show<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/\u8c03\u7528\u65b9\u6cd5<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6dfb\u52a0\u5b8c\u540e&#xff0c;\u53c2\u8003\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014320-69a24838db08f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>6.\u6267\u884c\u6d4b\u8bd5<\/h2>\n<p>\u6211\u4eec\u6267\u884c\u6d4b\u8bd5\u8bed\u53e5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014321-69a2483931c70.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53ef\u4ee5\u770b\u5230&#xff0c;Spring\u52a0\u8f7d\u4e86\u914d\u7f6e\u6587\u4ef6&#xff0c;\u7136\u540e\u6267\u884c\u4e86\u83b7\u53d6\u5230\u4e86id\u4e3ahelloSpring\u7684bean&#xff0c;\u7136\u540e\u6267\u884c\u4e86\u91cc\u9762\u7684show\u65b9\u6cd5&#xff0c;\u5728\u63a7\u5236\u53f0\u6253\u5370\u4e86\u6211\u4eec\u7c7b\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u300aJava EE\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u6559\u7a0b&#xff08;SpringSpringMVCMybatis&#xff09;\u300b\u7b2c2\u7248\u4e2d\u7684\u7b2c6\u7ae0\u4e2d\u7684\u201cSpring\u7684\u5165\u95e8\u7a0b\u5e8f\u201d<br \/>\nIDEA\u7248\u672c&#xff1a;2024.1<br \/>\n\u672c\u6587\u6e90\u4ee3\u7801\u4e0b\u8f7d&#xff1a;<br \/>\n\u901a\u8fc7\u7f51\u76d8\u5206\u4eab\u7684\u6587\u4ef6&#xff1a;spring01&#xff08;\u5165\u95e8\u7a0b\u5e8f&#xff09;.zip \u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1mtd3WRMbzJjg33TnonuxIQ?pwd7xa<\/p>\n","protected":false},"author":2,"featured_media":78791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,386,99],"topic":[],"class_list":["post-78810","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ide","tag-intellij-idea","tag-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \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\/78810.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u300aJava EE\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u6559\u7a0b&#xff08;SpringSpringMVCMybatis&#xff09;\u300b\u7b2c2\u7248\u4e2d\u7684\u7b2c6\u7ae0\u4e2d\u7684\u201cSpring\u7684\u5165\u95e8\u7a0b\u5e8f\u201d IDEA\u7248\u672c&#xff1a;2024.1 \u672c\u6587\u6e90\u4ee3\u7801\u4e0b\u8f7d&#xff1a; \u901a\u8fc7\u7f51\u76d8\u5206\u4eab\u7684\u6587\u4ef6&#xff1a;spring01&#xff08;\u5165\u95e8\u7a0b\u5e8f&#xff09;.zip \u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1mtd3WRMbzJjg33TnonuxIQ?pwd7xa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78810.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-28T01:43:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014317-69a24835b71b8.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78810.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78810.html\",\"name\":\"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-28T01:43:22+00:00\",\"dateModified\":\"2026-02-28T01:43:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78810.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78810.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78810.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f\"}]},{\"@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":"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \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\/78810.html","og_locale":"zh_CN","og_type":"article","og_title":"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u672c\u6587\u4e3b\u8981\u5b9e\u73b0\u300aJava EE\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u6559\u7a0b&#xff08;SpringSpringMVCMybatis&#xff09;\u300b\u7b2c2\u7248\u4e2d\u7684\u7b2c6\u7ae0\u4e2d\u7684\u201cSpring\u7684\u5165\u95e8\u7a0b\u5e8f\u201d IDEA\u7248\u672c&#xff1a;2024.1 \u672c\u6587\u6e90\u4ee3\u7801\u4e0b\u8f7d&#xff1a; \u901a\u8fc7\u7f51\u76d8\u5206\u4eab\u7684\u6587\u4ef6&#xff1a;spring01&#xff08;\u5165\u95e8\u7a0b\u5e8f&#xff09;.zip \u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1mtd3WRMbzJjg33TnonuxIQ?pwd7xa","og_url":"https:\/\/www.wsisp.com\/helps\/78810.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-28T01:43:22+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260228014317-69a24835b71b8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78810.html","url":"https:\/\/www.wsisp.com\/helps\/78810.html","name":"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-28T01:43:22+00:00","dateModified":"2026-02-28T01:43:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78810.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78810.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78810.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"IDEA\u5b9e\u73b0Srping\u5165\u95e8\u7a0b\u5e8f"}]},{"@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\/78810","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=78810"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78810\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/78791"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78810"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}