{"id":10007979,"date":"2023-06-25T10:58:56","date_gmt":"2023-06-25T02:58:56","guid":{"rendered":"https:\/\/ityet.com\/?p=10007979"},"modified":"2023-06-25T10:58:56","modified_gmt":"2023-06-25T02:58:56","slug":"spring-boot-%e8%b0%83%e7%94%a8%e5%a4%96%e9%83%a8%e6%8e%a5%e5%8f%a3%e7%9a%84-3-%e7%a7%8d%e6%96%b9%e5%bc%8f%ef%bc%8c%e8%bf%98%e6%9c%89%e8%b0%81%e4%b8%8d%e4%bc%9a%ef%bc%9f%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10007979","title":{"rendered":"Spring Boot \u8c03\u7528\u5916\u90e8\u63a5\u53e3\u7684 3 \u79cd\u65b9\u5f0f\uff0c\u8fd8\u6709\u8c01\u4e0d\u4f1a\uff1f\uff01"},"content":{"rendered":"<h2>1\u3001\u7b80\u4ecb<\/h2>\n<p>SpringBoot\u4e0d\u4ec5\u7ee7\u627f\u4e86Spring\u6846\u67b6\u539f\u6709\u7684\u4f18\u79c0\u7279\u6027\uff0c\u800c\u4e14\u8fd8\u901a\u8fc7\u7b80\u5316\u914d\u7f6e\u6765\u8fdb\u4e00\u6b65\u7b80\u5316\u4e86Spring\u5e94\u7528\u7684\u6574\u4e2a\u642d\u5efa\u548c\u5f00\u53d1\u8fc7\u7a0b\u3002<\/p>\n<p>\u5728Spring-Boot\u9879\u76ee\u5f00\u53d1\u4e2d\uff0c\u5b58\u5728\u7740\u672c\u6a21\u5757\u7684\u4ee3\u7801\u9700\u8981\u8bbf\u95ee\u5916\u9762\u6a21\u5757\u63a5\u53e3\uff0c\u6216\u5916\u90e8url\u94fe\u63a5\u7684\u9700\u6c42, \u6bd4\u5982\u5728apaas\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9700\u8981\u5c01\u88c5\u63a5\u53e3\u5728\u63a5\u53e3\u4e2d\u8c03\u7528apaas\u63d0\u4f9b\u7684\u63a5\u53e3\uff08\u50cf\u53d1\u8d77\u6d41\u7a0b\u63a5\u53e3submit\u7b49\u7b49\uff09\u4e0b\u9762\u4e5f\u662f\u63d0\u4f9b\u4e86\u4e09\u79cd\u65b9\u5f0f\uff08\u4e0d\u4f7f\u7528dubbo\u7684\u65b9\u5f0f\uff09\u4f9b\u6211\u4eec\u9009\u62e9<\/p>\n<p>\u63a8\u8350\u4e00\u4e2a\u5f00\u6e90\u514d\u8d39\u7684 Spring Boot \u5b9e\u6218\u9879\u76ee\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=UAr6FXkK%2BJMEt%2FfHQ66hpw%3D%3D.QvM7vzODXgzPoIKV8N%2Fvw58fdQErmsQhl%2BtVOcNlsDPKNsqBXJoSzjVoQgOJOogUdcnEwFyREgA56oYvU2wztw%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p><\/blockquote>\n<h2>2\u3001\u65b9\u5f0f\u4e00\uff1a\u4f7f\u7528\u539f\u59cbhttpClient\u8bf7\u6c42<\/h2>\n<pre><code>\/*\n * @description get\u65b9\u5f0f\u83b7\u53d6\u5165\u53c2\uff0c\u63d2\u5165\u6570\u636e\u5e76\u53d1\u8d77\u6d41\u7a0b\n * @author lyx\n * @date 2022\/8\/24 16:05\n * @params documentId\n * @return String\n *\/\n\/\/\n@RequestMapping(&quot;\/submit\/{documentId}&quot;)\npublic String submit1(@PathVariable String documentId) throws ParseException {\n    \/\/\u6b64\u5904\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u8f6c\u6362\u4e3ajson\u683c\u5f0f\u5b57\u7b26\u4e32\n    Map&lt;String,Object&gt; map =task2Service.getMap(documentId);\n    String jsonStr = JSON.toJSONString(map, SerializerFeature.WRITE_MAP_NULL_FEATURES,SerializerFeature.QuoteFieldNames);\n    JSONObject jsonObject = JSON.parseObject(jsonStr);\n    JSONObject sr = task2Service.doPost(jsonObject);\n    return sr.toString();\n}\n\/*\n * @description \u4f7f\u7528\u539f\u751fhttpClient\u8c03\u7528\u5916\u90e8\u63a5\u53e3\n * @author lyx\n * @date 2022\/8\/24 16:08\n * @params date\n * @return JSONObject\n *\/\npublic static JSONObject doPost(JSONObject date) {\n    String assessToken=&quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ4ZGFwYXBwaWQiOiIzNDgxMjU4ODk2OTI2OTY1NzYiLCJleHAiOjE2NjEyMjY5MDgsImlhdCI6MTY2MTIxOTcwOCwieGRhcHRlbmFudGlkIjoiMzAwOTgxNjA1MTE0MDUyNjA5IiwieGRhcHVzZXJpZCI6IjEwMDM0NzY2MzU4MzM1OTc5NTIwMCJ9.fZAO4kJSv2rSH0RBiL1zghdko8Npmu_9ufo6Wex_TI2q9gsiLp7XaW7U9Cu7uewEOaX4DTdpbFmMPvLUtcj_sQ&quot;;\n    CloseableHttpClient client = HttpClients.createDefault();\n    \/\/ \u8981\u8c03\u7528\u7684\u63a5\u53e3url\n    String url = &quot;http:\/\/39.103.201.110:30661 \/xdap-open\/open\/process\/v1\/submit&quot;;\n    HttpPost post = new HttpPost(url);\n    JSONObject jsonObject = null;\n    try {\n        \/\/\u521b\u5efa\u8bf7\u6c42\u4f53\u5e76\u6dfb\u52a0\u6570\u636e\n        StringEntity s = new StringEntity(date.toString());\n        \/\/\u6b64\u5904\u76f8\u5f53\u4e8e\u5728header\u91cc\u5934\u6dfb\u52a0content-type\u7b49\u53c2\u6570\n        s.setContentType(&quot;application\/json&quot;);\n        s.setContentEncoding(&quot;UTF-8&quot;);\n        post.setEntity(s);\n        \/\/\u6b64\u5904\u76f8\u5f53\u4e8e\u5728Authorization\u91cc\u5934\u6dfb\u52a0Bear token\u53c2\u6570\u4fe1\u606f\n        post.addHeader(&quot;Authorization&quot;, &quot;Bearer &quot; +assessToken);\n        HttpResponse res = client.execute(post);\n        String response1 = EntityUtils.toString(res.getEntity());\n        if (res.getStatusLine()\n                .getStatusCode() == HttpStatus.SC_OK) {\n            \/\/ \u8fd4\u56dejson\u683c\u5f0f\uff1a\n            String result = EntityUtils.toString(res.getEntity());\n            jsonObject = JSONObject.parseObject(result);\n        }\n    } catch (Exception e) {\n        throw new RuntimeException(e);\n    }\n    return jsonObject;\n}<\/code><\/pre>\n<h2>3\u3001\u65b9\u5f0f\u4e8c\uff1a\u4f7f\u7528RestTemplate\u65b9\u6cd5<\/h2>\n<p>Spring-Boot\u5f00\u53d1\u4e2d\uff0c<code>RestTemplate<\/code>\u540c\u6837\u63d0\u4f9b\u4e86\u5bf9\u5916\u8bbf\u95ee\u7684\u63a5\u53e3API\uff0c\u8fd9\u91cc\u4e3b\u8981\u4ecb\u7ecdGet\u548cPost\u65b9\u6cd5\u7684\u4f7f\u7528\u3002<\/p>\n<h4>Get\u8bf7\u6c42<\/h4>\n<p>\u63d0\u4f9b\u4e86<code>getForObject<\/code> \u3001<code>getForEntity<\/code>\u4e24\u79cd\u65b9\u5f0f\uff0c\u5176\u4e2d<code>getForEntity<\/code>\u5982\u4e0b\u4e09\u79cd\u65b9\u6cd5\u7684\u5b9e\u73b0\uff1a<\/p>\n<p><code>Get--getForEntity<\/code>\uff0c\u5b58\u5728\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u91cd\u8f7d<\/p>\n<pre><code>1.getForEntity(Stringurl,Class responseType,Object\u2026urlVariables)\n2.getForEntity(URI url,Class responseType)<\/code><\/pre>\n<p><strong><code>Get--getForEntity(URI url,Class responseType)<\/code><\/strong><\/p>\n<pre><code>\/\/\u8be5\u65b9\u6cd5\u4f7f\u7528URI\u5bf9\u8c61\u6765\u66ff\u4ee3\u4e4b\u524d\u7684url\u548curlVariables\u53c2\u6570\u6765\u6307\u5b9a\u8bbf\u95ee\u5730\u5740\u548c\u53c2\u6570\u7ed1\u5b9a\u3002URI\u662fJDK java.net\u5305\u4e0b\u7684\u4e00\u4e2a\u7c7b\uff0c\u8868\u793a\u4e00\u4e2a\u7edf\u4e00\u8d44\u6e90\u6807\u8bc6\u7b26(Uniform Resource Identifier)\u5f15\u7528\u3002\u53c2\u8003\u5982\u4e0b\uff1a\nRestTemplate restTemplate=new RestTemplate();\nUriComponents \nuriComponents=UriComponentsBuilder.fromUriString(&quot;http:\/\/USER-SERVICE\/user?name={name}&quot;)\n.build()\n.expand(&quot;dodo&quot;)\n.encode();\nURI uri=uriComponents.toUri();\nResponseEntityresponseEntity=restTemplate.getForEntity(uri,String.class).getBody();<\/code><\/pre>\n<p><strong><code>Get--getForEntity(Stringurl,Class responseType,Object\u2026urlVariables)<\/code><\/strong><\/p>\n<pre><code>\/\/\u8be5\u65b9\u6cd5\u63d0\u4f9b\u4e86\u4e09\u4e2a\u53c2\u6570\uff0c\u5176\u4e2durl\u4e3a\u8bf7\u6c42\u7684\u5730\u5740\uff0cresponseType\u4e3a\u8bf7\u6c42\u54cd\u5e94body\u7684\u5305\u88c5\u7c7b\u578b\uff0curlVariables\u4e3aurl\u4e2d\u7684\u53c2\u6570\u7ed1\u5b9a\uff0c\u8be5\u65b9\u6cd5\u7684\u53c2\u8003\u8c03\u7528\u5982\u4e0b\uff1a\n\/\/ http:\/\/USER-SERVICE\/user?name={name)\nRestTemplate restTemplate=new RestTemplate();\nMapparams=new HashMap&lt;&gt;();\nparams.put(&quot;name&quot;,&quot;dada&quot;); \/\/\nResponseEntityresponseEntity=restTemplate.getForEntity(&quot;http:\/\/USERSERVICE\/user?name={name}&quot;,String.class,params);<\/code><\/pre>\n<p>Get&#8211;getForObject\uff0c\u5b58\u5728\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u91cd\u8f7d<\/p>\n<pre><code>1.getForObject(String url,Class responseType,Object...urlVariables)\n2.getForObject(String url,Class responseType,Map urlVariables)\n3.getForObject(URI url,Class responseType)<\/code><\/pre>\n<p>getForObject\u65b9\u6cd5\u53ef\u4ee5\u7406\u89e3\u4e3a\u5bf9getForEntity\u7684\u8fdb\u4e00\u6b65\u5c01\u88c5\uff0c\u5b83\u901a\u8fc7<code>HttpMessageConverterExtractor<\/code>\u5bf9HTTP\u7684\u8bf7\u6c42\u54cd\u5e94\u4f53body\u5185\u5bb9\u8fdb\u884c\u5bf9\u8c61\u8f6c\u6362\uff0c\u5b9e\u73b0\u8bf7\u6c42\u76f4\u63a5\u8fd4\u56de\u5305\u88c5\u597d\u7684\u5bf9\u8c61\u5185\u5bb9\u3002<\/p>\n<h4>Post \u8bf7\u6c42<\/h4>\n<p>Post\u8bf7\u6c42\u63d0\u4f9b\u6709<code>postForEntity<\/code>\u3001<code>postForObject<\/code>\u548c<code>postForLocation<\/code>\u4e09\u79cd\u65b9\u5f0f\uff0c\u5176\u4e2d\u6bcf\u79cd\u65b9\u5f0f\u90fd\u6709\u4e09\u79cd\u65b9\u6cd5\uff0c\u4e0b\u9762\u4ecb\u7ecd<code>postForEntity<\/code>\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<p>Post&#8211;postForEntity\uff0c\u5b58\u5728\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u91cd\u8f7d<\/p>\n<pre><code>1.postForEntity(String url,Object request,Class responseType,Object...  uriVariables) \n2.postForEntity(String url,Object request,Class responseType,Map  uriVariables) \n3.postForEntity(URI url,Object request\uff0cClass responseType)<\/code><\/pre>\n<p>\u5982\u4e0b\u4ec5\u6f14\u793a\u7b2c\u4e8c\u79cd\u91cd\u8f7d\u65b9\u5f0f<\/p>\n<pre><code>\/*\n * @description post\u65b9\u5f0f\u83b7\u53d6\u5165\u53c2\uff0c\u63d2\u5165\u6570\u636e\u5e76\u53d1\u8d77\u6d41\u7a0b\n * @author lyx\n * @date 2022\/8\/24 16:07\n * @params\n * @return\n *\/\n@PostMapping(&quot;\/submit2&quot;)\npublic Object insertFinanceCompensation(@RequestBody JSONObject jsonObject) {\n    String documentId=jsonObject.get(&quot;documentId&quot;).toString();\n    return task2Service.submit(documentId);\n}\n\/*\n * @description \u4f7f\u7528restTimeplate\u8c03\u5916\u90e8\u63a5\u53e3\n * @author lyx\n * @date 2022\/8\/24 16:02\n * @params documentId\n * @return String\n *\/\npublic String submit(String documentId){\n    String assessToken=&quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ4ZGFwYXBwaWQiOiIzNDgxMjU4ODk2OTI2OTY1NzYiLCJleHAiOjE2NjEyMjY5MDgsImlhdCI6MTY2MTIxOTcwOCwieGRhcHRlbmFudGlkIjoiMzAwOTgxNjA1MTE0MDUyNjA5IiwieGRhcHVzZXJpZCI6IjEwMDM0NzY2MzU4MzM1OTc5NTIwMCJ9.fZAO4kJSv2rSH0RBiL1zghdko8Npmu_9ufo6Wex_TI2q9gsiLp7XaW7U9Cu7uewEOaX4DTdpbFmMPvLUtcj_sQ&quot;;\n    RestTemplate restTemplate = new RestTemplate();\n    \/\/\u521b\u5efa\u8bf7\u6c42\u5934\n    HttpHeaders httpHeaders = new HttpHeaders();\n    \/\/\u6b64\u5904\u76f8\u5f53\u4e8e\u5728Authorization\u91cc\u5934\u6dfb\u52a0Bear token\u53c2\u6570\u4fe1\u606f\n    httpHeaders.add(HttpHeaders.AUTHORIZATION, &quot;Bearer &quot; + assessToken);\n    \/\/\u6b64\u5904\u76f8\u5f53\u4e8e\u5728header\u91cc\u5934\u6dfb\u52a0content-type\u7b49\u53c2\u6570\n    httpHeaders.add(HttpHeaders.CONTENT_TYPE,&quot;application\/json&quot;);\n    Map&lt;String, Object&gt; map = getMap(documentId);\n    String jsonStr = JSON.toJSONString(map);\n    \/\/\u521b\u5efa\u8bf7\u6c42\u4f53\u5e76\u6dfb\u52a0\u6570\u636e\n    HttpEntity&lt;Map&gt; httpEntity = new HttpEntity&lt;Map&gt;(map, httpHeaders);\n    String url = &quot;http:\/\/39.103.201.110:30661\/xdap-open\/open\/process\/v1\/submit&quot;;\n    ResponseEntity&lt;String&gt; forEntity = restTemplate.postForEntity(url,httpEntity,String.class);\/\/\u6b64\u5904\u4e09\u4e2a\u53c2\u6570\u5206\u522b\u662f\u8bf7\u6c42\u5730\u5740\u3001\u8bf7\u6c42\u4f53\u4ee5\u53ca\u8fd4\u56de\u53c2\u6570\u7c7b\u578b\n    return forEntity.toString();\n}<\/code><\/pre>\n<h2>4\u3001\u65b9\u5f0f\u4e09\uff1a\u4f7f\u7528Feign\u8fdb\u884c\u6d88\u8d39<\/h2>\n<p>\u5728maven\u9879\u76ee\u4e2d\u6dfb\u52a0\u4f9d\u8d56<\/p>\n<pre><code>&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-cloud-starter-feign&lt;\/artifactId&gt;\n    &lt;version&gt;1.2.2.RELEASE&lt;\/version&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n<p>\u542f\u52a8\u7c7b\u4e0a\u52a0\u4e0a<code>@EnableFeignClients<\/code><\/p>\n<pre><code>@SpringBootApplication\n@EnableFeignClients\n@ComponentScan(basePackages = {&quot;com.definesys.mpaas&quot;, &quot;com.xdap.*&quot; ,&quot;com.xdap.*&quot;})\npublic class MobilecardApplication {\n \n    public static void main(String[] args) {\n        SpringApplication.run(MobilecardApplication.class, args);\n    }\n \n}<\/code><\/pre>\n<p><strong>\u6b64\u5904\u7f16\u5199\u63a5\u53e3\u6a21\u62df\u5916\u90e8\u63a5\u53e3\u4f9bfeign\u8c03\u7528\u5916\u90e8\u63a5\u53e3\u65b9\u5f0f\u4f7f\u7528<\/strong><\/p>\n<p>\u5b9a\u4e49controller<\/p>\n<pre><code>@Autowired\nPrintService printService;\n\n@PostMapping(&quot;\/outSide&quot;)\npublic String test(@RequestBody TestDto testDto) {\n    return printService.print(testDto);\n}<\/code><\/pre>\n<p>\u5b9a\u4e49service<\/p>\n<pre><code>@Service\npublic interface PrintService {\n    public String print(TestDto testDto);\n}<\/code><\/pre>\n<p>\u5b9a\u4e49serviceImpl<\/p>\n<pre><code>public class PrintServiceImpl implements PrintService {\n \n    @Override\n    public String print(TestDto testDto) {\n        return &quot;\u6a21\u62df\u5916\u90e8\u7cfb\u7edf\u7684\u63a5\u53e3\u529f\u80fd&quot;+testDto.getId();\n    }\n}<\/code><\/pre>\n<p><strong>\u6784\u5efaFeigin\u7684Service<\/strong><\/p>\n<p>\u5b9a\u4e49service<\/p>\n<pre><code>\/\/\u6b64\u5904name\u9700\u8981\u8bbe\u7f6e\u4e0d\u4e3a\u7a7a\uff0curl\u9700\u8981\u5728.properties\u4e2d\u8bbe\u7f6e\n@Service\n@FeignClient(url = &quot;${outSide.url}&quot;, name = &quot;service2&quot;)\npublic interface FeignService2 {\n    @RequestMapping(value = &quot;\/custom\/outSide&quot;, method = RequestMethod.POST)\n    @ResponseBody\n    public String getMessage(@Valid @RequestBody TestDto testDto);\n}<\/code><\/pre>\n<p>\u5b9a\u4e49controller<\/p>\n<pre><code>@Autowired\nFeignService2 feignService2;\n\/\/\u6d4b\u8bd5feign\u8c03\u7528\u5916\u90e8\u63a5\u53e3\u5165\u53e3\n@PostMapping(&quot;\/test2&quot;)\npublic String test2(@RequestBody TestDto testDto) {\n    return feignService2.getMessage(testDto);\n}<\/code><\/pre>\n<p><strong>postman\u6d4b\u8bd5<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc8uB4\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6b64\u5904\u56e0\u4e3a\u6211\u4f7f\u7528\u4e86\u6240\u5728\u9879\u76ee\uff0c\u6240\u4ee5\u9700\u8981\u6dfb\u52a0\u4e00\u5b9a\u7684\u8bf7\u6c42\u5934\u7b49\u4fe1\u606f\uff0c\u5173\u4e8eFeign\u7684\u8bf7\u6c42\u5934\u6dfb\u52a0\u4e5f\u4f1a\u5728\u540e\u7eed\u8865\u5145<\/p>\n<p>\u8865\u5145\u5982\u4e0b\uff1a<\/p>\n<h4>\u6dfb\u52a0Header\u89e3\u51b3\u65b9\u6cd5<\/h4>\n<p>\u5c06token\u7b49\u4fe1\u606f\u653e\u5165Feign\u8bf7\u6c42\u5934\u4e2d\uff0c\u4e3b\u8981\u901a\u8fc7\u91cd\u5199<code>RequestInterceptor<\/code>\u7684apply\u65b9\u6cd5\u5b9e\u73b0<\/p>\n<p>\u5b9a\u4e49config<\/p>\n<pre><code>@Configuration\npublic class FeignConfig implements RequestInterceptor {\n    @Override\n    public void apply(RequestTemplate requestTemplate) {\n        \/\/\u6dfb\u52a0token\n        requestTemplate.header(&quot;token&quot;, &quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ4ZGFwYXBwaWQiOiIzNDgxMjU4ODk2OTI2OTY1NzYiLCJleHAiOjE2NjEyMjY5MDgsImlhdCI6MTY2MTIxOTcwOCwieGRhcHRlbmFudGlkIjoiMzAwOTgxNjA1MTE0MDUyNjA5IiwieGRhcHVzZXJpZCI6IjEwMDM0NzY2MzU4MzM1OTc5NTIwMCJ9.fZAO4kJSv2rSH0RBiL1zghdko8Npmu_9ufo6Wex_TI2q9gsiLp7XaW7U9Cu7uewEOaX4DTdpbFmMPvLUtcj_sQ&quot;);\n    }\n}<\/code><\/pre>\n<p>\u5b9a\u4e49service<\/p>\n<pre><code>@Service\n@FeignClient(url = &quot;${outSide.url}&quot;,name = &quot;feignServer&quot;, configuration = FeignDemoConfig.class)\npublic interface TokenDemoClient {\n    @RequestMapping(value = &quot;\/custom\/outSideAddToken&quot;, method = RequestMethod.POST)\n    @ResponseBody\n    public String getMessage(@Valid @RequestBody TestDto testDto);\n}<\/code><\/pre>\n<p>\u5b9a\u4e49controller<\/p>\n<pre><code>\/\/\u6d4b\u8bd5feign\u8c03\u7528\u5916\u90e8\u63a5\u53e3\u5165\u53e3\uff0c\u52a0\u4e0atoken\n@PostMapping(&quot;\/testToken&quot;)\npublic String test4(@RequestBody TestDto testDto) {\n    return tokenDemoClient.getMessage(testDto);\n}<\/code><\/pre>\n<blockquote><p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300cChelsea\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=qwN%2BYmyoZuc5iSUw7tg0Fg%3D%3D.7lWTOEhnT19FdKBR5mXaFLEVK1DgsKPe4J4ruYZXsGahhwp3s44dgmbr3A1in0v%2FA5DpQy4oD8CvnniQo1mRzA%3D%3D\" rel=\"nofollow\">https:\/\/blog.csdn.net\/Chelsea\/article\/details\/126689495<\/a><\/p><\/blockquote>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=slZ5qCkZliXtP16kmqjBZQ%3D%3D.qwu7xxa0RmsE0WJI1Lue6dmVLwu78Ao7QJMQBIDXZ98%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=p68kEULvk6S07D5DLPcBOw%3D%3D.xWCeAx2%2FgVTOt%2BWAMQ1m1xJqnJYzbkMICwxEj9YhzXEcp3vVgSX0sOabHwsZgdvam17vJ5vUvY77BagSviduxQ%3D%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=KXYA%2FbwgtySIDoyciWJT8w%3D%3D.VVosGT7malc7FviBet7NWaqIi7ze823vVyhUnOglUXq7oHXjk4GfnWQwAAEMOmpA\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=lyZgHavw4LFA%2BsDwi%2FLUUA%3D%3D.0GC%2B4BBPCh83nC3tBNHIU%2F2hq4kfppmmwbQP%2BoNf2Uf5iFYaSOPGLQQOQkQK1wC6Zeu2nVWeARR6KSS387AWoQ%3D%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=1DfgVrbedKAy3uRRbx%2FGBg%3D%3D.SGFbgwdPnwUzPNsWrz4MY9fafcCabiVDdd2lfc8Fb51N3CfEGOZ1ZBELVn%2BaJh6sejeoaVVknrzVi0rPiafYOtb1A7pAJqYyfskNKTBSSuI%3D\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043930963\">https:\/\/segmentfault.com\/a\/1190000043930963<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u7b80\u4ecb SpringBoot\u4e0d\u4ec5\u7ee7\u627f\u4e86Spring\u6846\u67b6\u539f\u6709\u7684\u4f18\u79c0\u7279\u6027\uff0c\u800c\u4e14\u8fd8\u901a\u8fc7\u7b80\u5316\u914d\u7f6e\u6765\u8fdb\u4e00\u6b65\u7b80\u5316\u4e86Spr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10007979","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10007979"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007979\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10007979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10007979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10007979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}