{"id":4008,"date":"2021-11-26T11:31:09","date_gmt":"2021-11-26T03:31:09","guid":{"rendered":"http:\/\/123.57.164.21\/?p=4008"},"modified":"2021-11-26T11:31:09","modified_gmt":"2021-11-26T03:31:09","slug":"cloud-native-%e4%b8%8e-spring-cloud-%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5_%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=4008","title":{"rendered":"Cloud native \u4e0e Spring Cloud \u6700\u4f73\u5b9e\u8df5_\u7b80\u4ecb"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">\u73af\u5883\u4f9d\u8d56<\/h5>\n\n\n\n<ol><li>OpenJDK 11<\/li><li>Eclipse(STS 4.12+) \u6216 Intellij IDEA 2020.3.2+<\/li><li>Docker Desktop 4.0+ \u6216 Podman 3.3+<\/li><li>Postgres 12.8<\/li><li>Spring Boot 2.5.5<\/li><li>Spring Cloud 2020.0.4<\/li><li>OpenShift (\u672c\u5730 4.8.5\/CRC 1.32.1, \u7ebf\u4e0a 4.8.11)<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#\u73af\u5883\u4f9d\u8d56\"><\/a><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u5fae\u670d\u52a1\u6a21\u5757<a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#\u5fae\u670d\u52a1\u6a21\u5757\">\u200b<\/a><\/h5>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/11\/image-3-1024x698.png\" alt=\"\" class=\"wp-image-4011\" width=\"645\" height=\"439\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-1024x698.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-300x204.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-768x523.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-1536x1046.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-830x565.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-230x157.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-350x238.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3-480x327.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-3.png 1600w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#\u5df2\u77e5\u95ee\u9898\"><\/a><\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u67b6\u6784\u56fe<a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#\u67b6\u6784\u56fe\">\u200b<\/a><\/h5>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/11\/image-4-1024x566.png\" alt=\"\" class=\"wp-image-4012\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-1024x566.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-300x166.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-768x425.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-1536x850.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-830x459.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-230x127.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-350x194.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4-480x266.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-4.png 1616w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/11\/image-5-1024x776.png\" alt=\"\" class=\"wp-image-4013\" width=\"662\" height=\"501\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-1024x776.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-300x227.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-768x582.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-1536x1164.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-830x629.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-230x174.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-350x265.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5-480x364.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/11\/image-5.png 1570w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">\u672c\u5730\u5f00\u53d1\u6700\u4f73\u5b9e\u8df5<\/h5>\n\n\n\n<ol><li>\u8fdb\u5165 xxxCloud \u6839\u76ee\u5f55, <code>docker-compose up -d postgres<\/code> \u542f\u52a8 postgres<\/li><li>\u542f\u52a8 gateway \u670d\u52a1 (required)<\/li><li>\u542f\u52a8 user api (required)<\/li><li>\u542f\u52a8 product-compose api (optional)<\/li><li>\u542f\u52a8 product api (optional\uff0c\u6309\u9700\u542f\u52a8)<\/li><li>\u542f\u52a8 review api (optional\uff0c\u6309\u9700\u542f\u52a8)<\/li><li>\u8fdb\u5165\u5230 xxxAdmin \u9879\u76ee\uff0c <code>yarn dev<\/code> \u542f\u52a8\u524d\u7aef<\/li><\/ol>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#\u672c\u5730\u5f00\u53d1\u6700\u4f73\u5b9e\u8df5\"><\/a><\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">Commit Lint \u89c4\u8303<a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#commit-lint-\u89c4\u8303\">\u200b<\/a><\/h5>\n\n\n\n<p>commit message \u7684\u6807\u51c6\u683c\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">type(scope?): subject\nscope is optional; multiple scopes are supported (current delimiter options: \"\/\", \"\\\" and \",\")<\/pre>\n\n\n\n<p>\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"fix(scope): your commit message\"\n\"chore: run tests on travis ci\"\n\"fix(server): send cors headers\"\n\"feat(blog): add comment section\"<\/pre>\n\n\n\n<p>type:<\/p>\n\n\n\n<p><code>build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test, wip<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Build<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/doc-jrecloud-dev.roks-iip-48-2029222ed72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud\/docs\/intro#build\">\u200b<\/a><\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\n$ mvn -B clean install -DskipTests=true -pl common\n-> ~\\.m2\\repository\\com\\ibm\\jrecloud\\common\\1.0.0\\common-1.0.0.jar\n\n$ mvn -B clean package -DskipTests=true -pl spring-cloud\/gateway\n-> &lt;PROJECT_ROOT>\\spring-cloud\\gateway\\target\\gateway-1.0.0.jar\n\n$ mvn -B clean package -DskipTests=true -pl microservices\/product-api\n-> &lt;PROJECT_ROOT>\\microservices\\product-api\\target\\product-api-1.0.0.jar\n\n$ mvn -B clean package -DskipTests=true -pl microservices\/product-composite-api\n-> &lt;PROJECT_ROOT>\\microservices\\product-api\\target\\product-composite-api-1.0.0.jar\n\n$ mvn -B clean package -DskipTests=true -pl microservices\/review-api\n-> &lt;PROJECT_ROOT>\\microservices\\review-api\\target\\review-api-1.0.0.jar\n\n$ mvn -B clean package -DskipTests=true -pl microservices\/user-api\n-> &lt;PROJECT_ROOT>\\microservices\\user-api\\user\\user-api-1.0.0.jar\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\u4f9d\u8d56 OpenJDK 11 Eclipse(STS 4.12+) \u6216 Intellij IDEA 2020 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4008"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4008"}],"version-history":[{"count":5,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4008\/revisions"}],"predecessor-version":[{"id":4016,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4008\/revisions\/4016"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}