{"id":40136,"date":"2022-12-12T10:28:46","date_gmt":"2023-03-08T19:10:08","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-29T04:55:29","modified_gmt":"2024-04-28T20:55:29","slug":"%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5"},"content":{"rendered":"<h1>\u603b\u7ed3<\/h1>\n<p>\u6211\u53d1\u73b0\u4e86\u4e00\u4e2a\u7c7b\u4f3c\u4e8eNetflix Chaos Monkey\u7684\u540d\u4e3aChaos Monkey for Spring Boot\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u968f\u673a\u4ea7\u751f\u9519\u8bef\u3002\u4e8e\u662f\u6211\u51b3\u5b9a\u8bd5\u7528\u4e00\u4e0b\u3002<\/p>\n<h2>\u6587\u4ef6<\/h2>\n<h2>\u89e3\u8bf4\u89c6\u9891<\/h2>\n<p>\u5728\u516c\u5f0f\u6587\u6863\u4e2d\u53ef\u4ee5\u627e\u5230\u3002<\/p>\n<h2>github<\/h2>\n<h1>\u89e3\u91ca<\/h1>\n<p>Spring Boot\u7684\u6df7\u6c8c\u7334\u80fd\u591f\u968f\u673a\u5f15\u53d1\u4ee5\u4e0b\u4e09\u79cd\u9519\u8bef<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u901f\u5ea6\u9045\u5ef6<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4f8b\u5916\u767a\u751f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Spring Boot\u306e\u505c\u6b62<\/ul>\n<p>\u5176\u4ed6\u4e3b\u8981\u529f\u80fd\u5982\u4e0b\uff1a<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u969c\u5bb3\u3092\u767a\u751f\u3055\u305b\u308b\u983b\u5ea6(10%\u5358\u4f4d)\u3092\u6307\u5b9a\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u901f\u5ea6\u9045\u5ef6\u6642\u9593\u306e\u7bc4\u56f2(\u5358\u4f4dms)\u3092\u6307\u5b9a\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u969c\u5bb3\u3092\u767a\u751f\u3055\u305b\u308bBean\u306e\u7a2e\u985e(@Controller, @Service, @Component\u306a\u3069)\u3092\u6307\u5b9a\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Chaos Monkey\u306e\u6709\u52b9\/\u7121\u52b9\u3084\u8a2d\u5b9a\u306f\u3001actuator\u7d4c\u7531\u3067\u5909\u66f4\u3067\u304d\u308b<\/ul>\n<h2>\u5d4c\u5165\u65b9\u5f0f \u0261r\u00f9 \u0261sh\u00ec)<\/h2>\n<p>Spring Boot\u7684\u6df7\u6c8c\u7334\u5b50\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e09\u4e2a\u6b65\u9aa4\u8fdb\u884c\u5f15\u5165\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pom\u306b\u4f9d\u5b58\u8ffd\u52a0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">active profiles\u306e\u6307\u5b9a<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">application\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u306e\u8a2d\u5b9a\u8ffd\u52a0<\/ul>\n<h3>\u6dfb\u52a0\u4f9d\u8d56\u5230pom\u6587\u4ef6<\/h3>\n<pre class=\"post-pre\"><code>&lt;dependency&gt;\r\n    &lt;groupId&gt;de.codecentric&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;chaos-monkey-spring-boot&lt;\/artifactId&gt;\r\n    &lt;version&gt;2.0.0&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u4f7f\u7528SNAPSHOT\uff0c\u8bf7\u53c2\u8003\u6587\u6863\u4e2d\u7684Snapshots\u3002<\/p>\n<h3>\u6d3b\u8dc3\u6863\u6848\u7684\u8bbe\u5b9a<\/h3>\n<p>\u5c06active profiles\u6307\u5b9a\u4e3achaos-monkey\u3002<\/p>\n<p>\u5982\u679c\u8981\u5728application.properties\u4e2d\u6307\u5b9a\uff1a<\/p>\n<pre class=\"post-pre\"><code>spring.profiles.active=chaos-monkey\r\n<\/code><\/pre>\n<p>\u5982\u679c\u5728Spring Boot\u542f\u52a8\u65f6\u9700\u8981\u6307\u5b9a\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<pre class=\"post-pre\"><code>java -jar your-app.jar --spring.profiles.active=chaos-monkey\r\n<\/code><\/pre>\n<h3>\u6dfb\u52a0application\u5c5e\u6027\u7684\u8bbe\u7f6e<\/h3>\n<p>\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528actuator\u6765\u66f4\u6539\uff0c\u5c06chaos.monkey.enabled\u914d\u7f6e\u5230application.properties\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u5728application.properties\u6587\u4ef6\u4e2d\uff1a<\/p>\n<pre class=\"post-pre\"><code>chaos.monkey.enabled=true\r\n<\/code><\/pre>\n<p>\u5982\u679c\u662fapplication.xml\u6587\u4ef6\uff1a<\/p>\n<pre class=\"post-pre\"><code>chaos:\r\n  monkey:\r\n    enabled: true\r\n<\/code><\/pre>\n<p>\u5982\u679c\u901a\u8fc7\u6267\u884c\u5668\u8fdb\u884c\u8bbe\u7f6e\u7684\u8bdd\uff1a<\/p>\n<p>\u5982\u679c\u8981\u4f7f\u7528actuator\uff0c\u8bf7\u53c2\u8003\u4e0b\u4e00\u7ae0\u7684&#8221;\u4f7f\u7528actuator\u8fdb\u884c\u914d\u7f6e\u786e\u8ba4\u548c\u66f4\u6539&#8221;\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4e09\u4e2a\u8bbe\u7f6e\uff08pom \u3001active profiles\u548capplication.properties\uff09\uff0cChaos Monkey\u5c06\u88ab\u542f\u7528\u3002<\/p>\n<h3>\u8bf7\u786e\u8ba4\u542f\u52a8<\/h3>\n<p>\u5f53\u542f\u52a8Spring Boot\u65f6\uff0c\u542f\u52a8\u65e5\u5fd7\u4e2d\u4f1a\u663e\u793a\u4ee5\u4e0b\u7684AA\u3002<\/p>\n<pre class=\"post-pre\"><code>     _____ _                       __  __             _\r\n    \/ ____| |                     |  \\\/  |           | |\r\n   | |    | |__   __ _  ___  ___  | \\  \/ | ___  _ __ | | _____ _   _\r\n   | |    | '_ \\ \/ _` |\/ _ \\\/ __| | |\\\/| |\/ _ \\| '_ \\| |\/ \/ _ | | | |\r\n   | |____| | | | (_| | (_) \\__ \\ | |  | | (_) | | | |   |  __| |_| |\r\n    \\_____|_| |_|\\__,_|\\___\/|___\/ |_|  |_|\\___\/|_| |_|_|\\_\\___|\\__, |\r\n                                                                __\/ |\r\n    _ready to do evil!                                         |___\/\r\n\r\n:: Chaos Monkey for Spring Boot                                    ::\r\n<\/code><\/pre>\n<h2>\u63d0\u793a<\/h2>\n<h3>\u6539\u53d8\u53d1\u751f\u969c\u788d\u7684\u9891\u7387<\/h3>\n<p>\u969c\u5bb3\u7684\u53d1\u751f\u9891\u7387\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u5c5e\u6027\uff08level\uff09\u8fdb\u884c\u8bbe\u5b9a\u3002\u969c\u5bb3\u53d1\u751f\u7387\u53ef\u4ee5\u75281-10\u7684\u6570\u5b57\uff0c\u6bcf10%\u4e3a\u4e00\u4e2a\u5355\u4f4d\uff0c\u8fdb\u884c\u6307\u5b9a\u3002<\/p>\n<ul class=\"post-ul\">1\u306f\u767a\u751f\u738710%\u300110\u306f\u767a\u751f\u7387100%<\/ul>\n<h3>\u8bf7\u9009\u62e9\u53d1\u751f\u6545\u969c\u7684\u7c7b\u578b\u3002<\/h3>\n<div>\n<div class=\"post-table\">\u7a2e\u985e\u5185\u5bb9\u30d7\u30ed\u30d1\u30c6\u30a3\u9045\u5ef6\u6307\u5b9a\u3057\u305f\u6642\u9593(ms)\u306e\u7bc4\u56f2\u3067\u30ec\u30a4\u30c6\u30f3\u30b7\u3092\u60aa\u5316\u3055\u305b\u307e\u3059latencyActive\u4f8b\u5916Exception\u3092\u767a\u751f\u3055\u305b\u307e\u3059exceptionsActive\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c0\u30a6\u30f3Spring Boot\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u505c\u6b62\u3057\u307e\u3059killApplicationActive<\/div>\n<\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u9045\u5ef6\u306e\u969c\u5bb3\u306f\u3001\u9045\u5ef6\u7bc4\u56f2\u958b\u59cb(latencyRangeStart)\u3068\u9045\u5ef6\u7bc4\u56f2\u505c\u6b62(latencyRangeEnd)\u306b\u6307\u5b9a\u3057\u305f\u30df\u30ea\u79d2\u306e\u6570\u5024\u306e\u7bc4\u56f2\u3067\u30e9\u30f3\u30c0\u30e0\u3067\u9045\u5ef6\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u4e2d\u8eab\u306fThread.sleep\u3067\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4f8b\u5916\u306e\u969c\u5bb3\u306f\u3001RuntimeException(&#8220;Chaos Monkey &#8211; RuntimeException&#8221;)\u3092\u767a\u751f\u3055\u305b\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c0\u30a6\u30f3\u306f\u3001Spring Boot Application\u3092exitCode0\u3067\u7d42\u4e86\u3055\u305b\u307e\u3059\u3002<\/ul>\n<h3>\u5bfc\u81f4\u969c\u788d\u53d1\u751f\u7684\u5730\u65b9<\/h3>\n<p>\u5728watcherProperties\u4e2d\u53ef\u4ee5\u6307\u5b9a\u5bfc\u81f4\u6545\u969c\u7684\u4f4d\u7f6e\u3002\u6211\u4eec\u901a\u8fc7\u626b\u63cf\u5e26\u6709\u4ee5\u4e0b\u6ce8\u89e3\u7684\u7c7b\u6765\u9009\u62e9\u5bfc\u81f4\u6545\u969c\u7684\u76ee\u6807\u3002<\/p>\n<div>\n<div class=\"post-table\">\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3Right align<a class=\"user-mention js-hovercard\" title=\"Controller\" href=\"\/Controller\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"Controller\">@Controller<\/a>controller<a class=\"user-mention js-hovercard\" title=\"RestController\" href=\"\/RestController\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"RestController\">@RestController<\/a>restController<a class=\"user-mention js-hovercard\" title=\"Service\" href=\"\/Service\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"Service\">@Service<\/a>service<a class=\"user-mention js-hovercard\" title=\"Repository\" href=\"\/Repository\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"Repository\">@Repository<\/a>repository<a class=\"user-mention js-hovercard\" title=\"Component\" href=\"\/Component\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"Component\">@Component<\/a>component<\/div>\n<\/div>\n<p>\u5982\u679cWatcher\u7684\u6240\u6709\u8bbe\u5b9a\u90fd\u662ffalse\uff0c\u90a3\u4e48\u8bf7\u6ce8\u610fChaos Monkey\u5c06\u4e0d\u4f1a\u8fd0\u884c\u3002<\/p>\n<h3>\u4f7f\u7528\u52a8\u4f5c\u5668\u8fdb\u884c\u8bbe\u7f6e\u786e\u8ba4\u548c\u8bbe\u7f6e\u53d8\u66f4\u3002<\/h3>\n<h4>\u542f\u7528actuator\u529f\u80fd<\/h4>\n<p>\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u6765\u901a\u8fc7\u6267\u884c\u5668\u66f4\u6539Chaos Monkey\u7684\u8bbe\u7f6e\u3002<\/p>\n<p>\u5982\u679c\u662fapplication.properties\u7684\u60c5\u51b5\u4e0b:<\/p>\n<pre class=\"post-pre\"><code>management.endpoint.chaosmonkey.enabled=true\r\nmanagement.endpoints.web.exposure.include=chaosmonkey\r\n<\/code><\/pre>\n<p>\u5982\u679c\u662fapplication.xml\u6587\u4ef6\uff1a<\/p>\n<pre class=\"post-pre\"><code>management:\r\n  endpoint:\r\n    chaosmonkey:\r\n      enabled: true\r\n  endpoints:\r\n    web:\r\n      exposure:\r\n        include: chaosmonkey\r\n<\/code><\/pre>\n<h4>\u786e\u8ba4\u4e00\u4e0bChaos Monkey\u7684\u8bbe\u7f6e\u3002<\/h4>\n<h5>\u6307\u4ee4<\/h5>\n<pre class=\"post-pre\"><code>curl http:\/\/localhost:8080\/actuator\/chaosmonkey\r\n<\/code><\/pre>\n<h5>\u7ed3\u679c<\/h5>\n<p>\u7b54\u6848<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"chaosMonkeyProperties\": {\r\n    \"enabled\": false\r\n  },\r\n  \"assaultProperties\": {\r\n    \"level\": 5,\r\n    \"latencyRangeStart\": 1000,\r\n    \"latencyRangeEnd\": 3000,\r\n    \"latencyActive\": true,\r\n    \"exceptionsActive\": false,\r\n    \"killApplicationActive\": false\r\n  },\r\n  \"watcherProperties\": {\r\n    \"controller\": false,\r\n    \"restController\": false,\r\n    \"service\": true,\r\n    \"repository\": false,\r\n    \"component\": true\r\n  }\r\n}\r\n<\/code><\/pre>\n<h4>\u542f\u7528\u6df7\u6c8c\u7334<\/h4>\n<p>\u5982\u679c&#8221;chaosMonkeyProperties.enabled&#8221;\u88ab\u8bbe\u7f6e\u4e3afalse\uff0c\u90a3\u4e48Chaos Monkey\u5c06\u88ab\u7981\u7528\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7actuator\u5c06\u5176\u4fee\u6539\u4e3atrue\u3002<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"chaosMonkeyProperties\": {\r\n    \"enabled\": false\r\n  },\r\n  ...\r\n}\r\n<\/code><\/pre>\n<h5>\u547d\u4ee4 (Ming4 ling4)<\/h5>\n<pre class=\"post-pre\"><code>curl -X POST -H \"Content-type: application\/json\" http:\/\/localhost:8080\/actuator\/chaosmonkey\/enable\r\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610fPOST\u8bf7\u6c42\u7684\u7c7b\u578b<br \/>\n\u8bf7\u6ce8\u610fContent-type\u8bbe\u7f6e\u4e3aapplication\/json<\/p>\n<h5>\u7ed3\u679c &#8211;<\/h5>\n<p>Alternatively:<br \/>\n\u6700\u7ec8\u7684\u6210\u679c &#8211; de .<\/p>\n<pre class=\"post-pre\"><code>Chaos Monkey is enabled\r\n<\/code><\/pre>\n<h4>\u4fee\u6539\u5176\u4ed6\u9879\u76ee\uff08\u88ad\u51fb\uff09\u3002<\/h4>\n<p>\u5176\u4ed6\u9879\u76ee\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u5668\u8fdb\u884c\u66f4\u6539\u3002\u4ee5\u4e0b\u662f\u66f4\u6539\u201cAssault\u201d\u7684\u793a\u4f8b\u3002<\/p>\n<h5>\u6307\u4ee4<\/h5>\n<pre class=\"post-pre\"><code>curl -X POST -H \"Content-type: application\/json\" http:\/\/localhost:8080\/actuator\/chaosmonkey\/assaults -d '{\r\n    \"level\": 5,\r\n    \"latencyRangeStart\": 1000,\r\n    \"latencyRangeEnd\": 3000,\r\n    \"latencyActive\": true,\r\n    \"exceptionsActive\": false,\r\n    \"killApplicationActive\": false\r\n  }'\r\n<\/code><\/pre>\n<h4>\u7ed3\u679c<\/h4>\n<p>As an AI language model, I can provide multiple options for paraphrasing the word &#8220;\u7ed3\u679c&#8221; in Chinese:<\/p>\n<p>&#8211; \u6210\u679c<br \/>\n&#8211; \u5b8c\u6210\u7684\u6548\u679c de<br \/>\n&#8211; \u7ec8\u5c40<br \/>\n&#8211; \u8f93\u51fa<br \/>\n&#8211; \u540e\u679c<\/p>\n<p>Please let me know if you would like more options or if you have any specific requirements.<\/p>\n<pre class=\"post-pre\"><code>Assault config has changed\r\n<\/code><\/pre>\n<h1>\u603b\u7ed3<\/h1>\n<p>\u4e0a\u8ff0\u662fChaos Monkey for Spring Boot\u7684\u7b80\u6613\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u603b\u7ed3 \u6211\u53d1\u73b0\u4e86\u4e00\u4e2a\u7c7b\u4f3c\u4e8eNetflix Chaos Monkey\u7684\u540d\u4e3aChaos Monkey for Spr [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40136","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u603b\u7ed3 \u6211\u53d1\u73b0\u4e86\u4e00\u4e2a\u7c7b\u4f3c\u4e8eNetflix Chaos Monkey\u7684\u540d\u4e3aChaos Monkey for Spr [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-08T19:10:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T20:55:29+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\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.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/\",\"name\":\"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-08T19:10:08+00:00\",\"dateModified\":\"2024-04-28T20:55:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5","og_description":"\u603b\u7ed3 \u6211\u53d1\u73b0\u4e86\u4e00\u4e2a\u7c7b\u4f3c\u4e8eNetflix Chaos Monkey\u7684\u540d\u4e3aChaos Monkey for Spr [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-08T19:10:08+00:00","article_modified_time":"2024-04-28T20:55:29+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/","name":"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-08T19:10:08+00:00","dateModified":"2024-04-28T20:55:29+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Spring Boot\u7684\u6df7\u4e71\u7334\u5b50\u7684\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e7%9a%84%e6%b7%b7%e4%b9%b1%e7%8c%b4%e5%ad%90%e7%9a%84%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40136"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40136\/revisions"}],"predecessor-version":[{"id":83171,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40136\/revisions\/83171"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}