{"id":8547,"date":"2024-04-27T10:01:01","date_gmt":"2024-04-27T02:01:01","guid":{"rendered":""},"modified":"2024-04-27T10:01:01","modified_gmt":"2024-04-27T02:01:01","slug":"\u3010\u5fae\u670d\u52a1~\u539f\u59cb\u771f\u89e3\u3011Spring Cloud \u2014\u2014 \u914d\u7f6e\u7ed1\u5b9a\u548c\u914d\u7f6e\u5c5e\u6027\u6821\u9a8c","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8547.html","title":{"rendered":"\u3010\u5fae\u670d\u52a1~\u539f\u59cb\u771f\u89e3\u3011Spring Cloud \u2014\u2014 \u914d\u7f6e\u7ed1\u5b9a\u548c\u914d\u7f6e\u5c5e\u6027\u6821\u9a8c"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\"\u3010\u5fae\u670d\u52a1~\u539f\u59cb\u771f\u89e3\u3011Spring<\/p>\n

??\u8fd9\u91cc\u662f\u3010\u79d2\u61c2\u00b7\u4e91\u539f\u751f\u3011\uff0c\u5173\u6ce8\u6211\u5b66\u4e60\u4e91\u539f\u751f\u4e0d\u8ff7\u8def
??\u5982\u679c\u5bf9\u4f60\u6709\u5e2e\u52a9\uff0c\u7ed9\u535a\u4e3b\u4e00\u4e2a\u514d\u8d39\u7684\u70b9\u8d5e\u4ee5\u793a\u9f13\u52b1
\u6b22\u8fce\u5404\u4f4d??\u70b9\u8d5e??\u8bc4\u8bba\u6536\u85cf<\/p>\n

??\u4e13\u680f\u4ecb\u7ecd<\/h2>\n

\u3010\u79d2\u61c2\u00b7\u4e91\u539f\u751f\u3011<\/strong> \u76ee\u524d\u4e3b\u8981\u66f4\u65b0\u5fae\u670d\u52a1\uff0c\u4e00\u8d77\u5b66\u4e60\u4e00\u8d77\u8fdb\u6b65\u3002<\/p>\n

??\u672c\u671f\u4ecb\u7ecd<\/h2>\n

\u4e3b\u8981\u4ecb\u7ecdSpring Cloud \u2014\u2014 \u914d\u7f6e\u7ed1\u5b9a\u548c\u914d\u7f6e\u5c5e\u6027\u6821\u9a8c<\/p>\n

\u6587\u7ae0\u76ee\u5f55<\/h4>\n
    \n
  • ??\u4e13\u680f\u4ecb\u7ecd<\/li>\n
  • ??\u672c\u671f\u4ecb\u7ecd<\/li>\n
  • \u914d\u7f6e\u7ed1\u5b9a<\/li>\n
  • \n
      \n
    • \u5148\u5efa\u7acb\u6570\u636e\u914d\u7f6e\u6587\u4ef6<\/li>\n
    • @ConfigurationProperties<\/li>\n
    • @Value<\/li>\n
    • \n
        \n
      • \u7b2c\u4e00\u79cd @Value(\u201c${}\u201d)<\/li>\n
      • \u7b2c\u4e8c\u79cd@Value(\u201c#{}\u201d)<\/li>\n<\/ul>\n<\/li>\n
      • @PropertySource<\/li>\n
      • \u914d\u7f6e\u5c5e\u6027\u6821\u9a8c<\/li>\n
      • @Value \u4e0e @ConfigurationProperties\u5bf9\u6bd4<\/li>\n
      • \n
          \n
        • 1. \u4f7f\u7528\u4f4d\u7f6e\u4e0d\u540c<\/li>\n
        • 2. \u529f\u80fd\u4e0d\u540c<\/li>\n
        • 3. \u677e\u6563\u7ed1\u5b9a\u652f\u6301\u4e0d\u540c<\/li>\n
        • 4. SpEL \u652f\u6301\u4e0d\u540c<\/li>\n
        • 5. \u590d\u6742\u7c7b\u578b\u5c01\u88c5<\/li>\n
        • 6.\u5c5e\u6027\u6821\u9a8c<\/li>\n
        • 7. \u5e94\u7528\u573a\u666f\u4e0d\u540c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n

          \u914d\u7f6e\u7ed1\u5b9a<\/h2>\n

          \u6240\u8c13\u201c\u914d\u7f6e\u7ed1\u5b9a\u201d\u5c31\u662f\u628a\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u503c\u4e0e JavaBean \u4e2d\u5bf9\u5e94\u7684\u5c5e\u6027\u8fdb\u884c\u7ed1\u5b9a\u3002\u901a\u5e38\uff0c\u6211\u4eec\u4f1a\u628a\u4e00\u4e9b\u914d\u7f6e\u4fe1\u606f\uff08\u4f8b\u5982\uff0c\u6570\u636e\u5e93\u914d\u7f6e\uff09\u653e\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u7136\u540e\u901a\u8fc7 Java \u4ee3\u7801\u53bb\u8bfb\u53d6\u8be5\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u4e14\u628a\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u914d\u7f6e\u5c01\u88c5\u5230 JavaBean\uff08\u5b9e\u4f53\u7c7b\uff09 \u4e2d\u3002
          SpringBoot \u63d0\u4f9b\u4e86\u4ee5\u4e0b 2 \u79cd\u65b9\u5f0f\u8fdb\u884c\u914d\u7f6e\u7ed1\u5b9a\uff1a<\/strong><\/p>\n

            \n
          • \u4f7f\u7528 @ConfigurationProperties \u6ce8\u89e3<\/li>\n
          • \u4f7f\u7528 @Value \u6ce8\u89e3<\/li>\n<\/ul>\n

            \u5148\u5efa\u7acb\u6570\u636e\u914d\u7f6e\u6587\u4ef6<\/h3>\n

            application.yml<\/<\/p>\n","protected":false},"excerpt":{"rendered":"\u3010\u5fae\u670d\u52a1~\u539f\u59cb\u771f\u89e3\u3011Spring Cloud \u2014\u2014 \u914d\u7f6e\u7ed1\u5b9a\u548c\u914d\u7f6e\u5c5e\u6027\u6821\u9a8c??\u8fd9\u91cc\u662f\u3010\u79d2\u61c2\u00b7\u4e91\u539f\u751f\u3011\uff0c\u5173\u6ce8\u6211\u5b66\u4e60\u4e91\u539f\u751f\u4e0d\u8ff7\u8def??\u5982\u679c\u5bf9\u4f60\u6709...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8547"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8547"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8547\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}