{"id":4709,"date":"2020-02-03T18:38:26","date_gmt":"2020-02-03T10:38:26","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=4709"},"modified":"2020-02-03T18:38:26","modified_gmt":"2020-02-03T10:38:26","slug":"%e6%8b%92%e7%bb%9d-kill-9%ef%bc%8c%e6%8b%92%e7%bb%9d%e6%9a%b4%e5%8a%9b%ef%bc%8c%e6%95%99%e4%bd%a0-5-%e4%b8%ad%e6%96%b9%e5%bc%8f%e4%bc%98%e9%9b%85%e7%9a%84%e5%81%9c%e6%ad%a2-springboot-%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4709","title":{"rendered":"\u62d2\u7edd kill -9\uff0c\u62d2\u7edd\u66b4\u529b\uff0c\u6559\u4f60 5 \u4e2d\u65b9\u5f0f\u4f18\u96c5\u7684\u505c\u6b62 SpringBoot \u670d\u52a1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u4f7f\u7528 SpringBoot \u7684\u65f6\u5019\uff0c\u90fd\u8981\u6d89\u53ca\u5230\u670d\u52a1\u7684\u505c\u6b62\u548c\u542f\u52a8\uff0c\u5f53\u6211\u4eec\u505c\u6b62\u670d\u52a1\u7684\u65f6\u5019\uff0c\u5f88\u591a\u65f6\u5019\u5927\u5bb6\u90fd\u662fkill -9 \u76f4\u63a5\u628a\u7a0b\u5e8f\u8fdb\u7a0b\u6740\u6389\uff0c\u8fd9\u6837\u7a0b\u5e8f\u4e0d\u4f1a\u6267\u884c\u4f18\u96c5\u7684\u5173\u95ed\u3002\u800c\u4e14\u4e00\u4e9b\u6ca1\u6709\u6267\u884c\u5b8c\u7684\u7a0b\u5e8f\u5c31\u4f1a\u76f4\u63a5\u9000\u51fa\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5f88\u591a\u65f6\u5019\u90fd\u9700\u8981\u5b89\u5168\u7684\u5c06\u670d\u52a1\u505c\u6b62\uff0c\u4e5f\u5c31\u662f\u628a\u6ca1\u6709\u5904\u7406\u5b8c\u7684\u5de5\u4f5c\u7ee7\u7eed\u5904\u7406\u5b8c\u6210\u3002\u6bd4\u5982\u505c\u6b62\u4e00\u4e9b\u4f9d\u8d56\u7684\u670d\u52a1\uff0c\u8f93\u51fa\u4e00\u4e9b\u65e5\u5fd7\uff0c\u53d1\u4e00\u4e9b\u4fe1\u53f7\u7ed9\u5176\u4ed6\u7684\u5e94\u7528\u7cfb\u7edf\uff0c\u8fd9\u4e2a\u5728\u4fdd\u8bc1\u7cfb\u7edf\u7684\u9ad8\u53ef\u7528\u662f\u975e\u5e38\u6709\u5fc5\u8981\u7684\u3002\u90a3\u4e48\u54b1\u4e48\u5c31\u6765\u770b\u4e00\u4e0b\u51e0\u79cd\u505c\u6b62 SpringBoot \u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\u79cd\u5c31\u662f SpringBoot \u63d0\u4f9b\u7684actuator\u7684\u529f\u80fd\uff0c\u5b83\u53ef\u4ee5\u6267\u884cshutdown, health, info \u7b49\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cactuator \u7684 shutdown \u662f disable \u7684\uff0c\u6211\u4eec\u9700\u8981\u6253\u5f00\u5b83\u3002\u9996\u5148\u5f15\u5165 acturator \u7684 maven \u4f9d\u8d56\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-actuator&lt;\/artifactId&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u5c06 shutdown \u8282\u70b9\u6253\u5f00\uff0c\u4e5f\u5c06 \/actuator\/shutdown \u66b4\u9732 web \u8bbf\u95ee\u4e5f\u8bbe\u7f6e\u4e0a\uff0c\u9664\u4e86 shutdown \u4e4b\u5916\u8fd8\u6709 health, info \u7684 web \u8bbf\u95ee\u90fd\u6253\u5f00\u7684\u8bdd\u5c06management.endpoints.web.exposure.include=* \u5c31\u53ef\u4ee5\u3002\u5c06\u5982\u4e0b\u914d\u7f6e\u8bbe\u7f6e\u5230application.properties \u91cc\u8fb9\u3002\u8bbe\u7f6e\u4e00\u4e0b\u670d\u52a1\u7684\u7aef\u53e3\u53f7\u4e3a 996\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server.port=996\nmanagement.endpoint.shutdown.enabled=true\nmanagement.endpoints.web.exposure.include=shutdown<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\uff0c\u54b1\u4eec\u521b\u5efa\u4e00\u4e2a SpringBoot \u5de5\u7a0b\uff0c\u7136\u540e\u8bbe\u7f6e\u4e00\u4e2a bean \u5bf9\u8c61\uff0c\u914d\u7f6e\u4e0a PreDestroy \u65b9\u6cd5\u3002\u8fd9\u6837\u5728\u505c\u6b62\u7684\u65f6\u5019\u4f1a\u6253\u5370\u8bed\u53e5\u3002bean \u7684\u6574\u4e2a\u751f\u547d\u5468\u671f\u5206\u4e3a\u521b\u5efa\u3001\u521d\u59cb\u5316\u3001\u9500\u6bc1\uff0c\u5f53\u6700\u540e\u5173\u95ed\u7684\u65f6\u5019\u4f1a\u6267\u884c\u9500\u6bc1\u64cd\u4f5c\u3002\u5728\u9500\u6bc1\u7684\u65b9\u6cd5\u4e2d\u6267\u884c\u4e00\u6761\u8f93\u51fa\u65e5\u5fd7\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.xttblog.springboot.shutdowndemo.bean;\nimport javax.annotation.PreDestroy;\npublic class TerminateBean {\n    @PreDestroy\n    public void preDestroy() {\n        System.out.println(\"TerminalBean is destroyed\");\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u505a\u4e00\u4e2a configuration\uff0c\u7136\u540e\u63d0\u4f9b\u4e00\u4e2a\u83b7\u53d6 bean \u7684\u65b9\u6cd5\uff0c\u8fd9\u6837\u8be5 bean \u5bf9\u8c61\u4f1a\u88ab\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.xttblog.springboot.shutdowndemo.config;\nimport com.xttblog.springboot.shutdowndemo.bean.TerminateBean;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\n@Configuration\npublic class ShutDownConfig {\n    @Bean\n    public TerminateBean getTerminateBean() {\n        return new TerminateBean();\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u542f\u52a8\u7c7b\u91cc\u8fb9\u8f93\u51fa\u4e00\u4e2a\u542f\u52a8\u65e5\u5fd7\uff0c\u5f53\u5de5\u7a0b\u542f\u52a8\u7684\u65f6\u5019\uff0c\u4f1a\u770b\u5230\u542f\u52a8\u7684\u8f93\u51fa\uff0c\u63a5\u4e0b\u6765\u54b1\u4eec\u6267\u884c\u505c\u6b62\u547d\u4ee4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X POST http:\/\/localhost:3333\/actuator\/shutdown<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u65e5\u5fd7\u53ef\u4ee5\u8f93\u51fa\u542f\u52a8\u65f6\u7684\u65e5\u5fd7\u6253\u5370\u548c\u505c\u6b62\u65f6\u7684\u65e5\u5fd7\u6253\u5370\uff0c\u540c\u65f6\u7a0b\u5e8f\u5df2\u7ecf\u505c\u6b62\u3002\u662f\u4e0d\u662f\u6bd4\u8f83\u795e\u5947\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/img2018.cnblogs.com\/blog\/1236784\/201908\/1236784-20190817195127746-1058193957.png\" alt=\"\" \/><figcaption>SpringBoot \u4f18\u96c5\u7684\u505c\u6b62<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u83b7\u53d6\u7a0b\u5e8f\u542f\u52a8\u65f6\u5019\u7684 context\uff0c\u7136\u540e\u5173\u95ed\u4e3b\u7a0b\u5e8f\u542f\u52a8\u65f6\u7684 context\u3002\u8fd9\u6837\u7a0b\u5e8f\u5728\u5173\u95ed\u7684\u65f6\u5019\u4e5f\u4f1a\u8c03\u7528 PreDestroy \u6ce8\u89e3\u3002\u5982\u4e0b\u65b9\u6cd5\u5728\u7a0b\u5e8f\u542f\u52a8\u5341\u79d2\u540e\u8fdb\u884c\u5173\u95ed\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* method 2: use ctx.close to shutdown all application context *\/\nConfigurableApplicationContext ctx = SpringApplication.run(ShutdowndemoApplication.class, args);\ntry {\n    TimeUnit.SECONDS.sleep(10);\n} catch (InterruptedException e) {\n    e.printStackTrace();\n}\nctx.close();<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff0c\u5728 springboot \u542f\u52a8\u7684\u65f6\u5019\u5c06\u8fdb\u7a0b\u53f7\u5199\u5165\u4e00\u4e2a app.pid \u6587\u4ef6\uff0c\u751f\u6210\u7684\u8def\u5f84\u662f\u53ef\u4ee5\u6307\u5b9a\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4  cat \/Users\/xttblog\/app.id | xargs kill \u547d\u4ee4\u76f4\u63a5\u505c\u6b62\u670d\u52a1\uff0c\u8fd9\u4e2a\u65f6\u5019 bean \u5bf9\u8c61\u7684 PreDestroy \u65b9\u6cd5\u4e5f\u4f1a\u8c03\u7528\u7684\u3002\u8fd9\u79cd\u65b9\u6cd5\u5927\u5bb6\u4f7f\u7528\u7684\u6bd4\u8f83\u666e\u904d\u3002\u5199\u4e00\u4e2a start.sh \u7528\u4e8e\u542f\u52a8 springboot \u7a0b\u5e8f\uff0c\u7136\u540e\u5199\u4e00\u4e2a\u505c\u6b62\u7a0b\u5e8f\u5c06\u670d\u52a1\u505c\u6b62\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* method 3 : generate a pid in a specified path, while use command to shutdown pid : 'cat \/Users\/xttblog\/app.pid | xargs kill' *\/\nSpringApplication application = new SpringApplication(ShutdowndemoApplication.class);\napplication.addListeners(new ApplicationPidFileWriter(\"\/Users\/xttblog\/app.pid\"));\napplication.run();<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u56db\u79cd\u65b9\u6cd5\uff0c\u901a\u8fc7\u8c03\u7528\u4e00\u4e2a SpringApplication.exit(\uff09\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u9000\u51fa\u7a0b\u5e8f\uff0c\u540c\u65f6\u5c06\u751f\u6210\u4e00\u4e2a\u9000\u51fa\u7801\uff0c\u8fd9\u4e2a\u9000\u51fa\u7801\u53ef\u4ee5\u4f20\u9012\u7ed9\u6240\u6709\u7684 context\u3002\u8fd9\u4e2a\u5c31\u662f\u4e00\u4e2a JVM\u7684\u94a9\u5b50\uff0c\u901a\u8fc7\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\u7684\u8bdd\u4f1a\u628a\u6240\u6709 PreDestroy \u7684\u65b9\u6cd5\u6267\u884c\u5e76\u505c\u6b62\uff0c\u5e76\u4e14\u4f20\u9012\u7ed9\u5177\u4f53\u7684\u9000\u51fa\u7801\u7ed9\u6240\u6709 Context\u3002\u901a\u8fc7\u8c03\u7528 System.exit(exitCode) \u53ef\u4ee5\u5c06\u8fd9\u4e2a\u9519\u8bef\u7801\u4e5f\u4f20\u7ed9 JVM\u3002\u7a0b\u5e8f\u6267\u884c\u5b8c\u540e\u6700\u540e\u4f1a\u8f93\u51fa\uff1aProcess finished with exit code 0\uff0c\u7ed9 JVM \u4e00\u4e2a SIGNAL\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* method 4: exit this application using static method *\/\nConfigurableApplicationContext ctx = SpringApplication.run(ShutdowndemoApplication.class, args);\nexitApplication(ctx);\npublic static void exitApplication(ConfigurableApplicationContext context) {\n    int exitCode = SpringApplication.exit(context, (ExitCodeGenerator) () -&gt; 0);\n    System.exit(exitCode);\n}<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/img2018.cnblogs.com\/blog\/1236784\/201908\/1236784-20190817202406544-1989123661.png\" alt=\"\" \/><figcaption>SpringBoot \u4f18\u96c5\u7684\u505c\u6b62<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e94\u79cd\u65b9\u6cd5\uff0c\u81ea\u5df1\u5199\u4e00\u4e2a Controller\uff0c\u7136\u540e\u5c06\u81ea\u5df1\u5199\u597d\u7684 Controller \u83b7\u53d6\u5230\u7a0b\u5e8f\u7684 context\uff0c\u7136\u540e\u8c03\u7528\u81ea\u5df1\u914d\u7f6e\u7684 Controller \u65b9\u6cd5\u9000\u51fa\u7a0b\u5e8f\u3002\u901a\u8fc7\u8c03\u7528\u81ea\u5df1\u5199\u7684 \/shutDownContext \u65b9\u6cd5\u5173\u95ed\u7a0b\u5e8f\uff1acurl -X POST http:\/\/localhost:996\/shutDownContext\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.xttblog.springboot.shutdowndemo.controller;\nimport org.springframework.beans.BeansException;\nimport org.springframework.context.ApplicationContext;\nimport org.springframework.context.ApplicationContextAware;\nimport org.springframework.context.ConfigurableApplicationContext;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.PostMapping;\nimport org.springframework.web.bind.annotation.RestController;\n@RestController\npublic class ShutDownController implements ApplicationContextAware {\n    private ApplicationContext context;\n    @PostMapping(\"\/shutDownContext\")\n    public String shutDownContext() {\n        ConfigurableApplicationContext ctx = (ConfigurableApplicationContext) context;\n        ctx.close();\n        return \"context is shutdown\";\n    }\n    @GetMapping(\"\/\")\n    public String getIndex() {\n        return \"OK\";\n    }\n    @Override\n    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        context = applicationContext;\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u597d\u4e86\uff0cspringboot \u7684\u4f18\u96c5\u5173\u95ed\u65b9\u6cd5\u4e5f\u90fd\u5b9e\u73b0\u597d\u4e86\uff0c\u4e5f\u6709\u540c\u5b66\u95ee\uff0c\u5982\u4f55\u66b4\u529b\u505c\u6b62\u5462\uff0c\u7b80\u5355\uff0c\u76f4\u63a5 kill -9 \u76f8\u5e94\u7684 PID \u5373\u53ef\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u603b\u7ed3\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u8fd9\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\u7684\u8bdd\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u662f\u771f\u5b9e\u5de5\u4f5c\u4e2d\u8fd8\u9700\u8981\u8003\u8651\u7684\u70b9\u8fd8\u5f88\u591a\uff0c\u6bd4\u5982\u9700\u8981\u4fdd\u62a4\u66b4\u9732\u7684\u70b9\u4e0d\u88ab\u522b\u4eba\u5229\u7528\uff0c\u4e00\u822c\u8981\u52a0\u4e00\u4e9b\u9632\u706b\u5899\uff0c\u6216\u8005\u53ea\u5728\u5185\u7f51\u4f7f\u7528\uff0c\u4fdd\u8bc1\u7a0b\u5e8f\u5b89\u5168\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u771f\u5b9e\u7684\u5de5\u4f5c\u4e2d\u7684\u65f6\u5019\u7b2c\u4e09\u79cd\u6bd4\u8f83\u5e38\u7528\uff0c\u7a0b\u5e8f\u4e2d\u4e00\u822c\u4f7f\u7528\u5185\u5b58\u961f\u5217\u6216\u7ebf\u7a0b\u6c60\u7684\u65f6\u5019\u6700\u597d\u8981\u4f18\u96c5\u7684\u5173\u673a\uff0c\u5c06\u5185\u5b58\u961f\u5217\u6ca1\u6709\u5904\u7406\u7684\u4fdd\u5b58\u8d77\u6765\u6216\u7ebf\u7a0b\u6c60\u4e2d\u6ca1\u5904\u7406\u5b8c\u7684\u7a0b\u5e8f\u5904\u7406\u5b8c\u3002\u4f46\u662f\u56e0\u4e3a\u505c\u673a\u7684\u65f6\u5019\u6bd4\u8f83\u5feb\uff0c\u6240\u4ee5\u505c\u670d\u52a1\u7684\u65f6\u5019\u6700\u597d\u4e0d\u8981\u5904\u7406\u5927\u91cf\u7684\u6570\u636e\u64cd\u4f5c\uff0c\u8fd9\u6837\u4f1a\u5f71\u54cd\u7a0b\u5e8f\u505c\u6b62\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u597d\u4e86\uff0c\u5927\u5bb6\u89c9\u5f97\u8fd8\u6ca1\u770b\u5168\u7684\u8bdd\uff0c\u53ef\u4ee5\u8bbf\u95ee GIT \u4ee3\u7801\uff1a<a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/stonehqs\/shutdowndemo.git\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/github.com\/stonehqs\/shutdowndemo.git\" target=\"_blank\">https:\/\/github.com\/stonehqs\/shutdowndemo.git<\/a>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u6587\u5730\u5740\uff1ahttps:\/\/www.cnblogs.com\/huangqingshi\/p\/11370291.html\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4709\">\u62d2\u7edd kill -9\uff0c\u62d2\u7edd\u66b4\u529b\uff0c\u6559\u4f60 5 \u4e2d\u65b9\u5f0f\u4f18\u96c5\u7684\u505c\u6b62 SpringBoot \u670d\u52a1<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f7f\u7528 SpringBoot \u7684\u65f6\u5019\uff0c\u90fd\u8981\u6d89\u53ca\u5230\u670d\u52a1\u7684\u505c\u6b62\u548c\u542f\u52a8\uff0c\u5f53\u6211\u4eec\u505c\u6b62\u670d\u52a1\u7684\u65f6\u5019\uff0c\u5f88\u591a\u65f6\u5019\u5927\u5bb6\u90fd\u662fkil [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[905,713,1130,1522,590],"class_list":["post-4709","post","type-post","status-publish","format-standard","hentry","category-java","tag-curl","tag-maven","tag-shell-","tag-springboot","tag-springboottest"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4709"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4709\/revisions"}],"predecessor-version":[{"id":4710,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4709\/revisions\/4710"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}