{"id":117689,"date":"2026-10-25T06:48:28","date_gmt":"2026-10-24T22:48:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117689.html"},"modified":"2026-10-25T06:48:28","modified_gmt":"2026-10-24T22:48:28","slug":"%e4%bb%8e%e9%9b%b6%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e7%8e%b0%e4%bb%a3%e5%8c%96%e7%9a%84%e9%aa%8c%e8%af%81%e7%a0%81%e7%99%bb%e5%bd%95%e7%b3%bb%e7%bb%9f%ef%bc%9aspring-boot-%e9%98%bf%e9%87%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117689.html","title":{"rendered":"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b"},"content":{"rendered":"<h3><\/h3>\n<h3 id=\"\u524d\u8a00\">\u524d\u8a00<\/h3>\n<p>\u5728\u5f53\u4eca\u8fd9\u4e2a\u5feb\u8282\u594f\u7684\u6570\u5b57\u65f6\u4ee3&#xff0c;\u7528\u6237\u4f53\u9a8c\u5df2\u7ecf\u6210\u4e3a\u4ea7\u54c1\u6210\u529f\u7684\u5173\u952e\u56e0\u7d20\u4e4b\u4e00\u3002\u4f20\u7edf\u7684\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u65b9\u5f0f&#xff0c;\u867d\u7136\u5b89\u5168\u53ef\u9760&#xff0c;\u4f46\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4&#xff0c;\u6ce8\u518c\u6d41\u7a0b\u7e41\u7410\u3001\u8bb0\u5fc6\u5bc6\u7801\u56f0\u96be&#xff0c;\u5f80\u5f80\u662f\u7528\u6237\u6d41\u5931\u7684\u91cd\u707e\u533a\u3002<\/p>\n<p>\u800c\u624b\u673a\u53f7\u9a8c\u8bc1\u7801\u767b\u5f55&#xff0c;\u51ed\u501f\u5176&#034;\u5373\u7528\u5373\u8d70&#034;\u7684\u4fbf\u5229\u6027&#xff0c;\u5df2\u7ecf\u6210\u4e3a\u4e3b\u6d41\u5e94\u7528\u7684\u9996\u9009\u65b9\u6848\u3002\u4e0d\u7528\u6ce8\u518c\u3001\u4e0d\u7528\u8bb0\u5bc6\u7801\u3001\u8f93\u5165\u624b\u673a\u53f7\u6536\u4e2a\u9a8c\u8bc1\u7801\u5c31\u80fd\u767b\u5f55&#xff0c;\u4f53\u9a8c\u7b80\u76f4\u4e0d\u8981\u592a\u4e1d\u6ed1&#xff01;<\/p>\n<p>\u4eca\u5929&#xff0c;\u6211\u5c31\u5e26\u4f60\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf&#xff0c;\u4f7f\u7528 Spring Boot 3 &#043; \u963f\u91cc\u4e91\u77ed\u4fe1\u670d\u52a1&#xff0c;\u4ece\u540e\u7aef API \u5230\u524d\u7aef\u9875\u9762&#xff0c;\u5168\u6d41\u7a0b\u5b9e\u6218&#xff01;<\/p>\n<\/p>\n<h3 id=\"\u9879\u76ee\u6982\u89c8\">\u9879\u76ee\u6982\u89c8<\/h3>\n<p>\u6211\u4eec\u8981\u5b9e\u73b0\u7684\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<p>\u2705 \u53d1\u9001\u77ed\u4fe1\u9a8c\u8bc1\u7801 &#8211; \u901a\u8fc7\u963f\u91cc\u4e91\u77ed\u4fe1\u670d\u52a1\u53d1\u9001 6 \u4f4d\u9a8c\u8bc1\u7801<br \/>\n\u2705 \u9a8c\u8bc1\u7801\u9a8c\u8bc1 &#8211; \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u662f\u5426\u6b63\u786e<br \/>\n\u2705 \u7528\u6237\u6ce8\u518c &#8211; \u65b0\u7528\u6237\u901a\u8fc7\u9a8c\u8bc1\u7801\u5b8c\u6210\u6ce8\u518c<br \/>\n\u2705 \u7528\u6237\u767b\u5f55 &#8211; \u5df2\u6ce8\u518c\u7528\u6237\u901a\u8fc7\u9a8c\u8bc1\u7801\u767b\u5f55<br \/>\n\u2705 \u7cbe\u7f8e\u754c\u9762 &#8211; \u63d0\u4f9b\u767b\u5f55\u3001\u6ce8\u518c\u3001\u9996\u9875\u4e09\u4e2a\u9875\u9762<\/p>\n<p>\u7528\u6237\u6d41\u7a0b&#xff1a;<br \/>\n\u9996\u9875 \u2192 \u767b\u5f55\/\u6ce8\u518c \u2192 \u8f93\u5165\u624b\u673a\u53f7 \u2192 \u6536\u9a8c\u8bc1\u7801 \u2192 \u767b\u5f55\u6210\u529f \u2192 \u8fd4\u56de\u9996\u9875<\/p>\n<h3 id=\"\u6280\u672f\u6808\u9009\u62e9\">\u6280\u672f\u6808\u9009\u62e9<\/h3>\n<p>\u5de5\u6b32\u5584\u5176\u4e8b&#xff0c;\u5fc5\u5148\u5229\u5176\u5668\u3002\u6211\u4eec\u9009\u62e9\u4ee5\u4e0b\u6280\u672f\u6808&#xff1a;<\/p>\n<table>\n<tbody>\n<tr>\n<p>\u6280\u672f<\/p>\n<p>\u7248\u672c<\/p>\n<p>\u7528\u9014<\/p>\n<\/tr>\n<tr>\n<td>\n<p>Spring Boot<\/p>\n<\/td>\n<td>\n<p>3.2.5<\/p>\n<\/td>\n<td>\n<p>\u5e94\u7528\u6846\u67b6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Spring Data JPA<\/p>\n<\/td>\n<td>\n<p>3.2.5<\/p>\n<\/td>\n<td>\n<p>\u6570\u636e\u6301\u4e45\u5316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>H2 Database<\/p>\n<\/td>\n<td>\n<p>&#8211;<\/p>\n<\/td>\n<td>\n<p>\u5d4c\u5165\u5f0f\u6570\u636e\u5e93&#xff08;\u6f14\u793a\u7528&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Thymeleaf<\/p>\n<\/td>\n<td>\n<p>3.2.5<\/p>\n<\/td>\n<td>\n<p>\u6a21\u677f\u5f15\u64ce<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u963f\u91cc\u4e91 dypnsapi<\/p>\n<\/td>\n<td>\n<p>1.2.3<\/p>\n<\/td>\n<td>\n<p>\u77ed\u4fe1\u670d\u52a1 SDK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Java<\/p>\n<\/td>\n<td>\n<p>17<\/p>\n<\/td>\n<td>\n<p>\u7f16\u7a0b\u8bed\u8a00<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3a\u4ec0\u4e48\u9009\u62e9\u8fd9\u4e9b\u6280\u672f&#xff1f;<\/p>\n<li>\n<p>Spring Boot 3&#xff1a;\u6700\u65b0\u7684 Spring \u751f\u6001&#xff0c;\u652f\u6301 Java 17&#043;&#xff0c;\u5f00\u53d1\u6548\u7387\u6781\u9ad8<\/p>\n<\/li>\n<li>\n<p>\u963f\u91cc\u4e91\u77ed\u4fe1&#xff1a;\u56fd\u5185\u6700\u6210\u719f\u7684\u77ed\u4fe1\u670d\u52a1\u4e4b\u4e00&#xff0c;\u7a33\u5b9a\u6027\u6709\u4fdd\u969c<\/p>\n<\/li>\n<li>\n<p>H2&#xff1a;\u96f6\u914d\u7f6e\u5d4c\u5165\u5f0f\u6570\u636e\u5e93&#xff0c;\u6f14\u793a\u9879\u76ee\u7684\u4e0d\u4e8c\u4e4b\u9009<\/p>\n<\/li>\n<li>\n<p>Thymeleaf&#xff1a;\u81ea\u7136\u6a21\u677f&#xff0c;\u524d\u540e\u7aef\u4e0d\u5206\u79bb\u7684\u9879\u76ee\u9996\u9009<\/p>\n<\/li>\n<h3 id=\"\u7b2c\u4e00\u6b65\uff1a\u9879\u76ee\u521d\u59cb\u5316\">\u7b2c\u4e00\u6b65&#xff1a;\u9879\u76ee\u521d\u59cb\u5316<\/h3>\n<h4 id=\"1.1-\u521b\u5efa-maven-\u9879\u76ee\">1.1 \u521b\u5efa Maven \u9879\u76ee<\/h4>\n<p>\u9996\u5148&#xff0c;\u521b\u5efa\u4e00\u4e2a\u6807\u51c6\u7684 Spring Boot Maven \u9879\u76ee\u3002pom.xml \u4f9d\u8d56\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<br \/>\n&lt;project xmlns&#061;&#034;http:\/\/maven.apache.org\/POM\/4.0.0&#034;&gt;<br \/>\n    &lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;<\/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.2.5&lt;\/version&gt;<br \/>\n    &lt;\/parent&gt;<\/p>\n<p>    &lt;groupId&gt;com.example&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;aliyun-sms-demo&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;1.0.0&lt;\/version&gt;<\/p>\n<p>    &lt;properties&gt;<br \/>\n        &lt;java.version&gt;17&lt;\/java.version&gt;<br \/>\n    &lt;\/properties&gt;<\/p>\n<p>    &lt;dependencies&gt;<br \/>\n        &lt;!&#8211; Web &#8211;&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;<\/p>\n<p>        &lt;!&#8211; \u53c2\u6570\u6821\u9a8c &#8211;&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-validation&lt;\/artifactId&gt;<br \/>\n        &lt;\/dependency&gt;<\/p>\n<p>        &lt;!&#8211; JPA &#8211;&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-data-jpa&lt;\/artifactId&gt;<br \/>\n        &lt;\/dependency&gt;<\/p>\n<p>        &lt;!&#8211; H2 \u6570\u636e\u5e93 &#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;com.h2database&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;h2&lt;\/artifactId&gt;<br \/>\n            &lt;scope&gt;runtime&lt;\/scope&gt;<br \/>\n        &lt;\/dependency&gt;<\/p>\n<p>        &lt;!&#8211; \u6a21\u677f\u5f15\u64ce &#8211;&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-thymeleaf&lt;\/artifactId&gt;<br \/>\n        &lt;\/dependency&gt;<\/p>\n<p>        &lt;!&#8211; \u963f\u91cc\u4e91\u77ed\u4fe1 SDK &#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;com.aliyun&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;dypnsapi20170525&lt;\/artifactId&gt;<br \/>\n            &lt;version&gt;1.2.3&lt;\/version&gt;<br \/>\n        &lt;\/dependency&gt;<\/p>\n<p>        &lt;!&#8211; Lombok \u51cf\u5c11\u6837\u677f\u4ee3\u7801 &#8211;&gt;<br \/>\n        &lt;dependency&gt;<br \/>\n            &lt;groupId&gt;org.projectlombok&lt;\/groupId&gt;<br \/>\n            &lt;artifactId&gt;lombok&lt;\/artifactId&gt;<br \/>\n            &lt;optional&gt;true&lt;\/optional&gt;<br \/>\n        &lt;\/dependency&gt;<br \/>\n    &lt;\/dependencies&gt;<br \/>\n&lt;\/project&gt;<\/p>\n<h4 id=\"1.2-\u914d\u7f6e\u6587\u4ef6\">1.2 \u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u521b\u5efa application.yml \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>server:<br \/>\n  port: 8080<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: aliyun-sms-demo<br \/>\n  datasource:<br \/>\n    url: jdbc:h2:file:.\/data\/smsdb<br \/>\n    driver-class-name: org.h2.Driver<br \/>\n    username: sa<br \/>\n    password:<br \/>\n  jpa:<br \/>\n    hibernate:<br \/>\n      ddl-auto: update<br \/>\n    show-sql: true<br \/>\n  thymeleaf:<br \/>\n    cache: false<\/p>\n<p># \u963f\u91cc\u4e91\u77ed\u4fe1\u914d\u7f6e&#xff08;\u66ff\u6362\u4e3a\u4f60\u81ea\u5df1\u7684\u914d\u7f6e&#xff09;<br \/>\naliyun:<br \/>\n  sms:<br \/>\n    access-key-id: \u4f60\u7684AccessKey ID<br \/>\n    access-key-secret: \u4f60\u7684AccessKey Secret<br \/>\n    endpoint: dypnsapi.aliyuncs.com<br \/>\n    sign-name: \u4f60\u7684\u77ed\u4fe1\u7b7e\u540d<br \/>\n    template-code: \u4f60\u7684\u6a21\u677f\u7f16\u7801<br \/>\n    code-length: 6<br \/>\n    code-expire-seconds: 300<br \/>\n    send-interval-seconds: 60<\/p>\n<h3 id=\"\u7b2c\u4e8c\u6b65\uff1a\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0\">\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<h4 id=\"2.1-\u914d\u7f6e\u5c5e\u6027\u7c7b\">2.1 \u914d\u7f6e\u5c5e\u6027\u7c7b<\/h4>\n<p>\u4f7f\u7528 Spring Boot \u7684 &#064;ConfigurationProperties \u5c06\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u7ed1\u5b9a\u5230 Java \u5bf9\u8c61&#xff1a;<\/p>\n<p>&#064;Data<br \/>\n&#064;Component<br \/>\n&#064;ConfigurationProperties(prefix &#061; &#034;aliyun.sms&#034;)<br \/>\npublic class SmsProperties {<\/p>\n<p>    private String accessKeyId;<br \/>\n    private String accessKeySecret;<br \/>\n    private String endpoint;<br \/>\n    private String signName;<br \/>\n    private String templateCode;<\/p>\n<p>    private int codeLength &#061; 6;<br \/>\n    private long codeExpireSeconds &#061; 300;<br \/>\n    private long sendIntervalSeconds &#061; 60;<br \/>\n}<\/p>\n<p>\u8fd9\u6837&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u76f4\u63a5\u6ce8\u5165 SmsProperties \u6765\u83b7\u53d6\u914d\u7f6e&#xff0c;\u800c\u4e0d\u662f\u5230\u5904\u5199\u786c\u7f16\u7801\u7684\u914d\u7f6e\u503c\u3002<\/p>\n<h4 id=\"2.2-\u7528\u6237\u5b9e\u4f53\u7c7b\">2.2 \u7528\u6237\u5b9e\u4f53\u7c7b<\/h4>\n<p>\u5b9a\u4e49\u7528\u6237\u5b9e\u4f53&#xff0c;\u5bf9\u5e94\u6570\u636e\u5e93\u4e2d\u7684 users \u8868&#xff1a;<\/p>\n<p>&#064;Data<br \/>\n&#064;Entity<br \/>\n&#064;Table(name &#061; &#034;users&#034;)<br \/>\npublic class User {<\/p>\n<p>    &#064;Id<br \/>\n    &#064;GeneratedValue(strategy &#061; GenerationType.IDENTITY)<br \/>\n    private Long id;<\/p>\n<p>    &#064;Column(unique &#061; true, nullable &#061; false)<br \/>\n    private String phone;<\/p>\n<p>    &#064;Column(nullable &#061; false)<br \/>\n    private String nickname;<\/p>\n<p>    private LocalDateTime createTime;<br \/>\n    private LocalDateTime lastLoginTime;<\/p>\n<p>    &#064;PrePersist<br \/>\n    protected void onCreate() {<br \/>\n        createTime &#061; LocalDateTime.now();<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5173\u952e\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>&#064;Column(unique &#061; true)&#xff1a;\u786e\u4fdd\u624b\u673a\u53f7\u552f\u4e00<\/p>\n<\/li>\n<li>\n<p>&#064;PrePersist&#xff1a;\u5728\u5b9e\u4f53\u6301\u4e45\u5316\u524d\u81ea\u52a8\u8bbe\u7f6e\u521b\u5efa\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>LocalDateTime&#xff1a;JDK 8&#043; \u5f15\u5165\u7684\u73b0\u4ee3\u65e5\u671f\u65f6\u95f4 API<\/p>\n<\/li>\n<\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\u5728\u5f53\u4eca\u8fd9\u4e2a\u5feb\u8282\u594f\u7684\u6570\u5b57\u65f6\u4ee3&#xff0c;\u7528\u6237\u4f53\u9a8c\u5df2\u7ecf\u6210\u4e3a\u4ea7\u54c1\u6210\u529f\u7684\u5173\u952e\u56e0\u7d20\u4e4b\u4e00\u3002\u4f20\u7edf\u7684\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u65b9\u5f0f&#xff0c;\u867d\u7136\u5b89\u5168\u53ef\u9760&#xff0c;\u4f46\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4&#xff0c;\u6ce8\u518c\u6d41\u7a0b\u7e41\u7410\u3001\u8bb0\u5fc6\u5bc6\u7801\u56f0\u96be&#xff0c;\u5f80\u5f80\u662f\u7528\u6237\u6d41\u5931\u7684\u91cd\u707e\u533a\u3002\u800c\u624b\u673a\u53f7\u9a8c\u8bc1\u7801\u767b\u5f55&#xff0c;\u51ed\u501f\u5176\\&#8221;\u5373\u7528\u5373\u8d70\\&#8221;\u7684\u4fbf\u5229\u6027&#xff0c;\u5df2\u7ecf\u6210\u4e3a\u4e3b\u6d41\u5e94\u7528\u7684\u9996\u9009\u65b9\u6848\u3002\u4e0d\u7528\u6ce8\u518c\u3001\u4e0d\u7528\u8bb0\u5bc6\u7801\u3001\u8f93\u5165\u624b\u673a\u53f7\u6536\u4e2a\u9a8c\u8bc1\u7801\u5c31\u80fd\u767b\u5f55&#xff0c;\u4f53\u9a8c\u7b80\u76f4\u4e0d\u8981\u592a\u4e1d\u6ed1&#xff01;\u4eca\u5929&#xff0c;\u6211\u5c31\u5e26<\/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":[13178,868],"topic":[],"class_list":["post-117689","post","type-post","status-publish","format-standard","hentry","category-server","tag-1024---","tag-868"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \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\/117689.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00\u5728\u5f53\u4eca\u8fd9\u4e2a\u5feb\u8282\u594f\u7684\u6570\u5b57\u65f6\u4ee3&#xff0c;\u7528\u6237\u4f53\u9a8c\u5df2\u7ecf\u6210\u4e3a\u4ea7\u54c1\u6210\u529f\u7684\u5173\u952e\u56e0\u7d20\u4e4b\u4e00\u3002\u4f20\u7edf\u7684\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u65b9\u5f0f&#xff0c;\u867d\u7136\u5b89\u5168\u53ef\u9760&#xff0c;\u4f46\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4&#xff0c;\u6ce8\u518c\u6d41\u7a0b\u7e41\u7410\u3001\u8bb0\u5fc6\u5bc6\u7801\u56f0\u96be&#xff0c;\u5f80\u5f80\u662f\u7528\u6237\u6d41\u5931\u7684\u91cd\u707e\u533a\u3002\u800c\u624b\u673a\u53f7\u9a8c\u8bc1\u7801\u767b\u5f55&#xff0c;\u51ed\u501f\u5176&quot;\u5373\u7528\u5373\u8d70&quot;\u7684\u4fbf\u5229\u6027&#xff0c;\u5df2\u7ecf\u6210\u4e3a\u4e3b\u6d41\u5e94\u7528\u7684\u9996\u9009\u65b9\u6848\u3002\u4e0d\u7528\u6ce8\u518c\u3001\u4e0d\u7528\u8bb0\u5bc6\u7801\u3001\u8f93\u5165\u624b\u673a\u53f7\u6536\u4e2a\u9a8c\u8bc1\u7801\u5c31\u80fd\u767b\u5f55&#xff0c;\u4f53\u9a8c\u7b80\u76f4\u4e0d\u8981\u592a\u4e1d\u6ed1&#xff01;\u4eca\u5929&#xff0c;\u6211\u5c31\u5e26\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117689.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-24T22:48:28+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=\"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\/117689.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117689.html\",\"name\":\"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-24T22:48:28+00:00\",\"dateModified\":\"2026-10-24T22:48:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117689.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117689.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117689.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b\"}]},{\"@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":"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \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\/117689.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u8a00\u5728\u5f53\u4eca\u8fd9\u4e2a\u5feb\u8282\u594f\u7684\u6570\u5b57\u65f6\u4ee3&#xff0c;\u7528\u6237\u4f53\u9a8c\u5df2\u7ecf\u6210\u4e3a\u4ea7\u54c1\u6210\u529f\u7684\u5173\u952e\u56e0\u7d20\u4e4b\u4e00\u3002\u4f20\u7edf\u7684\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u65b9\u5f0f&#xff0c;\u867d\u7136\u5b89\u5168\u53ef\u9760&#xff0c;\u4f46\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4&#xff0c;\u6ce8\u518c\u6d41\u7a0b\u7e41\u7410\u3001\u8bb0\u5fc6\u5bc6\u7801\u56f0\u96be&#xff0c;\u5f80\u5f80\u662f\u7528\u6237\u6d41\u5931\u7684\u91cd\u707e\u533a\u3002\u800c\u624b\u673a\u53f7\u9a8c\u8bc1\u7801\u767b\u5f55&#xff0c;\u51ed\u501f\u5176\"\u5373\u7528\u5373\u8d70\"\u7684\u4fbf\u5229\u6027&#xff0c;\u5df2\u7ecf\u6210\u4e3a\u4e3b\u6d41\u5e94\u7528\u7684\u9996\u9009\u65b9\u6848\u3002\u4e0d\u7528\u6ce8\u518c\u3001\u4e0d\u7528\u8bb0\u5bc6\u7801\u3001\u8f93\u5165\u624b\u673a\u53f7\u6536\u4e2a\u9a8c\u8bc1\u7801\u5c31\u80fd\u767b\u5f55&#xff0c;\u4f53\u9a8c\u7b80\u76f4\u4e0d\u8981\u592a\u4e1d\u6ed1&#xff01;\u4eca\u5929&#xff0c;\u6211\u5c31\u5e26","og_url":"https:\/\/www.wsisp.com\/helps\/117689.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-24T22:48:28+00:00","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\/117689.html","url":"https:\/\/www.wsisp.com\/helps\/117689.html","name":"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-24T22:48:28+00:00","dateModified":"2026-10-24T22:48:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117689.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117689.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117689.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u7cfb\u7edf\uff1aSpring Boot + \u963f\u91cc\u4e91\u77ed\u4fe1\u5b9e\u6218\u6559\u7a0b"}]},{"@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\/117689","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=117689"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117689\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117689"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}