{"id":86120,"date":"2026-07-28T05:56:23","date_gmt":"2026-07-27T21:56:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86120.html"},"modified":"2026-07-28T05:56:23","modified_gmt":"2026-07-27T21:56:23","slug":"7%e6%9c%88spring%e7%94%9f%e6%80%81%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%b1%87%e6%80%bb-%e9%85%8d%e7%bd%ae%e3%80%81%e7%9b%91%e6%8e%a7%e4%b8%8e%e9%83%a8%e7%bd%b2%e7%9a%84%e9%81%bf","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86120.html","title":{"rendered":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355"},"content":{"rendered":"<h2>7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355<\/h2>\n<h3>\u4e00\u3001Spring\u751f\u6001\u57287\u6708\u7684\u53d8\u4e0e\u4e0d\u53d8<\/h3>\n<p>Spring Boot 3.3 \u57286\u6708\u5e95\u53d1\u5e03&#xff0c;Spring Cloud 2024.0 \u4e5f\u9010\u6b65\u7a33\u5b9a\u30027\u6708\u4efd\u56e2\u961f\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u5c06 Spring Boot \u4ece2.7\u5347\u7ea7\u52303.2\u3001\u5c06JDK\u4ece11\u5347\u7ea7\u523017&#xff0c;\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8e29\u4e86\u4e0d\u5c11\u5751\u3002\u540c\u65f6&#xff0c;\u4e0a\u534a\u5e74\u79ef\u7d2f\u7684\u914d\u7f6e\u3001\u76d1\u63a7\u548c\u90e8\u7f72\u65b9\u9762\u7684\u6700\u4f73\u5b9e\u8df5\u5728\u672c\u6708\u4e5f\u5f97\u5230\u4e86\u96c6\u4e2d\u9a8c\u8bc1\u3002<\/p>\n<p>\u672c\u6587\u5c06\u6309\u914d\u7f6e\u7ba1\u7406\u3001\u53ef\u89c2\u6d4b\u6027\u3001\u90e8\u7f72\u7b56\u7565\u3001\u5b89\u5168\u52a0\u56fa\u3001\u6027\u80fd\u4f18\u5316\u4e94\u4e2a\u7ef4\u5ea6&#xff0c;\u9010\u6761\u5217\u51fa7\u6708\u4efd\u9a8c\u8bc1\u8fc7\u7684\u6700\u4f73\u5b9e\u8df5\u4e0e\u5bf9\u5e94\u7684\u907f\u5751\u8981\u70b9\u3002<\/p>\n<h3>\u4e8c\u3001\u914d\u7f6e\u7ba1\u7406&#xff1a;7\u6708\u4efd\u6700\u9700\u8981\u5173\u6ce8\u76845\u4e2a\u5b9e\u8df5<\/h3>\n<p>\u5b9e\u8df5\u4e00&#xff1a;application.yml \u7684\u5c42\u6b21\u5316\u7ba1\u7406<\/p>\n<p>Spring Boot\u9879\u76ee\u5f88\u5bb9\u6613\u51fa\u73b0\u4e00\u4e2a\u4e0a\u5343\u884c\u7684application.yml\u2014\u2014\u914d\u7f6e\u6df7\u4e71\u3001\u96be\u4ee5\u7406\u89e3\u3001\u5bb9\u6613\u51fa\u9519\u3002\u63a8\u8350\u4f7f\u7528\u4ee5\u4e0b\u5206\u5c42\u7ed3\u6784&#xff1a;<\/p>\n<p>application.yml              # \u516c\u5171\u914d\u7f6e&#xff08;\u6781\u5c11&#xff0c;\u53ea\u6709spring.application.name\u7b49&#xff09;<br \/>\napplication-dev.yml          # \u5f00\u53d1\u73af\u5883<br \/>\napplication-staging.yml      # \u9884\u53d1\u73af\u5883<br \/>\napplication-prod.yml         # \u751f\u4ea7\u73af\u5883<\/p>\n<p>\u5173\u952e\u539f\u5219&#xff1a;\u516c\u5171\u914d\u7f6e\u653ebase\u3001\u73af\u5883\u5dee\u5f02\u653eprofile\u3001\u673a\u623f\u95f4\u5dee\u5f02\u653e\u5916\u90e8\u914d\u7f6e\u4e2d\u5fc3&#xff08;Nacos\/Apollo&#xff09;\u3002<\/p>\n<p>\u5b9e\u8df5\u4e8c&#xff1a;\u654f\u611f\u4fe1\u606f\u7ba1\u7406\u7684\u6b63\u786e\u65b9\u5f0f<\/p>\n<p>7\u6708\u4efd\u5904\u7406\u4e86\u4e24\u6b21\u914d\u7f6e\u6cc4\u9732\u7684\u9669\u60c5\u2014\u2014\u5f00\u53d1\u4eba\u5458\u8bef\u5c06\u6570\u636e\u5e93\u5bc6\u7801\u63d0\u4ea4\u5230Git\u3002\u6b63\u786e\u7684\u505a\u6cd5\u6709\u4e24\u79cd&#xff1a;<\/p>\n<ul>\n<li>\u65b9\u6848A&#xff08;\u63a8\u8350&#xff09;&#xff1a;\u4f7f\u7528\u914d\u7f6e\u4e2d\u5fc3\u7684\u52a0\u5bc6\u5b58\u50a8\u80fd\u529b&#xff0c;\u5982Nacos\u7684\u914d\u7f6e\u52a0\u5bc6\u3001Vault\u7684Secret\u7ba1\u7406\u3002<\/li>\n<li>\u65b9\u6848B&#xff1a;\u4f7f\u7528Jasypt\u52a0\u5bc6\u654f\u611f\u914d\u7f6e&#xff0c;\u5bc6\u94a5\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6ce8\u5165\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u57fa\u4e8eJasypt\u7684\u654f\u611f\u914d\u7f6e\u52a0\u5bc6\u5b9e\u73b0&#xff1a;<\/p>\n<p>\/**<br \/>\n * Jasypt \u914d\u7f6e\u52a0\u5bc6\u7ec4\u4ef6<br \/>\n * \u5bc6\u94a5\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6ce8\u5165&#xff0c;\u4e0d\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u660e\u6587\u5b58\u50a8<br \/>\n *\/<br \/>\n&#064;Configuration<br \/>\npublic class JasyptConfig {<\/p>\n<p>    \/**<br \/>\n     * \u63d0\u4f9b\u52a0\u5bc6\u5668&#xff0c;\u5bc6\u94a5\u4ece\u73af\u5883\u53d8\u91cf JASYPT_ENCRYPTOR_PASSWORD \u8bfb\u53d6<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    public StringEncryptor stringEncryptor() {<br \/>\n        PooledPBEStringEncryptor encryptor &#061; new PooledPBEStringEncryptor();<br \/>\n        SimpleStringPBEConfig config &#061; new SimpleStringPBEConfig();<\/p>\n<p>        String password &#061; System.getenv(&#034;JASYPT_ENCRYPTOR_PASSWORD&#034;);<br \/>\n        if (password &#061;&#061; null || password.isEmpty()) {<br \/>\n            throw new IllegalStateException(<br \/>\n                    &#034;\u73af\u5883\u53d8\u91cf JASYPT_ENCRYPTOR_PASSWORD \u672a\u8bbe\u7f6e&#xff0c;\u52a0\u5bc6\u5668\u65e0\u6cd5\u521d\u59cb\u5316&#034;);<br \/>\n        }<\/p>\n<p>        config.setPassword(password);<br \/>\n        config.setAlgorithm(&#034;PBEWithHmacSHA512AndAES_256&#034;);<br \/>\n        config.setPoolSize(4);<br \/>\n        config.setKeyObtentionIterations(1000);<br \/>\n        config.setProviderName(&#034;SunJCE&#034;);<br \/>\n        config.setSaltGeneratorClassName(&#034;org.jasypt.salt.RandomSaltGenerator&#034;);<br \/>\n        config.setIvGeneratorClassName(&#034;org.jasypt.iv.RandomIvGenerator&#034;);<br \/>\n        config.setStringOutputType(&#034;base64&#034;);<\/p>\n<p>        encryptor.setConfig(config);<br \/>\n        return encryptor;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5b9e\u8df5\u4e09&#xff1a;&#064;ConfigurationProperties \u66ff\u4ee3 &#064;Value<\/p>\n<p>&#064;Value \u7684\u75db\u70b9\u5728\u4e8e&#xff1a;\u7c7b\u578b\u4e0d\u5b89\u5168&#xff08;\u6240\u6709\u503c\u90fd\u662fString&#xff09;\u3001\u65e0\u6cd5\u505a\u6821\u9a8c\u3001\u5206\u6563\u5728\u4ee3\u7801\u5404\u5904\u96be\u4ee5\u7ba1\u7406\u30027\u6708\u4efd\u5168\u9762\u63a8\u5e7f\u4e86&#064;ConfigurationProperties &#043; &#064;Validated\u7684\u7ec4\u5408&#xff1a;<\/p>\n<p>\/**<br \/>\n * \u4f7f\u7528 &#064;ConfigurationProperties \u505a\u7c7b\u578b\u5b89\u5168\u7684\u914d\u7f6e\u7ed1\u5b9a<br \/>\n * \u914d\u5408 &#064;Validated \u505a\u542f\u52a8\u65f6\u7684\u914d\u7f6e\u6821\u9a8c<br \/>\n *\/<br \/>\n&#064;Data<br \/>\n&#064;ConfigurationProperties(prefix &#061; &#034;app.payment&#034;)<br \/>\n&#064;Validated<br \/>\npublic class PaymentProperties {<\/p>\n<p>    \/**<br \/>\n     * \u652f\u4ed8\u8d85\u65f6\u65f6\u95f4&#xff08;\u79d2&#xff09;&#xff0c;\u6700\u5c0f5\u79d2&#xff0c;\u6700\u59273600\u79d2<br \/>\n     *\/<br \/>\n    &#064;Min(5)<br \/>\n    &#064;Max(3600)<br \/>\n    private int timeoutSeconds &#061; 300;<\/p>\n<p>    \/**<br \/>\n     * \u5141\u8bb8\u7684\u652f\u4ed8\u65b9\u5f0f\u5217\u8868&#xff0c;\u9017\u53f7\u5206\u9694<br \/>\n     *\/<br \/>\n    &#064;NotEmpty(message &#061; &#034;\u652f\u4ed8\u65b9\u5f0f\u5217\u8868\u4e0d\u80fd\u4e3a\u7a7a&#034;)<br \/>\n    private List&lt;String&gt; allowedMethods;<\/p>\n<p>    \/**<br \/>\n     * \u5fae\u4fe1\u652f\u4ed8\u5546\u6237\u914d\u7f6e<br \/>\n     *\/<br \/>\n    &#064;NotNull<br \/>\n    &#064;Valid<br \/>\n    private WechatPayConfig wechatPay;<\/p>\n<p>    &#064;Data<br \/>\n    public static class WechatPayConfig {<br \/>\n        &#064;NotBlank<br \/>\n        private String mchId;<\/p>\n<p>        &#064;NotBlank<br \/>\n        private String apiV3Key;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5b9e\u8df5\u56db&#xff1a;\u914d\u7f6e\u70ed\u5237\u65b0\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<p>\u5728\u4f7f\u7528Nacos\u4f5c\u4e3a\u914d\u7f6e\u4e2d\u5fc3\u65f6&#xff0c;&#064;RefreshScope\u6ce8\u89e3\u5f88\u65b9\u4fbf\u4f46\u6709\u4e24\u4e2a\u9677\u9631&#xff1a;<\/p>\n<li>&#064;RefreshScope\u4f1a\u4e3a\u6bcf\u4e2aBean\u521b\u5efa\u4e00\u4e2a\u4ee3\u7406&#xff0c;\u5927\u91cf\u4f7f\u7528\u4f1a\u6709\u6027\u80fd\u5f00\u9500\u3002\u5efa\u8bae\u53ea\u5bf9\u771f\u6b63\u9700\u8981\u52a8\u6001\u5237\u65b0\u7684Bean\u4f7f\u7528\u3002<\/li>\n<li>\u90e8\u5206\u7ec4\u4ef6&#xff08;\u5982\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u3001Redis\u8fde\u63a5\u5de5\u5382&#xff09;\u5237\u65b0\u540e\u4e0d\u4f1a\u91cd\u5efa\u5e95\u5c42\u8fde\u63a5&#xff0c;\u9700\u8981\u989d\u5916\u7684\u9500\u6bc1\u548c\u91cd\u5efa\u903b\u8f91\u3002<\/li>\n<p>\u5b9e\u8df5\u4e94&#xff1a;Spring Boot 3.2\u4e2dspring.config.import\u7684\u53d8\u5316<\/p>\n<p>\u4ece2.7\u5347\u7ea7\u52303.2\u540e&#xff0c;spring.config.import\u7684\u884c\u4e3a\u6709\u6240\u6539\u53d8\u2014\u2014\u4e0d\u518d\u652f\u6301configtree:\u524d\u7f00\u3002\u5982\u679c\u4f60\u7684\u914d\u7f6e\u4e2d\u4f7f\u7528\u4e86\u8fd9\u4e2a\u7279\u6027&#xff0c;\u9700\u8981\u8fc1\u79fb\u5230spring.config.import: configserver:\u6216\u76f4\u63a5\u4f7f\u7528Nacos\/Apollo\u7b49\u914d\u7f6e\u4e2d\u5fc3\u3002<\/p>\n<h3>\u4e09\u3001\u53ef\u89c2\u6d4b\u6027&#xff1a;Micrometer\u6210\u4e3a\u4e8b\u5b9e\u6807\u51c6<\/h3>\n<p>\u5b9e\u8df5\u516d&#xff1a;\u4eceSleuth\u8fc1\u79fb\u5230Micrometer Tracing<\/p>\n<p>Spring Cloud 2022.0&#xff08;Spring Boot 3.x \u5bf9\u5e94\u7248\u672c&#xff09;\u4e2dSleuth\u88ab\u5e9f\u5f03&#xff0c;\u5168\u9762\u8f6c\u5411Micrometer Tracing\u3002\u8fc1\u79fb\u7684\u6838\u5fc3\u4ee3\u7801\u53d8\u66f4&#xff1a;<\/p>\n<ul>\n<li>\u4f9d\u8d56\u4ecespring-cloud-starter-sleuth\u6539\u4e3amicrometer-tracing-bridge-brave\u3002<\/li>\n<li>TraceId\u548cSpanId\u7684\u6ce8\u5165\u65b9\u5f0f\u6539\u4e3aObservation API\u3002<\/li>\n<li>\u81ea\u5b9a\u4e49Span\u4ece&#064;NewSpan\u6ce8\u89e3\u6539\u4e3aObservationRegistry\u7f16\u7a0b\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<p>\u5b9e\u8df5\u4e03&#xff1a;\u7ed3\u6784\u5316\u65e5\u5fd7\u7684\u89c4\u8303\u683c\u5f0f<\/p>\n<p>7\u6708\u4efd\u7edf\u4e00\u4e86\u6240\u6709\u670d\u52a1\u7684\u65e5\u5fd7\u683c\u5f0f&#xff0c;\u4f7f\u7528Logback\u7684JSON\u683c\u5f0f\u8f93\u51fa&#xff0c;\u4fbf\u4e8eElasticsearch\u4e2d\u7684\u68c0\u7d22\u548c\u805a\u5408\u5206\u6790\u3002\u5173\u952e\u5b57\u6bb5\u5305\u62ec&#xff1a;timestamp\u3001level\u3001service\u3001traceId\u3001spanId\u3001class\u3001message\u3001exception\u3002<\/p>\n<p>\u5b9e\u8df5\u516b&#xff1a;Health Indicator\u7684\u5206\u7ea7\u7b56\u7565<\/p>\n<p>Spring Boot Actuator\u7684\/health\u7aef\u70b9\u9ed8\u8ba4\u662f\u4e8c\u503c&#xff08;UP\/DOWN&#xff09;&#xff0c;\u4f46\u5b9e\u9645\u4e0a\u670d\u52a1\u53ef\u80fd\u6709&#034;\u964d\u7ea7\u53ef\u7528&#034;\u7684\u72b6\u6001\u3002\u5efa\u8bae\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684HealthIndicator&#xff0c;\u5c06\u6307\u6807\u5206\u4e3aUP&#xff08;\u5065\u5eb7&#xff09;\u3001DEGRADED&#xff08;\u964d\u7ea7&#xff09;\u3001DOWN&#xff08;\u4e0d\u53ef\u7528&#xff09;\u4e09\u7ea7&#xff0c;\u5e76\u5728\u8d1f\u8f7d\u5747\u8861\u5668\u4e0a\u505a\u5bf9\u5e94\u7684\u6d41\u91cf\u8def\u7531\u3002<\/p>\n<h3>\u56db\u3001\u90e8\u7f72\u7b56\u7565&#xff1a;\u5bb9\u5668\u5316\u4e0e\u542f\u52a8\u4f18\u5316<\/h3>\n<p>\u5b9e\u8df5\u4e5d&#xff1a;Docker\u955c\u50cf\u7684\u5206\u5c42\u6784\u5efa<\/p>\n<p>Spring Boot 3.2\u5f15\u5165\u4e86spring-boot-maven-plugin\u7684layertools\u6a21\u5f0f&#xff0c;\u53ef\u4ee5\u5c06\u5e94\u7528\u62c6\u5206\u4e3a\u4f9d\u8d56\u5c42\u3001Snapshot\u4f9d\u8d56\u5c42\u3001\u8d44\u6e90\u5c42\u548c\u5e94\u7528\u5c42&#xff0c;\u5927\u5e45\u63d0\u5347Docker\u6784\u5efa\u7684\u7f13\u5b58\u547d\u4e2d\u7387\u30027\u6708\u4efd\u9a8c\u8bc1\u540e&#xff0c;CI\/CD\u6d41\u6c34\u7ebf\u4e2d\u7684\u955c\u50cf\u6784\u5efa\u65f6\u95f4\u4ece3\u5206\u949f\u964d\u81f340\u79d2\u3002<\/p>\n<p>\u5b9e\u8df5\u5341&#xff1a;\u61d2\u52a0\u8f7d\u7684\u660e\u667a\u4f7f\u7528<\/p>\n<p>spring.main.lazy-initialization&#061;true\u53ef\u4ee5\u663e\u8457\u51cf\u5c11\u542f\u52a8\u65f6\u95f4&#xff0c;\u4f46\u4f1a\u5bfc\u81f4\u4ee5\u4e0b\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>\u914d\u7f6e\u9519\u8bef\u5728\u9996\u6b21\u8bbf\u95ee\u65f6\u624d\u66b4\u9732&#xff08;\u800c\u975e\u542f\u52a8\u65f6&#xff09;\u3002<\/li>\n<li>\u4e0e&#064;EventListener\u3001&#064;Scheduled\u7b49\u673a\u5236\u7684\u517c\u5bb9\u6027\u9700\u8981\u5355\u72ec\u9a8c\u8bc1\u3002<\/li>\n<\/ul>\n<p>\u5efa\u8bae&#xff1a;\u5f00\u53d1\u73af\u5883\u4e0b\u5f00\u542f\u61d2\u52a0\u8f7d\u4ee5\u52a0\u901f\u542f\u52a8&#xff0c;\u751f\u4ea7\u73af\u5883\u9ed8\u8ba4\u5173\u95ed&#xff0c;\u4ec5\u5bf9\u975e\u6838\u5fc3\u94fe\u8def&#xff08;\u5982\u5b9a\u65f6\u4efb\u52a1\u3001\u540e\u53f0\u62a5\u8868&#xff09;\u6309\u9700\u5f00\u542f\u3002<\/p>\n<h3>\u4e94\u3001\u907f\u5751\u6e05\u5355\u2014\u20147\u6708\u4efd\u7684\u8840\u6cea\u7ecf\u9a8c<\/h3>\n<p>\u4ee5\u4e0b\u662f7\u6708\u5347\u7ea7Spring Boot 3.2\u8fc7\u7a0b\u4e2d\u9047\u5230\u76845\u4e2a\u5751&#xff1a;<\/p>\n<li>javax \u2192 jakarta \u8fc1\u79fb\u4e0d\u5b8c\u6574&#xff1a;\u90e8\u5206\u7b2c\u4e09\u65b9\u4f9d\u8d56\u7684Servlet Filter\u4ecd\u4f7f\u7528javax.servlet\u5305\u540d&#xff0c;\u9700\u8981\u786e\u8ba4\u6240\u6709\u4f9d\u8d56\u90fd\u5df2\u5347\u7ea7\u5230jakarta\u7248\u672c\u3002<\/li>\n<li>Spring Security 6\u7684\u9ed8\u8ba4\u884c\u4e3a\u53d8\u66f4&#xff1a;authorizeHttpRequests\u7684\u5339\u914d\u987a\u5e8f\u4eceANT\u98ce\u683c\u53d8\u4e3a\u66f4\u4e3a\u4e25\u683c\u7684\u65b9\u5f0f&#xff0c;\u9700\u8981\u9010\u4e2a\u63a5\u53e3\u9a8c\u8bc1\u3002<\/li>\n<li>Actuator\u7aef\u70b9\u66b4\u9732\u8fc7\u5ea6&#xff1a;\u751f\u4ea7\u73af\u5883\u5fd8\u8bb0\u9650\u5236\/actuator\/env\u548c\/actuator\/configprops\u7684\u66b4\u9732&#xff0c;\u5bfc\u81f4\u914d\u7f6e\u4fe1\u606f\u6cc4\u9732\u3002\u52a1\u5fc5\u5c06management.endpoints.web.exposure.include\u9650\u5236\u4e3ahealth,info,metrics,prometheus\u3002<\/li>\n<li>FeignClient\u7684URL\u914d\u7f6e\u9057\u6f0f&#xff1a;\u4eceSpring Cloud Hoxton\u5347\u7ea7\u540e&#xff0c;&#064;FeignClient\u7684url\u5c5e\u6027\u4e0d\u518d\u81ea\u52a8\u4ece\u914d\u7f6e\u4e2d\u5fc3\u8bfb\u53d6&#xff0c;\u9700\u8981\u5728application.yml\u4e2d\u663e\u5f0f\u914d\u7f6e\u3002<\/li>\n<li>\u865a\u62df\u7ebf\u7a0b\u4e0eThreadLocal\u4e0d\u517c\u5bb9&#xff1a;JDK 21\u7684\u865a\u62df\u7ebf\u7a0b\u5728Spring Boot 3.2\u4e2d\u5df2\u53ef\u901a\u8fc7spring.threads.virtual.enabled&#061;true\u5f00\u542f&#xff0c;\u4f46\u5927\u91cf\u4f7f\u7528ThreadLocal\u7684\u4ee3\u7801\u6bb5\u5728\u865a\u62df\u7ebf\u7a0b\u4e0a\u8868\u73b0\u5f02\u5e38\u2014\u2014\u56e0\u4e3aThreadLocal\u5728\u865a\u62df\u7ebf\u7a0b\u4e2d\u4e0d\u4f1a\u88ab\u81ea\u52a8\u6e05\u7406\u3002<\/li>\n<p>\u603b\u7ed3&#xff1a;Spring\u751f\u6001\u7684\u6700\u4f73\u5b9e\u8df5\u4e0d\u662f\u4e00\u6210\u4e0d\u53d8\u7684\u2014\u2014\u6bcf\u4e2a\u5b63\u5ea6\u90fd\u6709\u65b0\u7684\u6700\u4f73\u5b9e\u8df5\u6d8c\u73b0&#xff0c;\u65e7\u7684\u5b9e\u8df5\u88ab\u6dd8\u6c70\u30027\u6708\u4efd\u7684\u6838\u5fc3\u8ba4\u77e5\u662f&#xff1a;\u914d\u7f6e\u7ba1\u7406\u8981\u5206\u5c42\u3001\u53ef\u89c2\u6d4b\u6027\u8981\u7edf\u4e00\u3001\u90e8\u7f72\u8981\u5bb9\u5668\u5316\u3001\u5b89\u5168\u8981\u9ed8\u8ba4\u5173\u95ed\u3001\u6027\u80fd\u4f18\u5316\u8981\u57fa\u4e8e\u6570\u636e\u800c\u975e\u76f4\u89c9\u3002 \u628a\u8fd9\u4e94\u70b9\u505a\u597d&#xff0c;\u5c31\u80fd\u8986\u76d680%\u7684Spring\u5e94\u7528\u8d28\u91cf\u75db\u70b9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355<br \/>\n\u4e00\u3001Spring\u751f\u6001\u57287\u6708\u7684\u53d8\u4e0e\u4e0d\u53d8<br \/>\nSpring Boot 3.3 \u57286\u6708\u5e95\u53d1\u5e03&#xff0c;Spring Cloud 2024.0 \u4e5f\u9010\u6b65\u7a33\u5b9a\u30027\u6708\u4efd\u56e2\u961f\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u5c06 Spring Boot \u4ece2.7\u5347\u7ea7\u52303.2\u3001\u5c06JDK\u4ece11\u5347\u7ea7\u523017&#xff0c;\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8e29\u4e86\u4e0d\u5c11\u5751\u3002\u540c\u65f6&#xff0c;\u4e0a\u534a\u5e74\u79ef\u7d2f\u7684\u914d\u7f6e\u3001\u76d1\u63a7\u548c\u90e8\u7f72\u65b9\u9762\u7684\u6700\u4f73\u5b9e\u8df5\u5728\u672c\u6708\u4e5f\u5f97\u5230\u4e86\u96c6\u4e2d\u9a8c\u8bc1\u3002<br \/>\n\u672c\u6587\u5c06\u6309\u914d\u7f6e\u7ba1\u7406\u3001\u53ef\u89c2\u6d4b\u6027\u3001\u90e8\u7f72\u7b56\u7565\u3001\u5b89\u5168<\/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,101,1348],"topic":[],"class_list":["post-86120","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-spring","tag-1348"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \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\/86120.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 \u4e00\u3001Spring\u751f\u6001\u57287\u6708\u7684\u53d8\u4e0e\u4e0d\u53d8 Spring Boot 3.3 \u57286\u6708\u5e95\u53d1\u5e03&#xff0c;Spring Cloud 2024.0 \u4e5f\u9010\u6b65\u7a33\u5b9a\u30027\u6708\u4efd\u56e2\u961f\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u5c06 Spring Boot \u4ece2.7\u5347\u7ea7\u52303.2\u3001\u5c06JDK\u4ece11\u5347\u7ea7\u523017&#xff0c;\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8e29\u4e86\u4e0d\u5c11\u5751\u3002\u540c\u65f6&#xff0c;\u4e0a\u534a\u5e74\u79ef\u7d2f\u7684\u914d\u7f6e\u3001\u76d1\u63a7\u548c\u90e8\u7f72\u65b9\u9762\u7684\u6700\u4f73\u5b9e\u8df5\u5728\u672c\u6708\u4e5f\u5f97\u5230\u4e86\u96c6\u4e2d\u9a8c\u8bc1\u3002 \u672c\u6587\u5c06\u6309\u914d\u7f6e\u7ba1\u7406\u3001\u53ef\u89c2\u6d4b\u6027\u3001\u90e8\u7f72\u7b56\u7565\u3001\u5b89\u5168\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86120.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T21:56:23+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\/86120.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86120.html\",\"name\":\"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T21:56:23+00:00\",\"dateModified\":\"2026-07-27T21:56:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86120.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86120.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86120.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355\"}]},{\"@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":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \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\/86120.html","og_locale":"zh_CN","og_type":"article","og_title":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 \u4e00\u3001Spring\u751f\u6001\u57287\u6708\u7684\u53d8\u4e0e\u4e0d\u53d8 Spring Boot 3.3 \u57286\u6708\u5e95\u53d1\u5e03&#xff0c;Spring Cloud 2024.0 \u4e5f\u9010\u6b65\u7a33\u5b9a\u30027\u6708\u4efd\u56e2\u961f\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u5c06 Spring Boot \u4ece2.7\u5347\u7ea7\u52303.2\u3001\u5c06JDK\u4ece11\u5347\u7ea7\u523017&#xff0c;\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8e29\u4e86\u4e0d\u5c11\u5751\u3002\u540c\u65f6&#xff0c;\u4e0a\u534a\u5e74\u79ef\u7d2f\u7684\u914d\u7f6e\u3001\u76d1\u63a7\u548c\u90e8\u7f72\u65b9\u9762\u7684\u6700\u4f73\u5b9e\u8df5\u5728\u672c\u6708\u4e5f\u5f97\u5230\u4e86\u96c6\u4e2d\u9a8c\u8bc1\u3002 \u672c\u6587\u5c06\u6309\u914d\u7f6e\u7ba1\u7406\u3001\u53ef\u89c2\u6d4b\u6027\u3001\u90e8\u7f72\u7b56\u7565\u3001\u5b89\u5168","og_url":"https:\/\/www.wsisp.com\/helps\/86120.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T21:56:23+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\/86120.html","url":"https:\/\/www.wsisp.com\/helps\/86120.html","name":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T21:56:23+00:00","dateModified":"2026-07-27T21:56:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86120.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86120.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86120.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"7\u6708Spring\u751f\u6001\u6700\u4f73\u5b9e\u8df5\u6c47\u603b\u2014\u2014\u914d\u7f6e\u3001\u76d1\u63a7\u4e0e\u90e8\u7f72\u7684\u907f\u5751\u6e05\u5355"}]},{"@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\/86120","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=86120"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86120\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86120"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}