{"id":58757,"date":"2025-08-16T15:10:22","date_gmt":"2025-08-16T07:10:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/58757.html"},"modified":"2025-08-16T15:10:22","modified_gmt":"2025-08-16T07:10:22","slug":"spring-boot%e5%88%9d%e7%ba%a7%e6%a6%82%e5%bf%b5%e5%8f%8a%e8%87%aa%e5%8a%a8%e9%85%8d%e7%bd%ae%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/58757.html","title":{"rendered":"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406"},"content":{"rendered":"<h2 style=\"text-align:center\"><span style=\"color:#fe2c24\">\u521d\u8bc6Spring Boot<\/span><\/h2>\n<hr \/>\n<h3>\u00a0SpringBoot\u7684\u6982\u5ff5<\/h3>\n<p>Spring Boot\u00a0\u662f\u57fa\u4e8e Spring \u6846\u67b6\u7684\u5feb\u901f\u5f00\u53d1\u811a\u624b\u67b6&#xff0c;\u65e8\u5728\u7b80\u5316 Spring \u5e94\u7528\u7684\u521d\u59cb\u642d\u5efa\u548c\u5f00\u53d1\u8fc7\u7a0b\u3002\u5b83\u901a\u8fc7\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u7684\u7406\u5ff5&#xff0c;\u63d0\u4f9b\u5f00\u7bb1\u5373\u7528\u7684\u9ed8\u8ba4\u8bbe\u7f6e&#xff0c;\u8ba9\u5f00\u53d1\u8005\u53ea\u9700\u5173\u6ce8\u4e1a\u52a1\u903b\u8f91&#xff0c;\u51cf\u5c11\u7e41\u7410\u7684\u914d\u7f6e\u3002<\/p>\n<\/p>\n<h3>SpringBoot\u7684\u6838\u5fc3\u4f18\u52bf<\/h3>\n<h4>\u5feb\u901f\u542f\u52a8<\/h4>\n<ul>\n<li>\u5185\u5d4c Tomcat\/Jetty \u670d\u52a1\u5668&#xff0c;\u65e0\u9700\u5355\u72ec\u90e8\u7f72 WAR \u5305\u3002<\/li>\n<li>\u901a\u8fc7\u00a0main\u00a0\u65b9\u6cd5\u76f4\u63a5\u8fd0\u884c&#xff0c;\u79d2\u7ea7\u542f\u52a8\u5e94\u7528\u3002<\/li>\n<\/ul>\n<h4>\u81ea\u52a8\u914d\u7f6e<\/h4>\n<ul>\n<li>\u6839\u636e\u9879\u76ee\u4f9d\u8d56&#xff08;\u5982 JDBC\u3001Redis\u3001Web&#xff09;\u81ea\u52a8\u914d\u7f6e\u7ec4\u4ef6&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u5199 XML \u6216 Java Config\u3002<\/li>\n<\/ul>\n<h4>\u8d77\u6b65\u4f9d\u8d56<\/h4>\n<ul>\n<li>\u9884\u7f6e\u5e38\u7528\u4f9d\u8d56\u5305&#xff08;\u5982\u00a0spring-boot-starter-web\u00a0\u5305\u542b Web \u5f00\u53d1\u6240\u9700\u5168\u90e8\u4f9d\u8d56&#xff09;&#xff0c;\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/li>\n<\/ul>\n<h4>\u751f\u4ea7\u5c31\u7eea\u7279\u6027<\/h4>\n<ul>\n<li>\u96c6\u6210\u5065\u5eb7\u68c0\u67e5&#xff08;\/actuator\/health&#xff09;\u3001\u6307\u6807\u76d1\u63a7&#xff08;Metrics&#xff09;\u3001\u5916\u90e8\u5316\u914d\u7f6e&#xff08;\u5982\u00a0application.properties&#xff09;\u7b49\u8fd0\u7ef4\u529f\u80fd\u3002<\/li>\n<\/ul>\n<h4>\u65e0\u4ee3\u7801\u751f\u6210 &amp; \u96f6 XML \u914d\u7f6e<\/h4>\n<ul>\n<li>\u57fa\u4e8e\u6ce8\u89e3\u548c Java Config \u5f00\u53d1&#xff0c;\u544a\u522b\u4f20\u7edf XML \u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h3>\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2aspring boot\u9879\u76ee&#xff08;\u5feb\u901f\u6d41\u7a0b&#xff09;<\/h3>\n<\/p>\n<h4>\u521b\u5efa\u9879\u76ee &amp; \u6dfb\u52a0\u4f9d\u8d56<\/h4>\n<p>pom.xml:<\/p>\n<p>&lt;!&#8211; Spring Boot \u7236\u9879\u76ee&#xff08;\u7ba1\u7406\u7248\u672c&#xff09; &#8211;&gt;<br \/>\n&lt;parent&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;3.1.0&lt;\/version&gt;<br \/>\n&lt;\/parent&gt;<\/p>\n<p>&lt;!&#8211; Web \u5f00\u53d1\u8d77\u6b65\u4f9d\u8d56&#xff08;\u5185\u5d4c Tomcat &#043; Spring MVC&#xff09; &#8211;&gt;<br \/>\n&lt;dependencies&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n&lt;\/dependencies&gt; <\/p>\n<h4>\u542f\u52a8\u7c7b<\/h4>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<\/p>\n<p>&#064;SpringBootApplication \/\/ \u6838\u5fc3\u6ce8\u89e3&#xff1a;\u7ec4\u5408\u4e86 &#064;Configuration &#043; &#064;EnableAutoConfiguration &#043; &#064;ComponentScan<br \/>\npublic class App {<br \/>\n    public static void main(String[] args) {<br \/>\n        SpringApplication.run(MyApp.class, args); \/\/ \u542f\u52a8\u5e94\u7528<br \/>\n    }<br \/>\n} <\/p>\n<h4>\u7f16\u5199\u63a7\u5236\u5668<\/h4>\n<p>import org.springframework.web.bind.annotation.GetMapping;<br \/>\nimport org.springframework.web.bind.annotation.RestController;<\/p>\n<p>&#064;RestController \/\/ &#061; &#064;Controller &#043; &#064;ResponseBody<br \/>\npublic class HelloController {<\/p>\n<p>    &#064;GetMapping(&#034;\/hello&#034;) \/\/ \u6620\u5c04 GET \u8bf7\u6c42\u5230 \/hello<br \/>\n    public String sayHello() {<br \/>\n        return &#034;Hello, Spring Boot!&#034;;<br \/>\n    }<br \/>\n} <\/p>\n<p>REST \u63a7\u5236\u5668&#xff0c;\u5904\u7406 HTTP \u8bf7\u6c42&#xff0c;\u542f\u52a8\u9879\u76ee\u8bbf\u95eeWeb\u5230http:\/\/localhost:8080\/hello<\/p>\n<\/p>\n<p>\u8fd9\u65f6\u6709\u4eba\u8981\u95ee\u4e86&#xff0c;\u90a3\u5982\u679c\u6211\u60f3\u6362\u7aef\u53e3\u5462&#xff1f;\u5982\u679c\u6211\u60f3\u7ed9\u8fd9\u4e2a\u5e94\u7528\u8d77\u4e2a\u540d\u5b57\u65b9\u4fbf\u5728\u65e5\u5fd7\u548c\u76d1\u63a7\u7b49\u5730\u65b9\u8bc6\u522b\u5462&#xff1f;\u00a0 \u00a0<\/p>\n<h4>\u914d\u7f6e\u6587\u4ef6&#xff08;\u53ef\u9009&#xff09;<\/h4>\n<p>\u5728resources\u4e2d\u521b\u5efa\u4e00\u4e2aapplication.properties<\/p>\n<p>\u81ea\u5b9a\u4e49\u914d\u7f6e<\/p>\n<p>server.port&#061;8080 # \u4fee\u6539\u7aef\u53e3&#xff08;\u9ed8\u8ba4\u4e5f\u662f8080&#xff09;<br \/>\nspring.application.name&#061;my-first-boot-app <\/p>\n<p>\u7f16\u5199\u5b8c\u6bd5\u5373\u53ef\u53c2\u4e0e\u6d4b\u8bd5<\/p>\n<p>\u6574\u4e2a\u6d41\u7a0b\u4e3a<\/p>\n<p> \u6dfb\u52a0\u4f9d\u8d56 \u2192 \u4e3b\u7c7b\u6ce8\u89e3 \u2192 \u5199Controller \u2192 \u8fd0\u884c \u2192 \u8bbf\u95ee\u63a5\u53e3 <\/p>\n<p>\u65e0\u9700\u914d\u7f6e XML\u3001\u65e0\u9700\u90e8\u7f72\u670d\u52a1\u5668&#xff0c;\u9002\u5408\u5feb\u901f\u5f00\u53d1\u5fae\u670d\u52a1\u3001REST API\u3001\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\u7b49\u5e38\u89c1\u573a\u666f\u3002<\/p>\n<\/p>\n<hr \/>\n<h2 style=\"text-align:center\"><\/h2>\n<h2 style=\"background-color:transparent;text-align:center\"><span style=\"color:#fe2c24\">SpringBoot\u81ea\u52a8\u914d\u7f6e\u7684\u539f\u7406<\/span><\/h2>\n<p>\u90a3\u4e48\u6709\u4eba\u8981\u95ee\u4e86&#xff0c;\u4e3a\u4ec0\u4e48springboot\u53ef\u4ee5\u81ea\u52a8\u914d\u7f6e\u5462&#xff1f;\u4e0epython\u4e00\u6837&#xff0c;\u4f60\u505a\u7684\u4e8b\u60c5\u8d8a\u5c11&#xff0c;\u5e95\u5c42\u4ee3\u7801\u505a\u7684\u4e8b\u60c5\u7684\u8d8a\u591a\u3002<\/p>\n<\/p>\n<h3>\u4e3b\u8981\u573a\u666f\u81ea\u52a8\u914d\u7f6e\u6838\u5fc3\u539f\u7406\u603b\u7ed3<\/h3>\n<h4 style=\"background-color:transparent\">\u4f9d\u8d56\u7ba1\u7406\u673a\u5236<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7248\u672c\u4ef2\u88c1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<p>\u901a\u8fc7\u00a0spring-boot-starter-parent\u00a0\u7edf\u4e00\u7ba1\u7406\u6240\u6709\u4f9d\u8d56\u7248\u672c&#xff0c;\u907f\u514d\u51b2\u7a81&#xff1a;<\/p>\n<p>&lt;parent&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;3.1.0&lt;\/version&gt; &lt;!&#8211; \u6b64\u5904\u5b9a\u4e49\u5168\u5c40\u7248\u672c &#8211;&gt;<br \/>\n&lt;\/parent&gt; <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u4f46\u662f\u6211\u4eec\u4ecd\u7136\u80fd\u81ea\u5b9a\u4e49\u4f9d\u8d56\u7248\u672c&#xff0c;\u6bd5\u7adf\u7248\u672c\u4ef2\u88c1\u4e0d\u4e00\u5b9a\u8d34\u5408\u6211\u4eec\u9879\u76ee\u672c\u8eab<\/p>\n<\/p>\n<p>\u81ea\u5b9a\u4e49\u7248\u672c&#xff1a;\u5728&lt;properties&gt;\u4e2d\u8986\u76d6\u9ed8\u8ba4\u7248\u672c<\/p>\n<p>&#xff08;\u4f8b&#xff1a; \u200b\u200b\u200b&lt;mysql.version&gt;5.1.6&lt;\/mysql.version&gt;&#xff09;<\/p>\n<p>\u00a0\u00a0Starter \u9884\u5b9a\u4e49\u4f9d\u8d56\u96c6<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6bcf\u4e2a Starter \u5c01\u88c5\u4e86\u7279\u5b9a\u573a\u666f\u6240\u9700\u7684\u5168\u5957\u4f9d\u8d56&#xff08;\u5305\u62ec\u4f9d\u8d56\u7684\u4f20\u9012&#xff09;<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\n<p>spring-boot-starter-web&#xff1a;\u81ea\u52a8\u5305\u542b Tomcat &#043; Spring MVC &#043; Jackson<\/p>\n<\/li>\n<li>\n<p>spring-boot-starter-data-jpa&#xff1a;\u81ea\u52a8\u5305\u542b Hibernate &#043; Spring Data JPA<\/p>\n<\/li>\n<\/ul>\n<h4 style=\"background-color:transparent\">\u6761\u4ef6\u6ce8\u89e3\u9a71\u52a8\u81ea\u52a8\u88c5\u914d<\/h4>\n<p>\u6839\u636e\u73af\u5883\u6761\u4ef6&#xff08;\u7c7b\u8def\u5f84\u3001\u914d\u7f6e\u5c5e\u6027\u3001Bean \u662f\u5426\u5b58\u5728\u7b49&#xff09;\u52a8\u6001\u51b3\u5b9a\u662f\u5426\u542f\u7528\u81ea\u52a8\u914d\u7f6e&#xff0c;\u4ece\u800c\u8ba9\u5e94\u7528\u66f4\u7075\u6d3b\u3001\u8f7b\u91cf\u3002<\/p>\n<p>\u5e38\u7528\u6ce8\u89e3\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>&#064;ConditionalOnClass&#xff1a;\u7c7b\u8def\u5f84\u5b58\u5728\u6307\u5b9a\u7c7b\u65f6\u751f\u6548 &#xff08;\u4f8b&#xff1a;\u5b58\u5728\u00a0Servlet.class\u00a0\u624d\u914d\u7f6e Tomcat&#xff09;<\/p>\n<\/li>\n<li>\n<p>&#064;ConditionalOnMissingBean&#xff1a;\u5bb9\u5668\u65e0\u8be5 Bean \u65f6\u751f\u6548 &#xff08;\u4f8b&#xff1a;\u7528\u6237\u672a\u81ea\u5b9a\u4e49\u00a0DataSource\u00a0\u624d\u6ce8\u5165\u9ed8\u8ba4\u6570\u636e\u6e90&#xff09;<\/p>\n<\/li>\n<li>\n<p>&#064;ConditionalOnProperty&#xff1a;\u914d\u7f6e\u5c5e\u6027\u5339\u914d\u65f6\u751f\u6548 &#xff08;\u4f8b&#xff1a;spring.datasource.url\u00a0\u5b58\u5728\u65f6\u914d\u7f6e\u6570\u636e\u6e90&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u5e94\u7528\u5982\u4e0b&#xff1a;<\/p>\n<p>&#064;Configuration<br \/>\n&#064;ConditionalOnClass(DataSource.class) \/\/ \u5b58\u5728JDBC\u9a71\u52a8\u624d\u751f\u6548<br \/>\npublic class DataSourceAutoConfiguration {<\/p>\n<p>    &#064;Bean<br \/>\n    &#064;ConditionalOnMissingBean \/\/ \u7528\u6237\u672a\u81ea\u5b9a\u4e49\u65f6\u751f\u6548<br \/>\n    public DataSource dataSource(DataSourceProperties properties) {<br \/>\n        return properties.initializeDataSourceBuilder().build();<br \/>\n    }<br \/>\n} <\/p>\n<h3>\u914d\u7f6e\u5c5e\u6027\u7ed1\u5b9a<\/h3>\n<\/p>\n<p>&#064;ConfigurationProperties\u00a0\u7ed1\u5b9a<\/p>\n<\/p>\n<p>\u5c06\u914d\u7f6e\u6587\u4ef6\u5c5e\u6027\u6620\u5c04\u5230 Java Bean&#xff1a;<\/p>\n<p>&#064;ConfigurationProperties(prefix &#061; &#034;spring.datasource&#034;)<br \/>\npublic class DataSourceProperties {<br \/>\n    private String url;<br \/>\n    private String username;<br \/>\n    \/\/ Getter\/Setter \u7701\u7565<br \/>\n} <\/p>\n<p>\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\u00a0(application.properties)&#xff1a;<\/p>\n<p>spring.datasource.url&#061;jdbc:mysql:\/\/localhost:3306\/mydb<br \/>\nspring.datasource.username&#061;root <\/p>\n<p>\u6b64\u65f6\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u5c5e\u6027\u5c06\u6620\u5c04\u5230JavaBean\u4e2d<\/p>\n<\/p>\n<h4>\u81ea\u52a8\u914d\u7f6e\u89e6\u53d1\u6d41\u7a0b&#xff08;\u539f\u7406&#xff09;<\/h4>\n<p>\u5176\u6838\u5fc3\u6d41\u7a0b\u5171\u56db\u6b65&#xff1a;\u626b\u6587\u4ef6 \u2192 \u8bfb\u914d\u7f6e \u2192 \u7b5b\u6761\u4ef6 \u2192 \u88c5 Bean<\/p>\n<h5 style=\"background-color:transparent\">\u626b\u63cfAutoConfiguration.imports<\/h5>\n<p>Spring Boot \u542f\u52a8\u65f6\u626b\u63cf\u6240\u6709 jar \u5305\u7684<\/p>\n<p>META-INF\/spring\/org.springframework.boot.autoconfigure.AutoConfiguration.imports\u6587\u4ef6<\/p>\n<p>\u83b7\u53d6\u6240\u6709\u58f0\u660e\u7684\u81ea\u52a8\u914d\u7f6e\u7c7b\u5168\u540d&#xff08;\u4f8b\u5982\u00a0DataSourceAutoConfiguration&#xff09;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<h4>\u8bfb\u53d6\u81ea\u52a8\u914d\u7f6e\u7c7b<\/h4>\n<p>\u52a0\u8f7d\u5e76\u89e3\u6790\u8fd9\u4e9b\u914d\u7f6e\u7c7b&#xff08;\u4f8b\u5982\u4e0a\u9762\u7684DataSourceAutoConfiguration&#xff09;<\/p>\n<\/p>\n<h4>\u5e94\u7528\u6761\u4ef6\u6ce8\u89e3\u7b5b\u9009<\/h4>\n<p>\u68c0\u67e5\u6bcf\u4e2a\u914d\u7f6e\u7c7b\u4e0a\u7684\u6761\u4ef6\u6ce8\u89e3&#xff08;\u4e0a\u6587\u63d0\u5230\u8fc7&#xff09;&#xff0c;\u53ea\u6709\u5f53\u524d\u73af\u5883\u6ee1\u8db3\u6240\u6709\u6761\u4ef6\u7684\u914d\u7f6e\u7c7b\u624d\u4f1a\u751f\u6548<\/p>\n<p>\u4f8b\u5982&#xff1a;&#xff0c;\u5f53 classpath \u4e0b\u6709\u00a0DataSource.class\u00a0\u4e14\u5bb9\u5668\u4e2d\u6ca1\u6709\u00a0DataSource\u00a0bean \u65f6&#xff0c;DataSourceAutoConfiguration\u00a0\u624d\u751f\u6548&#xff08;\u81ea\u52a8\u914d\u7f6e\u561b&#xff0c;\u914d\u7f6e\u4e86\u5c31\u6210bean\u4e86&#xff0c;\u6709bean\u5c31\u4e0d\u80fd\u914d\u7f6e\u4e0d\u7136\u5c31\u51b2\u7a81\u4e86&#xff09;<\/p>\n<\/p>\n<h4>\u52a0\u8f7d Bean \u5e76\u7ed1\u5b9a\u5c5e\u6027<\/h4>\n<p>\u751f\u6548\u7684\u914d\u7f6e\u7c7b\u4e2d\u5b9a\u4e49\u7684\u00a0&#064;Bean\u00a0\u65b9\u6cd5\u4f1a\u88ab\u6267\u884c&#xff0c;\u521b\u5efa\u6240\u9700\u7684 Bean \u5b9e\u4f8b\u3002\u8fd9\u4e9b Bean \u7684\u5c5e\u6027\u503c&#xff08;\u5982\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570&#xff09;\u81ea\u52a8\u4ece\u00a0application.properties\/yml\u00a0\u7ed1\u5b9a\u3002<\/p>\n<\/p>\n<hr \/>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb952\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf10\u6b21\u3002&#8211; \u6b64\u5904\u5b9a\u4e49\u5168\u5c40\u7248\u672c &#8211;&gt;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,98,292],"topic":[],"class_list":["post-58757","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-spring-boot","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \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\/58757.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb952\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf10\u6b21\u3002-- \u6b64\u5904\u5b9a\u4e49\u5168\u5c40\u7248\u672c --&gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/58757.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-16T07:10:22+00:00\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58757.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/58757.html\",\"name\":\"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-16T07:10:22+00:00\",\"dateModified\":\"2025-08-16T07:10:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/58757.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/58757.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58757.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406\"}]},{\"@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":"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \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\/58757.html","og_locale":"zh_CN","og_type":"article","og_title":"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb952\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf10\u6b21\u3002-- \u6b64\u5904\u5b9a\u4e49\u5168\u5c40\u7248\u672c --&gt;","og_url":"https:\/\/www.wsisp.com\/helps\/58757.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-16T07:10:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/58757.html","url":"https:\/\/www.wsisp.com\/helps\/58757.html","name":"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-16T07:10:22+00:00","dateModified":"2025-08-16T07:10:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/58757.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/58757.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/58757.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Spring Boot\u521d\u7ea7\u6982\u5ff5\u53ca\u81ea\u52a8\u914d\u7f6e\u539f\u7406"}]},{"@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\/58757","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=58757"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/58757\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=58757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=58757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=58757"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=58757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}