Repository navigation
Expand file tree
/
Copy pathblogBase.json
More file actions
1 lines (1 loc) · 68 KB
/
Copy pathblogBase.json
File metadata and controls
1 lines (1 loc) · 68 KB
1
{"singlePage": [], "startSite": "04/22/2025", "filingNum": "", "onePageListNum": 15, "commentLabelColor": "#006b75", "yearColorList": ["#bc4c00", "#0969da", "#1f883d", "#A333D0"], "i18n": "CN", "themeMode": "manual", "dayTheme": "light", "nightTheme": "dark", "urlMode": "pinyin", "script": "", "style": "", "head": "", "indexScript": "", "indexStyle": "", "bottomText": "", "showPostSource": 1, "iconList": {}, "UTC": 8, "rssSplit": "sentence", "exlink": {}, "needComment": 1, "allHead": "", "title": "therain2020", "subTitle": "the path to future", "avatarUrl": "https://github.githubassets.com/favicons/favicon.svg", "GMEEK_VERSION": "last", "postListJson": {"P1": {"htmlDir": "docs/post/Linux-he-Windows -zai-nei-he-shang-de-qu-bie.html", "labels": ["Windows", "Linux"], "postTitle": "Linux\u548cWindows \u5728\u5185\u6838\u4e0a\u7684\u533a\u522b", "postUrl": "post/Linux-he-Windows%20-zai-nei-he-shang-de-qu-bie.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/1", "commentNum": 0, "wordCount": 84, "description": "# Linux\u548cWindows \u5728\u5185\u6838\u4e0a\u7684\u533a\u522b \n## \u4ec0\u4e48\u662f\u5185\u6838\n## \u5185\u6838\u7684\u4f5c\u7528\n## \u5185\u6838\u5982\u4f55\u5de5\u4f5c\n## Linux\u5982\u4f55\u8bbe\u8ba1\u5185\u6838\n## Windows\u5982\u4f55\u8bbe\u8ba1\u5185\u6838\u3002", "top": 0, "createdAt": 1745305423, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-22", "dateLabelColor": "#0969da"}, "P2": {"htmlDir": "docs/post/xiang-mu-jia-gou.html", "labels": ["AIGmeek"], "postTitle": "\u9879\u76ee\u67b6\u6784", "postUrl": "post/xiang-mu-jia-gou.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/2", "commentNum": 0, "wordCount": 5499, "description": "# \u57fa\u4e8eGithub\u4e09\u4ef6\u5957\u8bbe\u8ba1\u4e00\u4e2a\u5206\u5c42\u67b6\u6784\u65b9\u6848\uff0c\u6db5\u76d6\u5185\u5bb9\u7ba1\u7406\u3001\u81ea\u52a8\u5316\u6d41\u7a0b\u548c\u529f\u80fd\u6269\u5c55\u6027\uff1a\n\n```Text\nAIGmeek/\n\u251c\u2500\u2500 src/\n\u2502 \u251c\u2500\u2500 main/\n\u2502 \u2502 \u251c\u2500\u2500 java/\n\u2502 \u2502 \u2502 \u2514\u2500\u2500 com/\n\u2502 \u2502 \u2502 \u2514\u2500\u2500 aigmeek/\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 config/ # \u914d\u7f6e\u4e2d\u5fc3\uff08Spring Boot\u6807\u51c6\uff09\n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 GitHubConfig.java # OAuth\u8ba4\u8bc1\u914d\u7f6e \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 TemplateConfig.java # \u6a21\u677f\u5f15\u64ce\u914d\u7f6e \n\u2502 \u2502 \u2502 \u251c\u2500\u2500 core/\n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 generator/ # \u9759\u6001\u751f\u6210\u5668\uff08\u66ff\u4ee3Python\u811a\u672c\uff09\n\u2502 \u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 HtmlGenerator.java \n\u2502 \u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 SitemapBuilder.java \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 processor/ # \u5185\u5bb9\u5904\u7406\u5668 \n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 IssueParser.java \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 MarkdownConverter.java \n\u2502 \u2502 \u2502 \u251c\u2500\u2500 github/ # API\u4ea4\u4e92\u5c42 \n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 client/\n\u2502 \u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 IssueClient.java # \u5b9e\u73b0PyGithub\u529f\u80fd \n\u2502 \u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 RepoClient.java \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 model/ # \u6570\u636e\u6a21\u578b\uff08Record\u7c7b\u578b\uff09\n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 GIssue.java \n\u2502 \u2502 \u2502 \u2514\u2500\u2500 web/\n\u2502 \u2502 \u2502 \u2514\u2500\u2500 controller/ # \u9884\u89c8\u529f\u80fdAPI\u7aef\u70b9 \n\u2502 \u2502 \u2502 \u2514\u2500\u2500 PreviewController.java \n\u2502 \u2502 \u2514\u2500\u2500 resources/\n\u2502 \u2502 \u251c\u2500\u2500 static/ # \u5168\u91cf\u4fdd\u7559\u539f\u524d\u7aef\u8d44\u6e90 \n\u2502 \u2502 \u2502 \u251c\u2500\u2500 css/\n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 style.css # \u589e\u5f3a\u54cd\u5e94\u5f0f\u5e03\u5c40 \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 dark-mode.css # \u652f\u63012025\u65b0CSS\u7279\u6027 \n\u2502 \u2502 \u2502 \u251c\u2500\u2500 js/\n\u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 plugins/ # \u63d2\u4ef6\u4f53\u7cfb\uff08\u70ed\u52a0\u8f7d\uff09\n\u2502 \u2502 \u2502 \u2502 \u2502 \u251c\u2500\u2500 lightbox.js # \u56fe\u7247\u706f\u7bb1\u4f18\u5316\u7248 \n\u2502 \u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 vercount.js # \u8bbf\u95ee\u7edf\u8ba1\u6a21\u5757 \n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500 GmeekTOC.js # \u76ee\u5f55\u751f\u6210\u5668 \n\u2502 \u2502 \u2502 \u2514\u2500\u2500 img/ # \u9759\u6001\u8d44\u6e90\u6258\u7ba1 \n\u2502 \u2502 \u2514\u2500\u2500 templates/ # Thymeleaf\u6a21\u677f \n\u2502 \u2502 \u251c\u2500\u2500 fragments/ # \u6a21\u5757\u5316\u7ec4\u4ef6 \n\u2502 \u2502 \u2502 \u251c\u2500\u2500 header.html \n\u2502 \u2502 \u2502 \u2514\u2500\u2500 comment.html # \u96c6\u6210utteranc\u8bc4\u8bba \n\u2502 \u2502 \u251c\u2500\u2500 post.html # \u6587\u7ae0\u9875\uff08\u652f\u6301SEO\u4f18\u5316\uff09\n\u2502 \u2502 \u2514\u2500\u2500 index.html # \u9996\u9875\uff08\u5206\u9875\u903b\u8f91\uff09\n\u2502 \u2514\u2500\u2500 test/ # \u6d4b\u8bd5\u5957\u4ef6 \n\u2502 \u2514\u2500\u2500 java/\n\u2502 \u2514\u2500\u2500 com/\n\u2502 \u2514\u2500\u2500 aigmeek/\n\u2502 \u2514\u2500\u2500 core/\n\u2502 \u2514\u2500\u2500 generator/ # \u751f\u6210\u5668\u5355\u5143\u6d4b\u8bd5 \n\u251c\u2500\u2500 .github/ # \u81ea\u52a8\u5316\u6d41\u6c34\u7ebf \n\u2502 \u2514\u2500\u2500 workflows/\n\u2502 \u2514\u2500\u2500 gh-pages.yml # \u6df1\u5ea6\u4f18\u5316\u7684Java\u6784\u5efa\u6d41\u7a0b \n\u2514\u2500\u2500 HELP.md # \u65b0\u7248\u6587\u6863\uff08\u542bAI\u52a9\u624b\u6307\u5f15\uff09\n```\n\n## \u4e00\u3001\u6838\u5fc3\u67b6\u6784\u5206\u5c42\n\n### 1.\u6570\u636e\u83b7\u53d6\u5c42\n\n\u4f7f\u7528Github API Client for Java\u5b9e\u73b0Issue\u6570\u636e\u6293\u53d6\n```Java\npublic class IssueFetcher {\n // \u5b9e\u73b0\u57fa\u4e8e\u6807\u7b7e\u8fc7\u6ee4\u7684Issue\u67e5\u8be2\uff08\u5bf9\u5e94MD\u6587\u6863\u7684\u6807\u7b7e\u8981\u6c42\uff09\n public List<IssueDTO> fetchIssuesByLabel(String repo, String label);\n // \u89e3\u6790Issue\u6b63\u6587\u4e2d\u7684Markdown\u548c\u5143\u6570\u636e\uff08\u53c2\u8003post.html \u6a21\u677f\uff09\n public PostContent parseIssueBody(String markdownContent);\n}\n```\n\n### 2.\u9759\u6001\u751f\u6210\u5c42\n\n\u91c7\u7528Thymeleaf\u6a21\u677f\u5f15\u64ce\u66ff\u4ee3Jinja2\n```Java\n@Component \npublic class StaticGenerator {\n // \u751f\u6210\u6587\u7ae0\u9875\uff08\u96c6\u6210lightbox.js \u56fe\u7247\u9884\u89c8\u529f\u80fd[13]()\uff09\n public void generatePostPage(PostContent post, Path outputDir);\n // \u751f\u6210\u7d22\u5f15\u9875\uff08\u5b9e\u73b0plist.html \u7684\u5206\u9875\u903b\u8f91[1]()\uff09\n public void generateIndexPage(List<PostContent> posts, int pageNum); \n}\n```\n\n### 3.\u81ea\u52a8\u5316\u90e8\u7f72\u5c42\n\n\u96c6\u6210Github Actions\u7684Java\u5b9e\u73b0\u65b9\u6848\n```Yaml\n# .github/workflows/build.yml \u6838\u5fc3\u914d\u7f6e \n- name: Build with Maven \n run: mvn -B package --file pom.xml \n- name: Deploy to Pages \n uses: peaceiris/actions-gh-pages@v3 \n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n publish_dir: ./target/generated-site \n```\n\n## \u4e8c\u3001\u5173\u952e\u7ec4\u4ef6\u8bbe\u8ba1\n\n### 1.\u914d\u7f6e\u4e2d\u5fc3\n\n```Java\n@Configuration \npublic class BlogConfig {\n // \u8bfb\u53d6\u7c7b\u4f3cconfig.json \u7684\u914d\u7f6e\uff08\u53c2\u8003requirements.txt \u4f9d\u8d56\u7ba1\u7406[3]()\uff09\n @Value('${blog.baseUrl}') \n private String baseUrl;\n \n // \u96c6\u6210utteranc\u8bc4\u8bba\u7cfb\u7edf\uff08\u5bf9\u5e94post.html \u7684\u8bc4\u8bba\u533a\u5757[9]()\uff09\n @Bean \n public CommentService commentService() {\n return new UtterancCommentImpl();\n }\n}\n```\n\n### 2.\u524d\u7aef\u8d44\u6e90\u7ba1\u7406\n\n\u4fdd\u7559\u539fJS\u63d2\u4ef6\u4f53\u7cfb\u7684\u96c6\u6210\u65b9\u5f0f\uff1a\n```Java\npublic class AssetManager {\n // \u5c06GmeekTocBot.js \u7b49\u63d2\u4ef6\u5199\u5165\u751f\u6210\u76ee\u5f55 \n public void copyPluginFiles(Path outputDir) {\n Files.copy('src/main/resources/static/GmeekTOC.js', \n outputDir.resolve('js/GmeekTOC.js')); \n }\n}\n```\n\n### 3.\u5143\u6570\u636e\u5904\u7406\u5668\n```Java\npublic class MetadataExtractor {\n // \u5b9e\u73b0\u7c7b\u4f3cplist.html \u7684\u6807\u7b7e\u5904\u7406\u903b\u8f91[1]()\n public List<String> extractLabels(JSONObject issueJson) {\n return Arrays.stream(issueJson.getJSONArray('labels')) \n .map(label -> label.getString('name')) \n .collect(Collectors.toList()); \n }\n}\n```\n\n## \u4e09\u3001\u6280\u672f\u9009\u578b\u5efa\u8bae\n\n\n\n## \u56db\u3001\u5178\u578b\u5de5\u4f5c\u6d41\u7a0b\n\n### 1.Issue\u521b\u5efa/\u66f4\u65b0\u4e8b\u4ef6\u89e6\u53d1\n```Mermaid\nsequenceDiagram \n Github Issues->>Java\u670d\u52a1: Webhook\u901a\u77e5 \n Java\u670d\u52a1->>Github API: \u83b7\u53d6Issue\u8be6\u60c5[2]()\n Github API->>Java\u670d\u52a1: \u8fd4\u56deJSON\u6570\u636e \n Java\u670d\u52a1->>StaticGenerator: \u751f\u6210HTML\uff08\u96c6\u6210footer.html[6]() \uff09\n StaticGenerator->>Github Pages: \u63d0\u4ea4\u5230gh-pages\u5206\u652f \n```\n\n\n### 2.\u6784\u5efa\u90e8\u7f72\u6d41\u7a0b\n```Bash\n# \u901a\u8fc7Actions\u5b9e\u73b0CI/CD[10]()\nmvn clean package \n&& java -jar blog-generator.jar \n&& gh-pages -d target/generated-site \n```\n\n## \u4e94\u3001\u6269\u5c55\u6027\u8bbe\u8ba1\n\n### 1.\u63d2\u4ef6\u673a\u5236\n```Java\npublic interface BlogPlugin {\n void apply(PostContent post, TemplateContext context);\n}\n// \u5b9e\u73b0\u7c7b\u4f3cGmeekVercount\u7684\u8bbf\u95ee\u7edf\u8ba1[5]()\n@Component \npublic class VisitCounterPlugin implements BlogPlugin {\n public void apply(PostContent post, TemplateContext ctx) {\n ctx.addScript('<script src='/js/GmeekVercount.js'></script>'); \n }\n}\n```\n\n### 2.\u591a\u4ed3\u5e93\u652f\u6301\n\u901a\u8fc7@ConfigurationProperties\u5b9e\u73b0\u591a\u6e90\u914d\u7f6e\uff1a\n```Java\n@ConfigurationProperties(prefix = 'github')\npublic class RepoConfig {\n private Map<String, RepoProfile> repositories;\n // \u652f\u6301\u540c\u65f6\u7ba1\u7406\u591a\u4e2aGithub Pages\u7ad9\u70b9 \n}\n```\n\n\nps\uff1a\u770b\u5230Gmeek\u7684\u7b2c\u4e00\u773c\u6211\u5c31\u5fd8\u672c\u4e86\uff0c\u6211\u4e5f\u60f3\u505a\u4e00\u4e2a\u8fd9\u73a9\u610f\u3002", "top": 0, "createdAt": 1745330483, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-22", "dateLabelColor": "#0969da"}, "P3": {"htmlDir": "docs/post/yi-xie-yao-zuo-de-shi-qing.html", "labels": ["list to do"], "postTitle": "\u4e00\u4e9b\u8981\u505a\u7684\u4e8b\u60c5", "postUrl": "post/yi-xie-yao-zuo-de-shi-qing.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/3", "commentNum": 0, "wordCount": 186, "description": "1.\u9879\u76ee\u8bdd\u672f\uff1a\n\n- [\u6821\u56ed\u5feb\u9001](https://blog.csdn.net/qq_45195447/article/details/143307640)\n- [\u8bda\u901a\u51fa\u884c]()\n\n2.\u4fe1\u606f\u6982\u8bba\u7b54\u8fa9 \n### 4\u670828\u65e5\u4e0a\u5348\n\n3.HSBC \u9762\u8bd5\u9884\u7ea6\n\n4.\u62db\u5546\u8bad\u7ec3\u8425\n\n5.\u4eca\u5929\u5bf9\u81ea\u5df1\u7684\u7b80\u5386\u8fdb\u884c\u4e86\u5927\u6539\uff0c\u90e8\u5206\u5730\u65b9\u9700\u8981\u8fdb\u884c\u5f3a\u5316\uff0c\u5c24\u5176\u662f\u2460\u6570\u636e\u662f\u5426\u6b63\u786e\uff0c\u600e\u4e48\u6765\u7684\u2461\u76f8\u5bf9\u964c\u751f\u7684\u6280\u672f\u3002", "top": 0, "createdAt": 1745597669, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-26", "dateLabelColor": "#0969da"}, "P4": {"htmlDir": "docs/post/fen-bu-shi-shi-wu-kuang-jia-\uff1aSeata.html", "labels": ["\u5206\u5e03\u5f0f\u4e8b\u52a1", "\u6846\u67b6"], "postTitle": "\u5206\u5e03\u5f0f\u4e8b\u52a1\u6846\u67b6\uff1aSeata", "postUrl": "post/fen-bu-shi-shi-wu-kuang-jia-%EF%BC%9ASeata.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/4", "commentNum": 0, "wordCount": 111, "description": "# \u57fa\u4e8eSeata\u6846\u67b6\u6dfb\u52a0\u5206\u5e03\u5f0f\u4e8b\u52a1\n\n- \u9879\u76ee\u4e2d\u5f88\u591a\u529f\u80fd\u90fd\u53ef\u4ee5\u6dfb\u52a0\u5206\u5e03\u5f0f\u4e8b\u52a1\u3002", "top": 0, "createdAt": 1745601546, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-26", "dateLabelColor": "#0969da"}, "P6": {"htmlDir": "docs/post/ben-di-shang-chuan-xiang-mu-de-zui-su-liu-cheng.html", "labels": ["git command"], "postTitle": "\u672c\u5730\u4e0a\u4f20\u9879\u76ee\u7684\u6700\u901f\u6d41\u7a0b", "postUrl": "post/ben-di-shang-chuan-xiang-mu-de-zui-su-liu-cheng.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/6", "commentNum": 0, "wordCount": 1410, "description": "\u82e5\u672c\u5730\u5df2\u6709\u9879\u76ee\uff0c\u60f3\u5c06\u5176\u4e0a\u4f20\u5230\u65b0\u7684 GitHub \u4ed3\u5e93\uff0c\u53ef\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\n\n### 1. \u5728 GitHub \u521b\u5efa\u65b0\u4ed3\u5e93\n- \u767b\u5f55 GitHub \u8d26\u53f7\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 \u201c+\u201d \u53f7\uff0c\u9009\u62e9 \u201cNew repository\u201d\u3002", "top": 0, "createdAt": 1745827014, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-28", "dateLabelColor": "#0969da"}, "P7": {"htmlDir": "docs/post/ruan-jian-ce-shi-mian-jing.html", "labels": ["\u8f6f\u4ef6\u6d4b\u8bd5", "\u9762\u7ecf"], "postTitle": "\u8f6f\u4ef6\u6d4b\u8bd5\u9762\u7ecf", "postUrl": "post/ruan-jian-ce-shi-mian-jing.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/7", "commentNum": 0, "wordCount": 1186, "description": "### \u6d4b\u8bd5\u5de5\u4f5c\u662f\u600e\u4e48\u8fdb\u884c\u7684\n\n> [!NOTE]\n> \u6839\u636e\u9700\u6c42\u89c4\u683c\u8bf4\u660e\u4e66\u505a\u6d4b\u8bd5\u9700\u6c42\u5206\u6790\uff0c\u5236\u5b9a\u6d4b\u8bd5\u8ba1\u5212\uff08\u5305\u62ec\u6d4b\u8bd5\u5206\u7ec4\u3001\u6d4b\u8bd5\u6a21\u5757\u5206\u5de5\u3001\u6d4b\u8bd5\u65f6\u95f4\u4ee5\u53ca\u8fdb\u5ea6\u5b89\u6392\uff09\uff0c\u7ec4\u5458\u6309\u5206\u5de5\u7f16\u5199\u7528\u4f8b\uff0c\u7528\u4f8b\u7f16\u5199\u5b8c\u6210\u8fdb\u884c\u5ba1\u6838\uff0c\u5ba1\u6838\u901a\u8fc7\u540e\u6309\u6d4b\u8bd5\u65f6\u7528\u4f8b\u548c\u529f\u80fd\u5206\u5de5\u8fdb\u884c\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u65f6\u8003\u8651\u6d4f\u89c8\u5668\u662f\u5426\u517c\u5bb9\uff0c\u53d1\u73b0bug\u5219\u63d0\u4ea4issue\uff0c\u5e76\u5bf9bug\u8fdb\u884c\u8ddf\u8e2a\u76f4\u5230\u7f3a\u9677\u53ef\u4ee5\u63a5\u53d7\uff0c\u6700\u540e\u5206\u6790\u6d4b\u8bd5\u7ed3\u679c\uff0c\u64b0\u5199\u6d4b\u8bd5\u62a5\u544a\u3002", "top": 0, "createdAt": 1745843778, "style": "<style>.markdown-alert{padding:0.5rem 1rem;margin-bottom:1rem;border-left:.25em solid var(--borderColor-default,var(--color-border-default));}.markdown-alert .markdown-alert-title {display:flex;font-weight:var(--base-text-weight-medium,500);align-items:center;line-height:1;}.markdown-alert>:first-child {margin-top:0;}.markdown-alert>:last-child {margin-bottom:0;}</style><style>.markdown-alert.markdown-alert-note {border-left-color:var(--borderColor-accent-emphasis, var(--color-accent-emphasis));background-color:var(--color-accent-subtle);}.markdown-alert.markdown-alert-note .markdown-alert-title {color: var(--fgColor-accent,var(--color-accent-fg));}</style><style>.markdown-alert.markdown-alert-tip {border-left-color:var(--borderColor-success-emphasis, var(--color-success-emphasis));background-color:var(--color-success-subtle);}.markdown-alert.markdown-alert-tip .markdown-alert-title {color: var(--fgColor-success,var(--color-success-fg));}</style><style>.markdown-alert.markdown-alert-warning {border-left-color:var(--borderColor-attention-emphasis, var(--color-attention-emphasis));background-color:var(--color-attention-subtle);}.markdown-alert.markdown-alert-warning .markdown-alert-title {color: var(--fgColor-attention,var(--color-attention-fg));}</style>", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-28", "dateLabelColor": "#0969da"}, "P8": {"htmlDir": "docs/post/niu-ke-shang-shou-ji-de-ce-shi-mian-jing-\uff08-yi-\uff09.html", "labels": ["\u8f6f\u4ef6\u6d4b\u8bd5", "\u9762\u7ecf", "\u725b\u5ba2"], "postTitle": "\u725b\u5ba2\u4e0a\u6536\u96c6\u7684\u6d4b\u8bd5\u9762\u7ecf\uff08\u4e00\uff09", "postUrl": "post/niu-ke-shang-shou-ji-de-ce-shi-mian-jing-%EF%BC%88-yi-%EF%BC%89.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/8", "commentNum": 0, "wordCount": 2702, "description": " **1\u3001get\u548cpost\u65b9\u6cd5\u7684\u533a\u522b\uff1f**\n\u6839\u636e RFC \u89c4\u8303\uff1a\n```\nGET \u7684\u8bed\u4e49\u662f\u4ece\u670d\u52a1\u5668\u83b7\u53d6\u6307\u5b9a\u7684\u8d44\u6e90\n\u63a8\u7406\u5f97\u5230\uff1aGET \u65b9\u6cd5\u5b89\u5168\u4e14\u5e42\u7b49\uff0c\u56e0\u4e3aGET\u53ea\u8bfb\uff0c\u6570\u636e\u53ef\u4ee5\u7f13\u5b58\u5728\u6d4f\u89c8\u5668\uff08\u4fdd\u5b58\u4e3a\u4e66\u7b7e\uff09/\u4ee3\u7406\uff08nginx\uff09\u4e2d\n``` \n```\nPOST \u7684\u8bed\u4e49\u662f\u6839\u636e\u8bf7\u6c42\u8d1f\u8377\uff08\u62a5\u6587body\uff09\u5bf9\u6307\u5b9a\u7684\u8d44\u6e90\u505a\u51fa\u5904\u7406\uff0c\u5177\u4f53\u7684\u5904\u7406\u65b9\u5f0f\u89c6\u8d44\u6e90\u7c7b\u578b\u800c\u4e0d\u540c\n\u63a8\u7406\u5f97\u5230\uff1aPOST \u56e0\u4e3a\u4f1a\u4fee\u6539\u6570\u636e\uff0c\u6240\u4ee5\u4e0d\u5b89\u5168\uff0c\u56e0\u4e3a\u91cd\u590d\u8bf7\u6c42\u4f1a\u5bfc\u81f4\u7ed3\u679c\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5\u4e0d\u662f\u5e42\u7b49\u7684\uff0c\u7efc\u4e0aPOST\u8bf7\u6c42\u4e0d\u4f1a\u88ab\u7f13\u5b58\uff0c\u4e5f\u4e0d\u80fd\u4fdd\u5b58\u4e3a\u6d4f\u89c8\u5668\u4e66\u7b7e\n``` \n\n\n\n**2\u3001http\u548chttps\u7684\u533a\u522b\uff1f**\n\n\u534f\u8bae\uff1aHTTP \u5373\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff0c\u9ed8\u8ba4\u660e\u6587\u4f20\u8f93\uff0c\u4e0d\u5b89\u5168\uff1bHTTPS \u5728 TCP \u548c HTTP \u4e4b\u95f4\u589e\u52a0SSL/TLS \u5b89\u5168\u534f\u8bae \u52a0\u5bc6\u4f20\u8f93 \n\u63e1\u624b\uff1aHTTP TCP \u4e09\u6b21\u63e1\u624b\u5373\u53ef\u4f20\u8f93 \uff1b HTTPS \u589e\u52a0 SSL/TLS \u7684\u63e1\u624b\n\u7aef\u53e3\uff1aHTTP 80 \uff1bHTTPS 443\n\u5efa\u8bae\u8df3\u8f6c [\u5c0f\u6797](https://xiaolincoding.com/interview/linux.html#linux-%E5%91%BD%E4%BB%A4%E9%9D%A2%E8%AF%95%E9%A2%98)\n\n**3\u3001Linux\u5e38\u7528\u547d\u4ee4\uff1f**\n\n\u6587\u4ef6\u76f8\u5173(mv mkdir cd ls)\n\u8fdb\u7a0b\u76f8\u5173( ps top netstate )\n\u6743\u9650\u76f8\u5173(chmod chown useradd groupadd)\n\u7f51\u7edc\u76f8\u5173(netstat ip addr)\n\u6d4b\u8bd5\u76f8\u5173(\u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a\u6027:ping \u6d4b\u8bd5\u7aef\u53e3\u8fde\u901a\u6027:telnet)\n\n**4\u3001Java\u4e2dequals()\u65b9\u6cd5\u548c==\u7684\u533a\u522b\uff1f**\n\u5bf9\u4e8e\u5b57\u7b26\u4e32\u53d8\u91cf\n```\n'=='\u6bd4\u8f83\u5185\u5b58\u4e2d\u7684\u9996\u5730\u5740 \uff1b 'equals'\u6bd4\u8f83\u5b57\u7b26\u4e32\u5305\u542b\u5185\u5bb9\uff0c\u56e0\u4e3aJava\u4e2d\u53c2\u6570\u4e3astring\u7684equals\u662f\u9ed8\u8ba4\u91cd\u5199\u7684\n``` \n\n\n\u5bf9\u4e8e\u975e\u5b57\u7b26\u4e32\u53d8\u91cf\n```\n\u5982\u679c\u6ca1\u6709\u91cd\u5199equals\u65b9\u6cd5\uff0c\u90a3\u4e48\u90fd\u662f\u6bd4\u8f83\u5806\u5185\u5b58\u4e2d\u7684\u9996\u5730\u5740\n``` \n\n**5\u3001Java\u4e2d\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff1f**\n8\u79cd\n* 6\u79cd\u6570\u503c\u578b\uff1a\u6574\u6570\u7c7b\u578b\uff08byte\u3001short\u3001int\u3001long\uff09\u548c\u6d6e\u70b9\u7c7b\u578b\uff08float\u3001double\uff09\n* \u5b57\u7b26\u578b\uff1achar\n* \u5e03\u5c14\u578b\uff1aboolean \n\n**6\u3001Java\u591a\u7ebf\u7a0b\u6709\u54ea\u4e9b\u5b9e\u73b0\u65b9\u5f0f\uff1f**\n\u601d\u60f3 > \u4ee3\u7801\n\u4ec0\u4e48\u662f\uff1a\u7c7b\u4f3c\u4e00\u5fc3\u591a\u7528\uff0c\u4e00\u673a\u591a\u7528\n\u600e\u4e48\u5b9e\u73b0\nway1\n```\n1.\u5b9a\u4e49\u4e00\u4e2a\u7c7b\uff0c\u7ee7\u627fThread\u7c7b\uff0c\u91cd\u5199run\u65b9\u6cd5\uff08\u8fd9\u4e2a\u65b9\u6cd5\u91cc\u9762\u5199\u7ebf\u7a0b\u7684\u529f\u80fd\uff09\u3002", "top": 0, "createdAt": 1745849260, "style": "<style>.markdown-alert{padding:0.5rem 1rem;margin-bottom:1rem;border-left:.25em solid var(--borderColor-default,var(--color-border-default));}.markdown-alert .markdown-alert-title {display:flex;font-weight:var(--base-text-weight-medium,500);align-items:center;line-height:1;}.markdown-alert>:first-child {margin-top:0;}.markdown-alert>:last-child {margin-bottom:0;}</style><style>.markdown-alert.markdown-alert-note {border-left-color:var(--borderColor-accent-emphasis, var(--color-accent-emphasis));background-color:var(--color-accent-subtle);}.markdown-alert.markdown-alert-note .markdown-alert-title {color: var(--fgColor-accent,var(--color-accent-fg));}</style>", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-28", "dateLabelColor": "#0969da"}, "P9": {"htmlDir": "docs/post/ru-he-she-ji-ce-shi-yong-li.html", "labels": ["\u8f6f\u4ef6\u6d4b\u8bd5", "\u9762\u7ecf"], "postTitle": "\u5982\u4f55\u8bbe\u8ba1\u6d4b\u8bd5\u7528\u4f8b", "postUrl": "post/ru-he-she-ji-ce-shi-yong-li.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/9", "commentNum": 0, "wordCount": 153, "description": "# \u670b\u53cb\u5708\u7684\u70b9\u8d5e\u529f\u80fd\uff0c\u5982\u4f55\u8bbe\u8ba1\u6d4b\u8bd5\u7528\u4f8b\uff1f\n\n- \u529f\u80fd\uff1a\u6b63\u5e38\u4f7f\u7528\u548c\u8fb9\u754c\u60c5\u51b5\n- \u6027\u80fd\uff1a\u9ad8\u5e76\u53d1\u60c5\u51b5\u4e0b\u7684\u4f7f\u7528\n- \u517c\u5bb9\uff1a\u4e0d\u540c\u8bbe\u5907\u3001\u64cd\u4f5c\u7cfb\u7edf\u3001\u4e0d\u540c\u7248\u672c\u80fd\u5426\u517c\u5bb9\n- \u5b89\u5168/\u6743\u9650\uff1a\u672a\u767b\u5f55\u65e0\u6cd5\u67e5\u770b\uff0c\u9690\u79c1\u5b89\u5168\u7b49\n- \u754c\u9762\uff1a\u6837\u5f0f\u3001\u989c\u8272\u3001\u6392\u7248\u7b49\n- \u7f51\u7edc\uff1a\u5f31\u7f51\u4f7f\u7528\uff0c\u65ad\u7f51\u540e\u6570\u636e\u540c\u6b65\n- \u4e2d\u65ad\uff1a\u6765\u7535\u3001\u77ed\u4fe1\u5e72\u6270\u7b49\u4e2d\u65ad\u540e\u80fd\u6b63\u786e\u5904\u7406\u5417\u3002", "top": 0, "createdAt": 1745892537, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-29", "dateLabelColor": "#0969da"}, "P10": {"htmlDir": "docs/post/Redis_Redission-ke-zhong-ru-\u3001-zhong-shi-suo-yi-ji-MultiLock-yuan-li.html", "labels": ["Redis", "\u5206\u5e03\u5f0f", "Redission", "Lua"], "postTitle": "Redis_Redission\u53ef\u91cd\u5165\u3001\u91cd\u8bd5\u9501\u4ee5\u53caMultiLock\u539f\u7406", "postUrl": "post/Redis_Redission-ke-zhong-ru-%E3%80%81-zhong-shi-suo-yi-ji-MultiLock-yuan-li.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/10", "commentNum": 0, "wordCount": 2574, "description": "# Redisson\u7684\u53ef\u91cd\u5165\u9501\uff08Reentrant Lock\uff09\u662f\u57fa\u4e8eRedis\u5b9e\u73b0\u7684\u5206\u5e03\u5f0f\u9501\u3002", "top": 0, "createdAt": 1745894244, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-29", "dateLabelColor": "#0969da"}, "P11": {"htmlDir": "docs/post/ge-ren-xiang-mu-lian-jie.html", "labels": ["\u4e2a\u4eba\u9879\u76ee"], "postTitle": "\u4e2a\u4eba\u9879\u76ee\u8fde\u63a5", "postUrl": "post/ge-ren-xiang-mu-lian-jie.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/11", "commentNum": 0, "wordCount": 69, "description": "[\u524d\u7aef\u7ec3\u624b\u9879\u76ee](https://github.com/therain2020/Better-Vue3-Vite-application)\u3002", "top": 0, "createdAt": 1745943983, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-04-30", "dateLabelColor": "#0969da"}, "P12": {"htmlDir": "docs/post/mian-jing-_HashMap-xiang-guan.html", "labels": ["\u9762\u7ecf", "HashMap", "\u96c6\u5408", "Java"], "postTitle": "\u9762\u7ecf_HashMap\u76f8\u5173", "postUrl": "post/mian-jing-_HashMap-xiang-guan.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/12", "commentNum": 0, "wordCount": 2656, "description": "# hash\u65b9\u6cd5\u6e90\u7801\u53c2\u8003\n```\nJDK 1.8\n static final int hash(Object key) {\n int h;\n // key.hashCode()\uff1a\u8fd4\u56de\u6563\u5217\u503c\u4e5f\u5c31\u662fhashcode\n // ^\uff1a\u6309\u4f4d\u5f02\u6216\n // >>>:\u65e0\u7b26\u53f7\u53f3\u79fb\uff0c\u5ffd\u7565\u7b26\u53f7\u4f4d\uff0c\u7a7a\u4f4d\u90fd\u4ee50\u8865\u9f50\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n //h >>> 16\u8868\u793a\u5c06\u6574\u6570h\uff0832\u4f4d\uff09\u65e0\u7b26\u53f7\u53f3\u79fb16\u4f4d\uff0c\u9ad8\u4f4d\u88650\n //\u76f4\u63a5\u4f7f\u7528hashcode\uff0c\u82e5\u591a\u4e2a\u952e\u7684\u54c8\u5e0c\u503c\u4ec5\u9ad8\u4f4d\u4e0d\u540c\uff0c\u4f4e\u4f4d\u76f8\u540c\uff0c\u4f1a\u5bfc\u81f4\u5b83\u4eec\u88ab\u5206\u914d\u5230\u540c\u4e00\u6570\u7ec4\u69fd\u4f4d\n //\u901a\u8fc7\u8be5\u64cd\u4f5c\uff0c\u54c8\u5e0c\u503c\u7684\u4f4e16\u4f4d\u7efc\u5408\u4e86\u9ad816\u4f4d\u7684\u4fe1\u606f\uff0c\u4f7f\u5f97(n-1) & hash\u7684\u7ed3\u679c\u66f4\u5747\u5300\u5206\u5e03\uff0c\u964d\u4f4e\u78b0\u649e\u6982\u7387\n }\n\n\n\nJDK 1.7\n static int hash(int h) {\n // This function ensures that hashCodes that differ only by\n // constant multiples at each bit position have a bounded\n // number of collisions (approximately 8 at default load factor).\n\n h ^= (h >>> 20) ^ (h >>> 12);\n return h ^ (h >>> 7) ^ (h >>> 4);\n}\n\n```\n\n\u62c9\u94fe\u6cd5\uff1a\n> \u5373\uff0c\u5c06\u94fe\u8868\u548c\u6570\u7ec4\u7ed3\u5408\uff0c\u521b\u5efa\u4e00\u4e2a\u94fe\u8868\u6570\u7ec4\uff0c\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e00\u683c\u5c31\u662f\u4e00\u4e2a\u94fe\u8868\uff0c\u9047\u5230\u54c8\u5e0c\u51b2\u7a81\uff0c\u5219\u5c06\u51b2\u7a81\u7684\u503c\u52a0\u5230\u94fe\u8868\u4e2d\n\nJDK 1.8\u4ee5\u540e\uff0c\u53d8\u5316\u8f83\u5927\n - \u94fe\u8868\u957f\u5ea6\u5927\u4e8e\u9608\u503c\uff08\u9ed8\u8ba4\u4e3a8\uff09\u65f6\uff0c\u9996\u5148\u8c03\u7528treeifyBin\uff08\uff09\u65b9\u6cd5\uff0c\u65b9\u6cd5\u6839\u636eHashMap\u6570\u7ec4\u957f\u5ea6\u51b3\u5b9a\u662f\u5426\u8f6c\u6362\u4e3a\u7ea2\u9ed1\u6811\u3002", "top": 0, "createdAt": 1746434945, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-05", "dateLabelColor": "#0969da"}, "P13": {"htmlDir": "docs/post/mo-ni-mian-shi-_AI-ti-shi-ci.html", "labels": ["AIGC", "\u9762\u8bd5"], "postTitle": "\u6a21\u62df\u9762\u8bd5_AI\u63d0\u793a\u8bcd", "postUrl": "post/mo-ni-mian-shi-_AI-ti-shi-ci.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/13", "commentNum": 0, "wordCount": 615, "description": "\u8fd9\u91cc\u7684\u63d0\u793a\u8bcd\u53ef\u4ee5\u7528\u4e8e\u6a21\u62df\u9762\u8bd5\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u56de\u7b54\u9762\u8bd5\u95ee\u9898\u3002", "top": 0, "createdAt": 1746691513, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-08", "dateLabelColor": "#0969da"}, "P14": {"htmlDir": "docs/post/mian-jing-_Redis-xiang-guan.html", "labels": ["\u9762\u7ecf", "Redis"], "postTitle": "\u9762\u7ecf_Redis\u76f8\u5173", "postUrl": "post/mian-jing-_Redis-xiang-guan.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/14", "commentNum": 0, "wordCount": 3063, "description": "### Redis \u5e38\u89c1\u6570\u636e\u7c7b\u578b\u548c\u5e94\u7528\u573a\u666f\n\n\u5e38\u89c1\u7684\u6709\u4e94\u79cd\uff1aString\u3001Hash\u3001List\u3001Set\u3001Zset\n\n\u65b0\u7248\u672c\u589e\u52a0\u7684\uff1aBitMap\u3001HyperLogLog\u3001GEO\u3001Stream\n\n### Redis\u4e3a\u4ec0\u4e48\u90a3\u4e48\u5feb\uff1f\n1.\u662f\u5185\u5b58\u6570\u636e\u5e93\uff0c\u6240\u6709\u64cd\u4f5c\u90fd\u5728\u5185\u5b58\u4e0a\u8fdb\u884c\n2.Redis\u5b9e\u73b0\u7684\u6570\u636e\u7ed3\u6784\u4f7f\u5f97\u6211\u4eec\u5728\u5bf9\u6570\u636e\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c\u65f6\uff0cRedis\u80fd\u9ad8\u6548\u5904\u7406\n\uff08Redis\u5b9e\u73b0\u7684\u6570\u636e\u7ed3\u6784\u652f\u6301\u5bf9\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u589e\u5220\u6539\u67e5\u64cd\u4f5c\uff09\n\n> PS:\n> Redis\u6570\u636e\u7ed3\u6784\u5e76\u4e0d\u662f\u6570\u636e\u7c7b\u578b\uff08String\u3001List\u3001Hash\u3001Zset\u3001Set\uff09\uff0c\u6570\u636e\u7c7b\u578b\u662fRedis\u952e\u503c\u5bf9\u4e2dvalue\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5373\u6570\u636e\u7684\u4fdd\u5b58\u5f62\u5f0f\u3002", "top": 0, "createdAt": 1746691854, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-08", "dateLabelColor": "#0969da"}, "P15": {"htmlDir": "docs/post/Redis_-chi-jiu-hua.html", "labels": ["Redis", "\u6301\u4e45\u5316"], "postTitle": "Redis_\u6301\u4e45\u5316", "postUrl": "post/Redis_-chi-jiu-hua.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/15", "commentNum": 0, "wordCount": 2292, "description": "# Redis\u6301\u4e45\u5316\n\n## \u6301\u4e45\u5316\u662f\u4ec0\u4e48\n> \u6301\u4e45\u5316\u5373\u5c06\u5185\u5b58\u4e2d\u7684\u6570\u636e\u5199\u5165\u786c\u76d8\uff0c\u76ee\u6807\u662f\u4e3a\u4e86\u4e4b\u540e\u91cd\u7528\u6570\u636e\u6216\u505a\u6570\u636e\u540c\u6b65\u3002", "top": 0, "createdAt": 1746691966, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-08", "dateLabelColor": "#0969da"}, "P16": {"htmlDir": "docs/post/mian-jing-_-hua-zi-ruan-jian-er-mian.html", "labels": ["\u9762\u7ecf", "Java", "\u9762\u8bd5", "25\u5e745\u6708", "Mybatis", "\u6570\u636e\u5e93", "\u7b97\u6cd5"], "postTitle": "\u9762\u7ecf_\u534e\u8d44\u8f6f\u4ef6\u4e8c\u9762", "postUrl": "post/mian-jing-_-hua-zi-ruan-jian-er-mian.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/16", "commentNum": 0, "wordCount": 1120, "description": "\u57fa\u7840\uff1a\n### 1.Mybatis\u4e2d\u7684#\u548c$\u7684\u533a\u522b\n- \u5728\u5904\u7406 #{} \u65f6\uff0c\u4f1a\u521b\u5efa\u9884\u7f16\u8bd1\u7684 SQL \u8bed\u53e5\uff0c\u5c06 SQL \u4e2d\u7684 #{} \u66ff\u6362\u4e3a ? \u53f7\uff0c\u5728\u6267\u884c SQL \u65f6\u4f1a\u4e3a\u9884\u7f16\u8bd1 SQL \u4e2d\u7684\u5360\u4f4d\u7b26\uff08?\uff09\u8d4b\u503c\uff0c\u8c03\u7528 PreparedStatement \u7684 set \u65b9\u6cd5\u6765\u8d4b\u503c\uff0c\u9884\u7f16\u8bd1\u7684 SQL \u8bed\u53e5\u6267\u884c\u6548\u7387\u9ad8\uff0c\u5e76\u4e14\u53ef\u4ee5\u9632\u6b62SQL \u6ce8\u5165\uff0c\u63d0\u4f9b\u66f4\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u9002\u5408\u4f20\u9012\u53c2\u6570\u503c\u3002", "top": 0, "createdAt": 1746858838, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-10", "dateLabelColor": "#0969da"}, "P17": {"htmlDir": "docs/post/mian-jing-_-he-fei-da-zhi-hui-er-mian.html", "labels": ["\u9762\u7ecf", "\u9762\u8bd5", "25\u5e745\u6708", "ElasticSearch"], "postTitle": "\u9762\u7ecf_\u5408\u80a5\u5927\u667a\u6167\u4e8c\u9762", "postUrl": "post/mian-jing-_-he-fei-da-zhi-hui-er-mian.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/17", "commentNum": 0, "wordCount": 1921, "description": "### \u5982\u4f55\u5728\u4e00\u4e2a\u6587\u6863\u4e2d\u5feb\u901f\u5b9a\u4f4d\u4e00\u4e2a\u5173\u952e\u8bcd\n\u6570\u636e\u91cf\u5c0f\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u7528\u5b57\u7b26\u4e32\u5339\u914d\n\n### \u6709\u54ea\u4e9b\u5b57\u7b26\u4e32\u5339\u914d\u7b97\u6cd5\uff0c\u600e\u4e48\u4f18\u5316\nKMP\u7b97\u6cd5\n\n### \u5982\u4f55\u5728\u4e0a\u4ebf\u4e2a\u6587\u6863\u4e2d\u5feb\u901f\u5b9a\u4f4d\u4e00\u4e2a\u5173\u952e\u8bcd\n\u53ef\u4ee5\u7528\u5012\u6392\u7d22\u5f15\n\n\n### ES\u5206\u8bcd\u9519\u8bef\u7684\u60c5\u51b5\u5982\u4f55\u5904\u7406/es\u5206\u8bcd\u5bfc\u81f4\u67e5\u8be2\u7ed3\u679c\u4e0d\u51c6\u786e\n\u95ee\u9898\u7684\u5177\u4f53\u63cf\u8ff0\u662f\uff1a\u7d22\u5f15\u91cc\u9762\u6709\u6570\u636e\uff0c\u5374\u65e0\u6cd5\u67e5\u8be2\u51fa\u6765\u3002", "top": 0, "createdAt": 1746858976, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-10", "dateLabelColor": "#0969da"}, "P18": {"htmlDir": "docs/post/Net_IP.html", "labels": ["Net", "IP"], "postTitle": "Net_IP", "postUrl": "post/Net_IP.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/18", "commentNum": 0, "wordCount": 2691, "description": "# 1IP\u57fa\u7840\u77e5\u8bc6\u5168\u5bb6\u6876\n\n\n## 1.1\u8ba4\u8bc6IP\n\nIP\u4f4d\u4e8eTCP/IP\u53c2\u8003\u6a21\u578b\u4e2d\u7684\u7b2c\u4e09\u5c42\uff0c\u7f51\u7edc\u5c42\n\u7f51\u7edc\u5c42\u4e3b\u8981\u4f5c\u7528\u662f\uff1a\u5b9e\u73b0\u4e3b\u673a\u4e0e\u4e3b\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u4e5f\u53eb\u70b9\u5bf9\u70b9\uff08end to end\uff09\u901a\u4fe1\n> \u7f51\u7edc\u5c42\u548c\u6570\u636e\u94fe\u8def\u5c42\u6709\u4ec0\u4e48\u5173\u7cfb\n> IP\u7684\u8d1f\u8d23\u5728**\u6ca1\u6709\u76f4\u8fde**\u7684\u4e24\u4e2a\u7f51\u7edc\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u4f20\u8f93\uff0c\u6362\u53e5\u8bdd\u8bf4\u4f5c\u7528\u662f\u5728\u590d\u6742\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u5c06\u6570\u636e\u5305\u53d1\u9001\u7ed9\u6700\u7ec8\u76ee\u7684\u4e3b\u673a\n> MAC\u7684\u4f5c\u7528\u662f\u5b9e\u73b0**\u76f4\u8fde**\u7684\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\n> \u5728\u6ca1\u6709\u4f7f\u7528NAT\u7f51\u7edc\u7684\u60c5\u51b5\u4e0b\uff0c\u6e90IP\u548c\u76ee\u6807IP\u5730\u5740\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u53d8\u5316\uff0c\u53ea\u6709\u6e90MAC\u5730\u5740\u548c\u76ee\u6807MAC\u4e00\u76f4\u53d8\u5316\u3002", "top": 0, "createdAt": 1746875944, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-10", "dateLabelColor": "#0969da"}, "P19": {"htmlDir": "docs/post/OS_-jin-cheng-guan-li.html", "labels": ["OS", "\u8fdb\u7a0b\u7ba1\u7406"], "postTitle": "OS_\u8fdb\u7a0b\u7ba1\u7406", "postUrl": "post/OS_-jin-cheng-guan-li.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/19", "commentNum": 0, "wordCount": 4361, "description": "# 1.\u8fdb\u7a0b\u3001\u7ebf\u7a0b\u57fa\u7840\u77e5\u8bc6\n\n## 1.1 \u8fdb\u7a0b\n\n\u8fdb\u7a0b\u662f\u4ec0\u4e48\n> \u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\n\n\u4e2d\u65ad\u662f\u4ec0\u4e48\n> CPU\u53ef\u4ee5\u4ece\u8fdb\u7a0b1\u5207\u6362\u5230\u8fdb\u7a0b2\uff0c\u8bb0\u5f55\u8fdb\u7a0b1\u5f53\u524d\u72b6\u6001\uff0c\u8981\u6062\u590d\u6267\u884c\u8fdb\u7a0b1\u5c31\u9700\u8981\u5411CPU\u53d1\u9001\u4e2d\u65ad\n\n\u5e76\u884c\u548c\u5e76\u53d1\u7684\u533a\u522b\n> \u5e76\u884c\uff1a\u540c\u4e00\u65f6\u523b\uff0c\u8fdb\u884c\u591a\u4e2a\u4efb\u52a1\u3002", "top": 0, "createdAt": 1746876680, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-10", "dateLabelColor": "#0969da"}, "P20": {"htmlDir": "docs/post/mian-jing-_-a-li-guo-ji-429.html", "labels": ["\u9762\u7ecf"], "postTitle": "\u9762\u7ecf_\u963f\u91cc\u56fd\u9645429", "postUrl": "post/mian-jing-_-a-li-guo-ji-429.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/20", "commentNum": 0, "wordCount": 6800, "description": "\u624b\u6495\uff1aHashMap\n\n\u81ea\u6211\u4ecb\u7ecd\n\n\n# \u8d1f\u8f7d\u5747\u8861\n\n1.\u5e38\u89c1\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\uff08\u8fd9\u9898\u53ef\u4ee5\u5fae\u670d\u52a1\u3001SpringCloud\u3001Net\u7b49\u7b49\u89d2\u5ea6\u5207\u5165\u8003\u5bdf\uff09\n> \u7b80\u5355\u8f6e\u8be2\uff1a\u5c06\u8bf7\u6c42\u6309\u987a\u5e8f\u5206\u53d1\u7ed9\u540e\u7aef\u670d\u52a1\u5668\uff0c\u4e0d\u5173\u5fc3\u670d\u52a1\u5668\u5f53\u524d\u72b6\u6001\uff08\u6027\u80fd\u3001\u5f53\u524d\u8d1f\u8f7d\u7b49\uff09\n> \u52a0\u6743\u8f6e\u8be2\uff1a\u5c06\u8bf7\u6c42\u6309\u987a\u5e8f\u548c\u6743\u91cd\uff08\u6839\u636e\u6027\u80fd\u8bbe\u7f6e\u6743\u91cd\uff09\u5206\u53d1\u7ed9\u540e\u7aef\u670d\u52a1\u5668\uff0c\u8ba9\u9ad8\u6027\u80fd\u673a\u5668\u5904\u7406\u66f4\u591a\u8bf7\u6c42\n> \u7b80\u5355\u968f\u673a\uff1a\u5c06\u8bf7\u6c42\u968f\u673a\u5206\u53d1\u7ed9\u540e\u7aef\u670d\u52a1\u5668\uff0c\u8bf7\u6c42\u8d8a\u591a\uff0c\u5404\u4e2a\u670d\u52a1\u5668\u6536\u5230\u7684\u8bf7\u6c42\u8d8a\u5e73\u5747\n> \u52a0\u6743\u968f\u673a\uff1a\u5c06\u8bf7\u6c42\u6309\u6743\u91cd\uff08\u6839\u636e\u6027\u80fd\u8bbe\u7f6e\u6743\u91cd\uff09\u968f\u673a\u5206\u53d1\u7ed9\u540e\u7aef\u670d\u52a1\u5668\n> \u4e00\u81f4\u6027\u54c8\u5e0c\uff1a**\u6839\u636e\u8bf7\u6c42\u7684\u5ba2\u6237\u7aefIP\u3001\u6216\u8bf7\u6c42\u53c2\u6570\u901a\u8fc7\u54c8\u5e0c\u7b97\u6cd5\u5f97\u5230\u4e00\u4e2a\u6570\u503c\uff0c\u5229\u7528\u8be5\u6570\u503c\u53d6\u6a21\u6620\u5c04\u51fa\u5bf9\u5e94\u7684\u540e\u7aef\u670d\u52a1\u5668\uff0c\u4fdd\u8bc1\u540c\u4e00\u4e2a\u5ba2\u6237\u7aef\u6216\u76f8\u540c\u53c2\u6570\u7684\u8bf7\u6c42\u6bcf\u6b21\u90fd\u4f7f\u7528\u540c\u4e00\u53f0\u670d\u52a1\u5668**\n> \u6700\u5c0f\u6d3b\u8dc3\u6570\uff1a\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u8bf7\u6c42\u6d3b\u8dc3\u6570\u6700\u5c11\uff08\u7edf\u8ba1\u6bcf\u53f0\u670d\u52a1\u5668\u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u76ee\uff09\u7684\u540e\u53f0\u670d\u52a1\u5668\n\n**\u7cfb\u7edf\u8bbe\u8ba1\u89d2\u5ea6\u7684\u8d1f\u8f7d\u5747\u8861\uff1a**\n> \u786c\u4ef6\u8d1f\u8f7d\u5747\u8861\uff1a\u4f7f\u7528\u4e13\u7528\u7684\u786c\u4ef6\u8bbe\u5907\u6765\u5206\u914d\u6d41\u91cf\u3002", "top": 0, "createdAt": 1747042099, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-12", "dateLabelColor": "#0969da"}, "P21": {"htmlDir": "docs/post/mian-jing-_-a-li-guo-ji-506.html", "labels": ["\u9762\u7ecf"], "postTitle": "\u9762\u7ecf_\u963f\u91cc\u56fd\u9645506", "postUrl": "post/mian-jing-_-a-li-guo-ji-506.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/21", "commentNum": 0, "wordCount": 2459, "description": "# part1\n## \u8bb2\u8bb2\u6700\u8fd1\u7684\u9879\u76ee\uff0c\u90fd\u6709\u54ea\u4e9b\u6a21\u5757\uff1f\n\u53f8\u4e58\u53cc\u7aef\u7684\u767b\u5f55\u6a21\u5757\uff0c\u53f8\u673a\u7aef\u9700\u8981\u4eba\u8138\u8ba4\u8bc1\n\u9884\u4f30\u8ba2\u5355\u6570\u636e\u6a21\u5757\n\u4e58\u5ba2\u4e0b\u5355\u6a21\u5757\n\u53f8\u673a\u62a2\u5355\u6a21\u5757\n\u8ba2\u5355\u6267\u884c\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u5305\u62ec\u8d85\u65f6\u8ba2\u5355\u81ea\u52a8\u53d6\u6d88\n\u8ba2\u5355\u652f\u4ed8\u6a21\u5757\n\u4f18\u60e0\u5238\u6a21\u5757\n\n\n## \u4f60\u89c9\u5f97\u54ea\u4e2a\u6a21\u5757\u6bd4\u8f83\u96be\uff1f\n\u53f8\u673a\u62a2\u5355\u6a21\u5757\n\u65b9\u68481\uff1a\u6570\u636e\u5e93\u9694\u79bb\u7ea7\u522b\uff0c\u6548\u7387\u4f4e\u4e0b\uff0c\u4e0d\u9002\u5408\u9ad8\u5e76\u53d1\u9700\u6c42\n\u65b9\u68482\uff1a\u4e50\u89c2\u9501\uff0c\u57fa\u4e8e\u7248\u672c\u53f7\uff0c\u82e5\u5e76\u53d1\u51b2\u7a81\u9891\u7e41\uff0c\u5927\u91cf\u8bf7\u6c42\u4f1a\u56e0\u7248\u672c\u53f7\u4e0d\u4e00\u81f4\u5bfc\u81f4\u66f4\u65b0\u5931\u8d25\u3002", "top": 0, "createdAt": 1747042115, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-12", "dateLabelColor": "#0969da"}, "P22": {"htmlDir": "docs/post/JavaSE_API_BigDecimal.html", "labels": ["JavaSE"], "postTitle": "JavaSE_API_BigDecimal", "postUrl": "post/JavaSE_API_BigDecimal.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/22", "commentNum": 0, "wordCount": 697, "description": "# BigDecimal\n\nfloat\uff1a4\u4e2a\u5b57\u8282\uff0c32bit\uff0c23bit\u5c0f\u6570\ndouble\uff1a8\u4e2a\u5b57\u8282\uff0c64bit\uff0c52bit\u5c0f\u6570\n\n## 1.\u6784\u9020\u65b9\u6cd5\n```\npublic BigDecimal(double val)//\u4f20\u9012double\u7c7b\u578b\u6570\u503c\uff0c\u4e0d\u7cbe\u786e\n\npublic BigDecimal(String val)//\u4f20\u9012\u5b57\u7b26\u4e32\uff0c\u7cbe\u786e\n\npublic BigDecimal valueOf\uff08double val\uff09//\u9759\u6001\u65b9\u6cd5\u83b7\u53d6\u5bf9\u8c61\uff0c0~10\u7684\u5bf9\u8c61\u5df2\u7ecf\u63d0\u524d\u51c6\u5907\u597d\uff0c\u5176\u4ed6\u7684\u503c\u5219\u521b\u5efa\u65b0\u5bf9\u8c61\uff0c\u4e14\u503c\u4e0d\u80fd\u8d85\u51fadouble\n```\n\n## \u6210\u5458\u65b9\u6cd5\n\n```\n//\u52a0\u51cf\u4e58\u9664\npublic BigDecimal add(BigDecimal val)\n\npublic BigDecimal subtract(BigDecimal val)\n\npublic BigDecimal multiply(BigDecimal val)\n\npublic BigDecimal divide(BigDecimal val)\n\npublic BigDecimal divide(BigDecimal val,int \u7cbe\u786e\u51e0\u4f4d,RoundingMode \u820d\u5165\u6a21\u5f0f)//\u4e00\u822c\u9664\u4e0d\u5c3d\u4f7f\u7528\n//\u4e0d\u8bb0\u5f97\u53c2\u6570\u662f\u4ec0\u4e48\u4e86\u53ef\u4ee5ctrl + p \u67e5\u770b\n//\u5173\u4e8eRoundingMode\u679a\u4e3e\u7c7b\uff1a\u5728\u6570\u8f74\u4e0a\uff0cUP\u4ee3\u8868\u8fdc\u79bb\u96f6\u65b9\u5411\u820d\u5165\uff0cDOWN\u5411\u96f6\u65b9\u5411\u820d\u5165\uff0cCEILING\u5411\u6b63\u65e0\u7a77\u5927\u65b9\u5411\u820d\u5165\uff0cFLOOR\u5411\u8d1f\u65e0\u7a77\u5927\u65b9\u5411\u820d\u5165\uff0cHALF_UP\u56db\u820d\u4e94\u5165\n\n```\n\n\n## \u5e95\u5c42\u5b58\u50a8\u65b9\u5f0f\n\u904d\u5386\u5f97\u5230\u5b57\u7b26\u4e32\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u83b7\u53d6\u5b57\u7b26\u5bf9\u5e94ASCII\u6570\u503c\uff0c\u5f62\u6210\u6570\u7ec4\u3002", "top": 0, "createdAt": 1747902959, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P23": {"htmlDir": "docs/post/JavaSE_API_BigInteger.html", "labels": ["JavaSE"], "postTitle": "JavaSE_API_BigInteger", "postUrl": "post/JavaSE_API_BigInteger.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/23", "commentNum": 0, "wordCount": 1011, "description": "# BigInteger\n\n## 1.\u6709\u4ec0\u4e48\u7528\uff1a\u53ef\u4ee5\u8868\u793a**\u5927\u6574\u6570**\uff0c\u8d85\u51faLong\u8303\u56f4\u7684\u90a3\u79cd\n\n## 2.\u600e\u4e48\u7528\uff08\u6784\u9020\u65b9\u6cd5\uff09\n```\n//\u83b7\u53d6\u968f\u673a\u5927\u6574\u6570\uff0c0~2\u7684num\u6b21\u65b9-1\uff0c\u542b\u8fb9\u754c\npublic BigInterger(int num, Random random)\n\n//\u83b7\u53d6\u6307\u5b9a\u5927\u6574\u6570\uff0c\u5b57\u7b26\u4e32\u4e2d\u5fc5\u987b\u662f\u6574\u6570\uff0c\u5426\u5219\u62a5\u9519\npublic BigInterger(String val)\n\n//\u83b7\u53d6\u6307\u5b9a\u8fdb\u5236\uff08radix\uff09\u7684\u5927\u6574\u6570\uff0c\u5b57\u7b26\u4e32\u5fc5\u987b\u662f\u6574\u6570\u4e14\u7b26\u5408\u8fdb\u5236\u8981\u6c42\uff0c\u5426\u5219\u62a5\u9519\npublic BigInterger(String val,int radix)\n\n//\u9759\u6001\u65b9\u6cd5\u83b7\u53d6BigInteger\u7684\u5bf9\u8c61\uff0c-16~16\u5185\u90e8\u6709\u4f18\u5316\uff0c\u53ea\u80fd\u8868\u793along\u8303\u56f4\u7684\u503c\npublic BigInterger(long val)\n\n```\n## 3.\u6709\u4ec0\u4e48\u7279\u70b9\uff1a\u5bf9\u8c61\u4e00\u65e6\u521b\u5efa\uff0c\u5185\u90e8\u8bb0\u5f55\u7684\u503c\u65e0\u6cd5\u6539\u53d8\n\n## 4.\u6709\u4ec0\u4e48\u5e38\u89c1API\u65b9\u6cd5\n```\n//\u52a0\u51cf\u4e58\u9664\npublic BigInterger add(BigInteger val)\npublic BigInterger subtract(BigInteger val)\npublic BigInterger multiply(BigInteger val)\npublic BigInterger divide(BigInteger val)\n//\u83b7\u53d6\u5546\u548c\u4f59\u6570\npublic BigInterger[] divideAndRemainder(BigInteger val)\n//\u6b21\u5e42\npublic BigInterger pow(int exponent)\n//\u8fd4\u56de\u8f83\u5927\u503c\u6216\u8f83\u5c0f\u503c\uff08\u4e0d\u4f1a\u521b\u5efa\u65b0\u5bf9\u8c61\uff09\npublic BigInterger max/min(BigInteger val)\n//\u8f6c\u4e3aint\u7c7b\u578b\u6574\u6570\uff0c\u6ce8\u610f\u8d85\u51fa\u8303\u56f4\u4f1a\u62a5\u9519\npublic int intValue(BigInteger val)\npublic int longValue(BigInteger val)\n\n//\u5224\u65ad\u662f\u5426\u76f8\u540c\npublic boolean equals(Object x)\n```\n\n## 5.\u5e95\u5c42\u5b58\u50a8\u65b9\u5f0f\n`\nfinal int signum//\u6b63\u8d1f\u7b26\u53f7\uff0c-1\u8868\u793a\u6574\u6570\uff0c0\u8868\u793a\u8d1f\u6570\n`\n\n`\nfinal int[] mag//\u5177\u4f53\u6570\u503c\u6570\u636e\uff0c\u5927\u6570\u62c6\u6210\u51e0\u6bb5\u5b58\u50a8\uff1a\u5148\u8f6c\u6210\u4e8c\u8fdb\u5236\uff0c\u518d\u4ece\u53f3\u5f80\u5de6\u62c6\uff0c\u6bcf\u6bb532bit\n`\n\n\u3002", "top": 0, "createdAt": 1747903006, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P24": {"htmlDir": "docs/post/JavaSE_-zheng-ze-biao-da-shi-Part1.html", "labels": ["JavaSE"], "postTitle": "JavaSE_\u6b63\u5219\u8868\u8fbe\u5f0fPart1", "postUrl": "post/JavaSE_-zheng-ze-biao-da-shi-Part1.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/24", "commentNum": 0, "wordCount": 540, "description": "\n\u6709\u4ec0\u4e48\u7528\uff1a\n- \u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u6821\u9a8c\u5b57\u7b26\u4e32\u662f\u5426\u6ee1\u8db3\u4e00\u5b9a\u7684\u89c4\u5219\uff0c\u5e76\u7528\u6765\u6821\u9a8c\u6570\u636e\u683c\u5f0f\u7684\u5408\u6cd5\u6027\u3002", "top": 0, "createdAt": 1747903033, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P25": {"htmlDir": "docs/post/shu-ju-jie-gou-_-lian-biao-Part1.html", "labels": ["\u6570\u636e\u7ed3\u6784"], "postTitle": "\u6570\u636e\u7ed3\u6784_\u94fe\u8868Part1", "postUrl": "post/shu-ju-jie-gou-_-lian-biao-Part1.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/25", "commentNum": 0, "wordCount": 245, "description": "Part1\n\n\u94fe\u8868\n\u4ec0\u4e48\u662f\u94fe\u8868\uff1a\n> \u94fe\u8868\u662f\u4e00\u79cd\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u7684\u6570\u636e\u7ed3\u6784\uff0c\u901a\u8fc7\u5982\u94fe\u6761\u4e00\u822c\u7684\u6307\u9488\u6765\u8fde\u63a5\u5143\u7d20\u3002", "top": 0, "createdAt": 1747903505, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P26": {"htmlDir": "docs/post/suan-fa-_-mei-ju-Part1.html", "labels": ["\u7b97\u6cd5"], "postTitle": "\u7b97\u6cd5_\u679a\u4e3ePart1", "postUrl": "post/suan-fa-_-mei-ju-Part1.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/26", "commentNum": 0, "wordCount": 236, "description": "\u679a\u4e3e\n\n\u601d\u60f3\u662f\u4e0d\u65ad\u5730\u731c\u6d4b\uff0c\u4ece\u53ef\u80fd\u7684\u96c6\u5408\u4e2d\u4e00\u4e00\u5c1d\u8bd5\uff0c\u7136\u540e\u518d\u5224\u65ad\u9898\u76ee\u7684\u6761\u4ef6\u662f\u5426\u6210\u7acb\u3002", "top": 0, "createdAt": 1747903614, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P27": {"htmlDir": "docs/post/suan-fa-_-di-gui-yu-fen-zhi-Part1.html", "labels": ["\u7b97\u6cd5"], "postTitle": "\u7b97\u6cd5_\u9012\u5f52\u4e0e\u5206\u6cbbPart1", "postUrl": "post/suan-fa-_-di-gui-yu-fen-zhi-Part1.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/27", "commentNum": 0, "wordCount": 619, "description": "## \u9012\u5f52\n\n\u9012\u5f52\u7684\u57fa\u672c\u601d\u60f3\u662f\u67d0\u4e2a\u51fd\u6570\u76f4\u63a5\u6216\u8005\u95f4\u63a5\u5730\u8c03\u7528\u81ea\u8eab\uff0c\u8fd9\u6837\u539f\u95ee\u9898\u7684\u6c42\u89e3\u5c31\u8f6c\u6362\u4e3a\u4e86\u8bb8\u591a\u6027\u8d28\u76f8\u540c\u4f46\u662f\u89c4\u6a21\u66f4\u5c0f\u7684\u5b50\u95ee\u9898\u3002", "top": 0, "createdAt": 1747903725, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P28": {"htmlDir": "docs/post/Net_-wang-luo-fen-ceng-mo-xing.html", "labels": ["Net"], "postTitle": "Net_\u7f51\u7edc\u5206\u5c42\u6a21\u578b", "postUrl": "post/Net_-wang-luo-fen-ceng-mo-xing.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/28", "commentNum": 0, "wordCount": 751, "description": "# \u8ba1\u7f51\u57fa\u7840\n\n## \u7f51\u7edc\u5206\u5c42\u6a21\u578b\n### \u4e3a\u4ec0\u4e48\u7f51\u7edc\u9700\u8981\u5206\u5c42\n\u4e3a\u4ec0\u4e48\u7f51\u7edc\u8981\u5206\u5c42\uff1f\n\u4ece\u7406\u8bba\u9700\u6c42\u6765\u8bf4\uff0c\u590d\u6742\u7684\u7cfb\u7edf\u9700\u8981\u5206\u5c42\uff0c\u56e0\u4e3a\u6bcf\u4e00\u5c42\u90fd\u9700\u8981\u4e13\u6ce8\u4e8e\u4e00\u7c7b\u4e8b\u60c5\u3002", "top": 0, "createdAt": 1747904070, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P29": {"htmlDir": "docs/post/Net_-wang-luo-xie-yi.html", "labels": ["Net"], "postTitle": "Net_\u7f51\u7edc\u534f\u8bae", "postUrl": "post/Net_-wang-luo-xie-yi.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/29", "commentNum": 0, "wordCount": 1158, "description": "### \u5e94\u7528\u5c42\u7f51\u7edc\u534f\u8bae\n- HTTP\u2014\u2014Hypertext Transfer Protocol\uff0c\u57fa\u4e8eTCP\uff0c\u7528\u4e8e\u4f20\u8f93\u8d85\u6587\u672c\u548c\u591a\u5a92\u4f53\u5185\u5bb9\uff0c\u4e3aWeb\u6d4f\u89c8\u5668\u548cWeb\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u800c\u8bbe\u8ba1\n- SMTP\u2014\u2014Simple Mail Transfer Protocol\uff0c\u57fa\u4e8eTCP\uff0c\u7528\u4e8e\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\uff0c\u53ea\u8d1f\u8d23\u53d1\u9001\n- POP3/IMAP\u2014\u2014\u90ae\u4ef6\u63a5\u6536\u534f\u8bae\uff0c\u57fa\u4e8eTCP\uff0c\u7528\u4e8e\u7535\u5b50\u90ae\u4ef6\u63a5\u6536\uff0cIMAP\u6bd4POP3\u5f3a\u5927\uff0c\u652f\u6301\u90ae\u4ef6\u641c\u7d22\u3001\u6807\u8bb0\u3001\u5206\u7c7b\u3001\u5f52\u6863\u7b49\uff0c\u4e14\u53ef\u4ee5\u5728\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u540c\u6b65\u90ae\u4ef6\u72b6\u6001\u3002", "top": 0, "createdAt": 1747905140, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P30": {"htmlDir": "docs/post/Net_-jing-dian-wen-ti.html", "labels": ["Net"], "postTitle": "Net_\u7ecf\u5178\u95ee\u9898", "postUrl": "post/Net_-jing-dian-wen-ti.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/30", "commentNum": 0, "wordCount": 2141, "description": "# \u4ece\u8f93\u5165URL\u5230\u9875\u9762\u5c55\u793a\u5230\u5e95\u53d1\u751f\u4e86\u4ec0\u4e48\uff08\u975e\u5e38\u91cd\u8981\uff01\uff09\nHTTP\u7248\u672c\n> 1\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165URL\n> 2\u6d4f\u89c8\u5668\u6839\u636eDNS\u534f\u8bae\u83b7\u53d6IP\u5730\u5740\n> 3\u6d4f\u89c8\u5668\u6839\u636eIP\u5730\u5740\u548c\u7aef\u53e3\u53f7 \uff0c\u5411\u76ee\u6807\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2aTCP\u8fde\u63a5\u8bf7\u6c42\n> 4\u6d4f\u89c8\u5668TCP\u8fde\u63a5\u540e\uff0c\u5411\u76ee\u6807\u670d\u52a1\u5668\u53d1\u9001HTTP\u8bf7\u6c42\u62a5\u6587\uff0c\u8bf7\u6c42\u83b7\u53d6\u7f51\u9875\u7684\u5185\u5bb9\n> 5\u670d\u52a1\u5668\u6536\u5230HTTP\u8bf7\u6c42\u62a5\u6587\u540e\uff0c\u5904\u7406\u8bf7\u6c42\uff0c\u8fd4\u56deHTTP\u54cd\u5e94\u62a5\u6587\n> 6\u6d4f\u89c8\u5668\u6536\u5230HTTP\u54cd\u5e94\u62a5\u6587\u540e\uff0c\u89e3\u6790\u54cd\u5e94\u4f53\u4e2d\u7684HTML\u4ee3\u7801\uff0c\u6e32\u67d3\u7f51\u9875\u7ed3\u6784\u548c\u4ee3\u7801\uff0c\u540c\u65f6\u6839\u636eHTMl\u4e2d\u5176\u4ed6\u8d44\u6e90\u7684URL\uff0c\u518d\u6b21\u53d1\u9001HTTP\u8bf7\u6c42\u62a5\u6587\uff0c\u76f4\u5230\u7f51\u9875\u5b8c\u5168\u52a0\u8f7d\u51fa\u6765\n> 7\u6d4f\u89c8\u5668\u4e0d\u9700\u8981\u548c\u670d\u52a1\u5668\u901a\u4fe1\u65f6\uff0c\u53ef\u4ee5\u4e3b\u52a8\u5173\u95edTCP\u8fde\u63a5\uff0c\u6216\u7b49\u5f85\u670d\u52a1\u5668\u7684\u5173\u95ed\u8bf7\u6c42\n\n# \u8bbf\u95ee\u7f51\u9875\u7684\u5168\u8fc7\u7a0b\n\n\u4ece\u7f51\u7edc\u7ed3\u6784\u4e94\u5c42\u6a21\u578b\u51fa\u53d1\u63cf\u8ff0\uff1a\n```\n\u5e94\u7528\u5c42\n1\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165URL\uff08URL\u7ec4\u6210\uff1a\u534f\u8bae+\u57df\u540d+\u7aef\u53e3+\u8d44\u6e90\u8def\u5f84+\u53c2\u6570+\u951a\u70b9\u3002", "top": 0, "createdAt": 1747905235, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P31": {"htmlDir": "docs/post/Net_Socket.html", "labels": ["Net"], "postTitle": "Net_Socket", "postUrl": "post/Net_Socket.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/31", "commentNum": 0, "wordCount": 124, "description": "SOCKET\uff08\u5957\u63a5\u5b57\uff09\n\u662f\u4ec0\u4e48\uff1a\n> \u5bf9\u7f51\u7edc\u4e2d\u4e0d\u540c\u4e3b\u673a\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u8fdb\u884c\u53cc\u5411\u901a\u4fe1\u7684\u7aef\u70b9\u7684\u62bd\u8c61\n\n\u6709\u4ec0\u4e48\u7528(\u4e3a\u4ec0\u4e48\u9700\u8981socket)\n> \u4e0a\u8054\u5e94\u7528\u8fdb\u7a0b\uff0c\u4e0b\u8054\u7f51\u7edc\u534f\u8bae\u6808\uff0c\u662f\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u901a\u8fc7\u7f51\u7edc\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\u7684\u63a5\u53e3\uff0c\u662f\u5e94\u7528\u7a0b\u5e8f\u4e0e\u7f51\u7edc\u534f\u8bae\u6808\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\n\u3002", "top": 0, "createdAt": 1747905706, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P32": {"htmlDir": "docs/post/OS_-nei-cun-guan-li.html", "labels": ["OS"], "postTitle": "OS_\u5185\u5b58\u7ba1\u7406", "postUrl": "post/OS_-nei-cun-guan-li.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/32", "commentNum": 0, "wordCount": 906, "description": "# \u5185\u5b58\u7ba1\u7406\u7684\u4e3b\u8981\u529f\u80fd\n\n- \u5185\u5b58\u5206\u914d\u4e0e\u56de\u6536\uff1amalloc\u51fd\u6570\u7533\u8bf7\u5185\u5b58\uff1bfree\u51fd\u6570\u91ca\u653e\u5185\u5b58\n\n- \u5730\u5740\u8f6c\u6362\uff1a\u5c06\u7a0b\u5e8f\u4e2d\u7684\u865a\u62df\u5185\u5b58\u8f6c\u6362\u4e3a\u5185\u5b58\u4e2d\u7684\u7269\u7406\u5185\u5b58\n\n- \u5185\u5b58\u6269\u5145\uff1a\u5f53\u5185\u5b58\u4e0d\u8db3\u65f6\uff0c\u4f7f\u7528\u865a\u62df\u5185\u5b58\u6280\u672f\u6216\u81ea\u52a8\u8986\u76d6\u6280\u672f\u4ece\u903b\u8f91\u4e0a\u6269\u5145\u5185\u5b58\n\n- \u5185\u5b58\u6620\u5c04\uff1a\u5c06\u4e00\u4e2a\u6587\u4ef6\u76f4\u63a5\u6620\u5c04\u5230\u5185\u5b58\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u901a\u8fc7\u5185\u5b58\u6307\u9488\u8bfb\u5199\u5185\u5b58\u7684\u529e\u6cd5\u76f4\u63a5\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u901f\u5ea6\u66f4\u5feb\n\n- \u5185\u5b58\u4f18\u5316\uff1a\u8c03\u6574\u5185\u5b58\u5206\u914d\u7b56\u7565\u548c\u56de\u6536\u7b97\u6cd5\u4f18\u5316\u5185\u5b58\u4f7f\u7528\u6548\u7387\n\n- \u5185\u5b58\u5b89\u5168\uff1a\u4fdd\u8bc1\u8fdb\u7a0b\u95f4\u4f7f\u7528\u5185\u5b58\u4e92\u4e0d\u5e72\u6270\uff0c\u907f\u514d\u6076\u610f\u7a0b\u5e8f\u4fee\u6539\u5185\u5b58\u5f71\u54cd\u7cfb\u7edf\u5b89\u5168\u6027\u3002", "top": 0, "createdAt": 1747906795, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P33": {"htmlDir": "docs/post/JUC_-xian-cheng-chi.html", "labels": ["JUC"], "postTitle": "JUC_\u7ebf\u7a0b\u6c60", "postUrl": "post/JUC_-xian-cheng-chi.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/33", "commentNum": 0, "wordCount": 838, "description": " # \u7ebf\u7a0b\u6c60\u7684\u6838\u5fc3\u53c2\u6570\n```\n\n public ThreadPoolExecutor(int corePoolSize,//\u7ebf\u7a0b\u6c60\u7684\u6838\u5fc3\u7ebf\u7a0b\u6570\u91cf\n int maximumPoolSize,//\u7ebf\u7a0b\u6c60\u7684\u6700\u5927\u7ebf\u7a0b\u6570\n long keepAliveTime,//\u5f53\u7ebf\u7a0b\u6570\u5927\u4e8e\u6838\u5fc3\u7ebf\u7a0b\u6570\u65f6\uff0c\u591a\u4f59\u7684\u7a7a\u95f2\u7ebf\u7a0b\u5b58\u6d3b\u7684\u6700\u957f\u65f6\u95f4\n TimeUnit unit,//\u65f6\u95f4\u5355\u4f4d\n BlockingQueue<Runnable> workQueue,//\u4efb\u52a1\u961f\u5217\uff0c\u7528\u6765\u50a8\u5b58\u7b49\u5f85\u6267\u884c\u4efb\u52a1\u7684\u961f\u5217\n ThreadFactory threadFactory,//\u7ebf\u7a0b\u5de5\u5382\uff0c\u7528\u6765\u521b\u5efa\u7ebf\u7a0b\uff0c\u4e00\u822c\u9ed8\u8ba4\u5373\u53ef\n RejectedExecutionHandler handler//\u62d2\u7edd\u7b56\u7565\uff0c\u5f53\u63d0\u4ea4\u7684\u4efb\u52a1\u8fc7\u591a\u800c\u4e0d\u80fd\u53ca\u65f6\u5904\u7406\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u5236\u7b56\u7565\u6765\u5904\u7406\u4efb\u52a1\n )\n```\n# \u7ebf\u7a0b\u6c60\u5904\u7406\u4efb\u52a1\u7684\u6d41\u7a0b\uff1a\n\u5982\u679c\u5f53\u524d\u8fd0\u884c\u7684\u7ebf\u7a0b\u6570\u5c0f\u4e8e\u6838\u5fc3\u7ebf\u7a0b\u6570\uff0c\u90a3\u4e48\u5c31\u4f1a\u65b0\u5efa\u4e00\u4e2a\u7ebf\u7a0b\u6765\u6267\u884c\u4efb\u52a1\u3002", "top": 0, "createdAt": 1747907679, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P34": {"htmlDir": "docs/post/JUC_-duo-xian-cheng.html", "labels": ["JUC"], "postTitle": "JUC_\u591a\u7ebf\u7a0b", "postUrl": "post/JUC_-duo-xian-cheng.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/34", "commentNum": 0, "wordCount": 327, "description": "# \u4e3a\u4ec0\u4e48\u7528\u591a\u7ebf\u7a0b\n\n1\u7ebf\u7a0b\u95f4\u7684\u5207\u6362\u548c\u8c03\u5ea6\u7684\u6210\u672c\u8fdc\u8fdc\u5c0f\u4e8e\u8fdb\u7a0b\uff1b\u591a\u6838 CPU \u65f6\u4ee3\u610f\u5473\u7740\u591a\u4e2a\u7ebf\u7a0b\u53ef\u4ee5\u540c\u65f6\u8fd0\u884c\uff0c\u8fd9\u51cf\u5c11\u4e86\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u5f00\u9500\n2\u591a\u7ebf\u7a0b\u5e76\u53d1\u7f16\u7a0b\u6b63\u662f\u5f00\u53d1\u9ad8\u5e76\u53d1\u7cfb\u7edf\u7684\u57fa\u7840\uff0c\u5229\u7528\u597d\u591a\u7ebf\u7a0b\u673a\u5236\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u7cfb\u7edf\u6574\u4f53\u7684\u5e76\u53d1\u80fd\u529b\u4ee5\u53ca\u6027\u80fd\n3\u5355\u6838\u65f6\u4ee3\u591a\u7ebf\u7a0b\u4e3b\u8981\u662f\u4e3a\u4e86\u63d0\u9ad8\u5355\u8fdb\u7a0b\u5229\u7528 CPU \u548c IO \u7cfb\u7edf\u7684\u6548\u7387\uff1b\u4e00\u4e2a\u7ebf\u7a0b\u88ab IO \u963b\u585e\uff0c\u5176\u4ed6\u7ebf\u7a0b\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528 CPU\u3002", "top": 0, "createdAt": 1747907696, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P35": {"htmlDir": "docs/post/MySQL_-shi-wu.html", "labels": ["MySQL"], "postTitle": "MySQL_\u4e8b\u52a1", "postUrl": "post/MySQL_-shi-wu.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/35", "commentNum": 0, "wordCount": 371, "description": "### \u4ec0\u4e48\u662f\u4e8b\u52a1\uff1a\n\u4e8b\u52a1\u662f\u903b\u8f91\u4e0a\u7684\u4e00\u7ec4\u64cd\u4f5c\uff0c\u8981\u4e48\u90fd\u6267\u884c\uff0c\u8981\u4e48\u90fd\u4e0d\u6267\u884c\u3002", "top": 0, "createdAt": 1747908125, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P36": {"htmlDir": "docs/post/MySQL_MVCC.html", "labels": ["MySQL"], "postTitle": "MySQL_MVCC", "postUrl": "post/MySQL_MVCC.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/36", "commentNum": 0, "wordCount": 101, "description": "### \u662f\u4ec0\u4e48\uff1a\n- \u5141\u8bb8\u591a\u4e2a\u4e8b\u52a1\u540c\u65f6\u8bfb\u53d6\u540c\u4e00\u884c\u6570\u636e\uff0c\u800c\u4e0d\u4f1a\u5f7c\u6b64\u963b\u585e\uff0c\u6240\u4ee5\u6bcf\u4e2a\u4e8b\u52a1\u770b\u5230\u7684\u662f\u5f53\u524d\u4e8b\u52a1\u5f00\u59cb\u65f6\u7684\u6570\u636e\u7248\u672c\u3002", "top": 0, "createdAt": 1747908211, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P37": {"htmlDir": "docs/post/Linux-ji-ben-ming-ling.html", "labels": ["Linux\u547d\u4ee4"], "postTitle": "Linux\u57fa\u672c\u547d\u4ee4", "postUrl": "post/Linux-ji-ben-ming-ling.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/37", "commentNum": 0, "wordCount": 1132, "description": "\u5728Linux\u4e2d\uff0c\u547d\u4ee4\u4ee5 **\u547d\u4ee4\u540d+\u53c2\u6570**\uff08\u53ef\u9009\uff09\u7ec4\u6210\n\u5176\u4e2d\uff0c\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u547d\u4ee4\u7684\u5177\u4f53\u64cd\u4f5c\n\u6ce8\u610f\uff0c\u53c2\u6570\u53ef\u4ee5\u53e0\u52a0\u4e00\u8d77\u4f7f\u7528\n\n## \u7b2c\u4e00\u6761\u57fa\u672c\u547d\u4ee4\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6`ls`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\uff0c\u5305\u62ec\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f`ls -l`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff08\u7528'.'\u5f00\u5934\u7684\u90a3\u4e9b\u6587\u4ef6\uff09`ls -a`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\uff0c\u4ee5\u4eba\u7c7b\u53ef\u8bfb\u7684\u65b9\u5f0f\u663e\u793a\u6587\u4ef6\u5927\u5c0f`ls -h`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\uff0c\u6309\u7167\u4fee\u6539\u65f6\u95f4\u6392\u5e8f`ls -t`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\uff0c\u9006\u5e8f\u663e\u793a`ls -r`\n\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\uff0c\u9006\u5e8f\u663e\u793a\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f\u540e\u7684\u6587\u4ef6`ls -t -r`\n\u7b49...\n\n## 2.\u521b\u5efa\u94fe\u63a5\n\u521b\u5efa\u94fe\u63a5\uff08\u9ed8\u8ba4\u786c\u94fe\u63a5\uff09`ln \u6e90\u6587\u4ef6\u540d\u8bcd \u94fe\u63a5\u6587\u4ef6\u540d\u79f0`\n\u521b\u5efa\u8f6f\u94fe\u63a5`ln -s \u6e90\u6587\u4ef6\u540d\u8bcd \u94fe\u63a5\u6587\u4ef6\u540d\u79f0`\n\n## 3.\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\n`cat \u6587\u4ef6\u540d\u79f0`\n\n## 4.\u5220\u9664\u6587\u4ef6\n`rm \u6587\u4ef6\u540d\u79f0`\n\n## 5.\u4fee\u6539\u6587\u4ef6\u6743\u9650\n`chmod \uff1f\uff1f+\uff1f \u6587\u4ef6\u540d\u79f0`\n\u5176\u4e2d\uff0c\uff1f\u6307\u4ee3 r\uff08\u8bfb\uff09\u3001w\uff08\u5199\uff09\u3001x\uff08\u6267\u884c\uff09\n\u5176\u4e2d\uff0c\uff1f\uff1f\u6307\u4ee3u\uff08\u6587\u4ef6\u6240\u6709\u8005\uff09\u3001g\uff08\u540c\u7ec4\u7528\u6237\uff09\u3001o\uff08\u5176\u4ed6\u7528\u6237\uff09\n\n`chmod \u4e09\u4e2a\u6570\u5b57 \u6587\u4ef6\u540d\u79f0`\n\u5176\u4e2d\uff0c\u4e09\u4e2a\u6570\u5b57\u5206\u522b\u4ee3\u8868\u6240\u6709\u8005\u3001\u540c\u7ec4\u7528\u6237\u3001\u5176\u4ed6\u7528\u6237\u7684\u6743\u9650\n\u4f8b\u5982`chmod 777 hello.txt`\n7 \u4ee3\u8868r\uff084\uff09+w\uff082\uff09+x\uff081\uff09\n\u610f\u601d\u662f\u7ed9\u6240\u6709\u8005\u3001\u540c\u7ec4\u7528\u6237\u3001\u5176\u4ed6\u7528\u6237\u8fd9\u4e2a\u6587\u4ef6\uff08hello.txt\uff09\u7684\u8bfb+\u5199+\u6267\u884c\u6743\u9650\n\n## 6.\u521b\u5efa\u6587\u4ef6\n`touch \u6587\u4ef6\u540d\u79f0`\u672c\u6765\u7528\u4e8e\u66f4\u65b0\u6587\u4ef6\u7684\u4fee\u6539\u65f6\u95f4\uff0c\u4f46\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\u5219\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u3002", "top": 0, "createdAt": 1747916417, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-05-22", "dateLabelColor": "#0969da"}, "P39": {"htmlDir": "docs/post/shi-xi-ri-chang-1.html", "labels": ["\u5b9e\u4e60\u65e5\u5e38-\u672a\u6574\u7406"], "postTitle": "\u5b9e\u4e60\u65e5\u5e381", "postUrl": "post/shi-xi-ri-chang-1.html", "postSourceUrl": "https://github.com/therain2020/therain2020.github.io/issues/39", "commentNum": 0, "wordCount": 1411, "description": "## \u7c7b\u6ce8\u89e3\n ```@Tag(name = '', description = '')```\n- \u7528\u4e8eOpenAPI\u6587\u6863\u751f\u6210\uff0c\u5b9a\u4e49\u8be5controller\u7684\u540d\u79f0\u4e3aname\u6240\u6307\uff0c\u63cf\u8ff0\u4e3adescription\u6240\u6307\n\n```@RestController```\n- \u6807\u8bc6\u8be5\u7c7b\u662f\u4e00\u4e2aREST\u63a7\u5236\u5668\uff0c\u80fd\u591f\u5904\u7406HTTP\u8bf7\u6c42\u5e76\u8fd4\u56deJSON\u6570\u636e\n\n```@RequestMapping('default/v1')```\n- \u5b9a\u4e49\u8be5controller\u7684\u57fa\u7840\u8def\u5f84\u4e3adefault/v1\uff0c\u6240\u6709\u65b9\u6cd5\u7684\u8def\u5f84\u90fd\u57fa\u4e8e\u6b64\u8def\u5f84\n\n---\n\n## \u6210\u5458\u53d8\u91cf\n\n```@Autowired private FeedTransformService feedTransformService```\n- \u4f7f\u7528@Aitpwired\u6ce8\u89e3\u5c06FeedTransformService\u81ea\u52a8\u6ce8\u5165\u5230controller\u4e2d\uff0c\u7528\u4e8e\u5904\u7406\u4e1a\u52a1\u903b\u8f91\n\n---\n\n## \u65b9\u6cd5```getDefaultValue```\n```@GetMapping('/hello')```\n- \u6620\u5c04HTTP GET\u8bf7\u6c42\u5230\u8def\u5f84/default/v1/hello\n\n```@Operation(summary = 'Hello api')```\n- \u7528\u4e8eOpenAPI\u6587\u6863\u751f\u6210\uff0c\u63cf\u8ff0\u8be5API\u7684\u6458\u8981\u4e3a\u201cHello.api\u201d\n\n```@ApiResponses```\n- \u5b9a\u4e49\u8be5API\u7684\u53ef\u80fd\u54cd\u5e94\uff1a\n\n\u65b9\u6cd5\u5185\u5bb9\uff1a\u8fd4\u56de\u5b57\u7b26\u4e32\u201cxxController created from xx\u201d\uff0c\u7528\u4e8e\u6d4b\u8bd5\u63a7\u5236\u5668\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\n\n---\n\n## \u65b9\u6cd5```feedtransformation```\n```@GetMapping('/feedtransformation')```\n- \u6620\u5c04HTTP GET\u8bf7\u6c42\u5230\u8def\u5f84/default/v1/feedtransformation\n\n```@Operation(summary = 'feed transformation')```\n- \u7528\u4e8eOpenAPI\u6587\u6863\u751f\u6210\uff0c\u63cf\u8ff0\u8be5API\u7684\u6458\u8981\u4e3a\u201cfeed transformation.api\u201d\n\n```@ApiResponses```\n- \u5b9a\u4e49\u8be5API\u7684\u53ef\u80fd\u54cd\u5e94\uff1a\n\n\u65b9\u6cd5\u53c2\u6570\uff1a\n- `@RequestParam`:\u4ece\u8bf7\u6c42\u4e2d\u83b7\u53d6\u53c2\u6570 \n - calcRunId\uff1a\u8ba1\u7b97\u8fd0\u884cID\n - site\uff1a\u7ad9\u70b9\u540d\u79f0\n - \u7ed3\u7b97\u65e5\u671f\n\n\u65b9\u6cd5\u5185\u5bb9\uff1a\u8c03\u7528feedTransformService.feedTransForSite\uff08calcRunId, site, cobDate\uff09\n\n---\n\n## POJO \nPlain Old Java Object \u662f\u4e00\u4e2a\u7b80\u5355\u7684Java\u5bf9\u8c61\uff0c\u901a\u5e38\u6ca1\u7528\u7ee7\u627f\u7279\u5b9a\u7684\u7c7b\u6216\u5b9e\u73b0\u7279\u5b9a\u7684\u63a5\u53e3\u3002", "top": 0, "createdAt": 1756199682, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-08-26", "dateLabelColor": "#0969da"}}, "singeListJson": {}, "labelColorDict": {"25\u5e745\u6708": "#bfd4f2", "AIGC": "#e99695", "AIGmeek": "#aaaaaa", "bug": "#d73a4a", "documentation": "#0075ca", "duplicate": "#cfd3d7", "ElasticSearch": "#190A45", "enhancement": "#a2eeef", "git command": "#aaaaaa", "good first issue": "#7057ff", "HashMap": "#aaaaaa", "help wanted": "#008672", "HTTP": "#1894E3", "invalid": "#e4e669", "IP": "#EDE9CC", "Java": "#0146B1", "JavaSE": "#bfdadc", "JUC": "#d4c5f9", "JVM": "#10A6CD", "Linux": "#A2C7DC", "Linux\u547d\u4ee4": "#A49655", "list to do": "#8C634A", "Lua": "#425F8E", "Mybatis": "#F33383", "MySQL": "#5319e7", "Net": "#d93f0b", "organization": "#3D789D", "OS": "#01597D", "question": "#d876e3", "Redis": "#fbca04", "Redission": "#3BF969", "SQL": "#EBD9B9", "TCP": "#7AB0B8", "Windows": "#446DC5", "wontfix": "#ffffff", "\u4e2a\u4eba\u9879\u76ee": "#c2e0c6", "\u5185\u5b58": "#AD1017", "\u5206\u5e03\u5f0f": "#595F48", "\u5206\u5e03\u5f0f\u4e8b\u52a1": "#aaaaaa", "\u5b9e\u4e60\u65e5\u5e38-\u672a\u6574\u7406": "#027ba8", "\u6301\u4e45\u5316": "#5319e7", "\u6570\u636e\u5e93": "#3CEA76", "\u6570\u636e\u7ed3\u6784": "#fef2c0", "\u6587\u4ef6\u7cfb\u7edf": "#0C0A6A", "\u6846\u67b6": "#aaaaaa", "\u725b\u5ba2": "#aaaaaa", "\u786c\u4ef6": "#C58D06", "\u7b80\u5386": "#aaaaaa", "\u7b97\u6cd5": "#3C2D5A", "\u7f51\u7edc\u7cfb\u7edf": "#10B40B", "\u8bbe\u5907\u7ba1\u7406": "#3AEDC5", "\u8c03\u5ea6\u7b97\u6cd5": "#62EC03", "\u8f6f\u4ef6\u6d4b\u8bd5": "#aaaaaa", "\u8fdb\u7a0b\u7ba1\u7406": "#97AF6C", "\u96c6\u5408": "#d93f0b", "\u9762\u7ecf": "#aaaaaa", "\u9762\u8bd5": "#C680B7"}, "displayTitle": "therain2020", "faviconUrl": "https://github.githubassets.com/favicons/favicon.svg", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "primerCSS": "<link href='https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/Primer/21.0.7/primer.css' rel='stylesheet' />", "homeUrl": "https://therain2020.github.io", "prevUrl": "/page2.html", "nextUrl": "disabled"}