{"id":634,"date":"2023-03-23T21:42:05","date_gmt":"2023-03-23T13:42:05","guid":{"rendered":""},"modified":"2023-03-23T21:42:05","modified_gmt":"2023-03-23T13:42:05","slug":"SpringCloud Config Server","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/634.html","title":{"rendered":"SpringCloud Config Server"},"content":{"rendered":"


\n <\/head>
\n <\/p>\n

\n

SpringCloud Config Server<\/h1>\n<\/p><\/div>\n
\n \u6b65\u9aa41: <\/strong>\u4f7f\u7528Spring Initializr\u521b\u5efa\u4e00\u4e2aMaven\u9879\u76ee https:\/\/start.spring.io\/\n <\/div>\n
\n \u6b65\u9aa42: <\/strong>\u9009\u62e9Spring Boot\u7248\u672c
\n 2.2 .0 M6 <\/strong>\u6216\u66f4\u9ad8\u7248\u672c\u3002\u4e0d\u8981\u9009\u62e9\u5feb\u7167\u7248\u672c\u3002\n <\/div>\n
\n \u6b65\u9aa43: <\/strong>\u63d0\u4f9b
\n Group<\/strong>\u540d\u79f0\u3002\u5728\u6211\u4eec\u7684\u793a\u4f8b\u4e2d\uff0c\u4e3a
\n com.lidihuo.microservices\u3002<\/strong>\n <\/div>\n
\n \u6b65\u9aa44: <\/strong>\u63d0\u4f9b
\n Artifact id<\/strong>\u3002\u6211\u4eec\u63d0\u4f9b\u4e86
\n spring-cloud-config-server\u3002<\/strong>\n <\/div>\n

SpringCloud Config Server_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c1\u5f20 <\/p>\n

\n \u6b65\u9aa45: <\/strong>\u6dfb\u52a0
\n Spring Boot DevTools <\/strong>\u548c
\n Config Server <\/strong>\u4f9d\u8d56\u6027\u3002\n <\/div>\n

SpringCloud Config Server_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c2\u5f20 <\/p>\n

\n \u6b65\u9aa46: <\/strong>\u70b9\u51fb
\n \u751f\u6210\u9879\u76ee<\/strong>\u6309\u94ae\u3002\u5c06\u4e0b\u8f7d\u4e00\u4e2azip\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u89e3\u538b\u7f29\u5230\u786c\u76d8\u4e2d\u3002\n <\/div>\n
\n \u6b65\u9aa47: <\/strong>\u73b0\u5728\uff0c\u6253\u5f00
\n eclipse\u3002<\/strong>\u5bfc\u5165\u4e0b\u8f7d\u7684maven\u9879\u76ee\u3002\u5b83\u5c06\u4e0b\u8f7d\u6240\u9700\u7684\u6587\u4ef6\u3002\n <\/div>\n
\n \u5728\u4e0b\u4e00\u6b65\u4e2d\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Git\u5b58\u50a8\u5e93\uff0c\u5e76\u914d\u7f6espring cloud\u914d\u7f6e\u670d\u52a1\u5668\u4ee5\u4ece\u7279\u5b9a\u7684Git\u5b58\u50a8\u5e93\u4e2d\u83b7\u53d6\u503c\u3002\u6211\u4eec\u9700\u8981\u5b89\u88c5\u672c\u5730Git\u3002\n <\/div>\n

\u5b89\u88c5Git\u5e76\u521b\u5efa\u672c\u5730\u5b58\u50a8\u5e93<\/h2>\n
\n \u6b65\u9aa41: <\/strong>\u4ece https:\/\/git-scm.com\/\u5e76\u5b89\u88c5\u5b83\u3002\n <\/div>\n
\n \u6b65\u9aa42: <\/strong>\u521b\u5efa\u4e00\u4e2aGit\u5b58\u50a8\u5e93\u5e76\u5b58\u50a8\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u914d\u7f6e\u9650\u5236\u670d\u52a1\u7684\u6587\u4ef6\u3002\u6211\u4eec\u5c06\u5c1d\u8bd5\u4ecespring-cloud-config-server\u8bbf\u95ee\u5b83\u4eec\u3002\u6253\u5f00Git bash\u5e76\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4:\n <\/div>\n
\n \u521b\u5efa\u65b0\u76ee\u5f55:\n <\/div>\n
\n
\r\nmkdir git-localconfig-repo\r\ncd git-localconfig-repo\/\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u521d\u59cb\u5316\u65b0\u7684Git\u5b58\u50a8\u5e93:\n <\/div>\n
\n
\r\ngit init\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u5b83\u521d\u59cb\u5316\u4e00\u4e2a
\n \u7a7a<\/strong> git\u5b58\u50a8\u5e93\u3002\n <\/div>\n
\n \u6b65\u9aa43: <\/strong>\u73b0\u5728\u79fb\u5230
\n spring-cloud-config-server <\/strong>\u9879\u76ee\uff0c\u7136\u540e\u6dfb\u52a0\u6307\u5411\u7279\u5b9a\u6587\u4ef6\u5939\u7684\u94fe\u63a5\u3002\n <\/div>\n

\u53f3\u952e\u5355\u51fb spring-cloud-config-server <\/strong>\u9879\u76ee\u3002<\/strong> <\/span>
\n \u70b9\u51fb\u6784\u5efa\u8def\u5f84<\/strong>-> \u914d\u7f6e\u6784\u5efa\u8def\u5f84<\/strong>\u2026<\/span>
\n \u9009\u62e9\u6765\u6e90<\/strong>\u6807\u7b7e\u3002<\/span>
\n \u70b9\u51fb\u94fe\u63a5\u6e90<\/strong>\uff0c\u7136\u540e\u6d4f\u89c8\u6587\u4ef6\u5939 git-localconfig-repo <\/strong>\u3002<\/span>
\n \u53f3\u952e\u5355\u51fb\u6587\u4ef6\u5939-> \u65b0\u5efa<\/strong>-> \u5176\u4ed6<\/strong>-> \u6587\u4ef6<\/strong>-> \u4e0b\u4e00\u6b65<\/strong>->\u63d0\u4f9b\u6587\u4ef6\u540d: limits-service-properties <\/strong>-> \u5b8c\u6210<\/strong>\u3002<\/span>
\n \u73b0\u5728\u5728\u5c5e\u6027\u6587\u4ef6\u4e2d\u7f16\u5199\u4ee5\u4e0b\u4ee3\u7801: <\/span> <\/p>\n

\n
\r\nlimits-service.minimum=8\r\nlimits-service.maximum=888\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u6b65\u9aa44: <\/strong>\u914d\u7f6e\u7528\u6237\u540d\u548c\u7528\u6237\u7535\u5b50\u90ae\u4ef6:\n <\/div>\n
\n
\r\ngit config -global user.email abc@example.com\r\ngit config -global user.name \"abc\"<\/span>\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u8be5\u547d\u4ee4\u63d0\u4ea4\u4f7f\u7528git add\u547d\u4ee4\u6dfb\u52a0\u7684\u4efb\u4f55\u6587\u4ef6\uff0c\u4e5f\u63d0\u4ea4\u6b64\u540e\u66f4\u6539\u7684\u6587\u4ef6\u3002\n <\/div>\n
\n
\r\ngit add -A\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u73b0\u5728\u6267\u884c\u547d\u4ee4\u4ee5\u63d0\u4ea4\u5b58\u50a8\u5e93\u4e2d\u7684\u66f4\u6539\u3002\u5b83\u5728\u7248\u672c\u5386\u53f2\u8bb0\u5f55\u4e2d\u6c38\u4e45\u8bb0\u5f55\u6216\u5feb\u7167\u6587\u4ef6\u3002\n <\/div>\n
\n
\r\ngit commit -m \"first commit\"<\/span>\r\n<\/pre>\n

<\/code>\n <\/div>\n

SpringCloud Config Server_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c3\u5f20 <\/p>\n

\n \u6211\u4eec\u53ef\u4ee5\u770b\u5230\u6587\u4ef6\u662f\u66f4\u6539\u4e86\u4e24\u4e2a\u65b0\u8bf4\u660e\u3002\u8fd9\u4e9b\u8bf4\u660e\u5728\u672c\u5730\u5b58\u50a8\u5e93\u4e2d\u5df2\u66f4\u6539\u3002\n <\/div>\n
\n

<\/body>
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"SpringCloud Config Serverzh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-634","post","type-post","status-publish","format-standard","hentry","category-bc_springcloud_jc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/634"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=634"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/634\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}