{"id":14048,"date":"2025-04-18T20:52:31","date_gmt":"2025-04-18T12:52:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/14048.html"},"modified":"2025-04-18T20:52:31","modified_gmt":"2025-04-18T12:52:31","slug":"%e3%80%902024-%e6%95%b0%e8%af%81%e6%9d%af%e3%80%91%e5%86%b3%e8%b5%9b_%e4%b8%aa%e4%ba%ba%e8%b5%9b%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/14048.html","title":{"rendered":"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668)"},"content":{"rendered":"<h2>2024_\u6570\u8bc1\u676f\u7535\u5b50\u53d6\u8bc1\u5927\u8d5b<\/h2>\n<h3>\u80cc\u666f\u4ecb\u7ecd<\/h3>\n<p>\u201c\u6570\u8bc1\u676f\u201d\u91c7\u53d6\u7ebf\u4e0a\u521d\u8d5b\u4e0e\u7ebf\u4e0b\u51b3\u8d5b\u7ed3\u5408\u7684\u5f62\u5f0f\u8fdb\u884c\u3002\u7ebf\u4e0a\u521d\u8d5b\u91c7\u7528\u56e2\u961f\u8d5b\u7684\u65b9\u5f0f\u5728\u4e92\u8054\u7f51\u5185\u5f00\u5c55&#xff0c;\u6bcf\u961f\u6700\u591a3\u4eba&#xff0c;\u6700\u5c111\u4eba\u3002\u901a\u8fc7\u7ebf\u4e0a\u521d\u8d5b\u7684\u9009\u624b\u53ef\u664b\u7ea7\u7ebf\u4e0b\u51b3\u8d5b&#xff0c;\u7ebf\u4e0b\u51b3\u8d5b\u91c7\u7528\u201c\u56e2\u961f\u8d5b&#043;\u4e2a\u4eba\u8d5b\u201d\u7684\u5f62\u5f0f\u5f00\u5c55 \u4e3a\u6df1\u5165\u8d2f\u5f7b\u56fd\u5bb6\u5173\u4e8e\u5f3a\u5316\u7f51\u7edc\u5b89\u5168\u548c\u4fe1\u606f\u5316\u53d1\u5c55\u7684\u6218\u7565\u65b9\u9488&#xff0c;\u63d0\u5347\u6211\u56fd\u5728\u7535\u5b50\u6570\u636e\u53d6\u8bc1\u4e0e\u5206\u6790\u9886\u57df\u7684\u4e13\u4e1a\u6280\u672f\u6c34\u5e73&#xff0c;\u63a8\u52a8\u4ea7\u4e1a\u754c\u3001\u5b66\u672f\u754c\u548c\u7814\u7a76\u673a\u6784\u7684\u6df1\u5ea6\u5408\u4f5c&#xff0c;\u8fdb\u4e00\u6b65\u57f9\u517b\u548c\u6784\u5efa\u7535\u5b50\u6570\u636e\u53d6\u8bc1\u6280\u672f\u7684\u4e13\u4e1a\u4eba\u624d\u961f\u4f0d&#xff0c;\u9996\u5c4a\u201c\u6570\u8bc1\u676f\u201d\u7535\u5b50\u6570\u636e\u53d6\u8bc1\u5206\u6790\u5927\u8d5b\u3002<\/p>\n<p>\u4e2a\u4eba\u8d5b\u68c0\u6750\u5bb9\u5668\u4e0b\u8f7d\u94fe\u63a5&#xff1a;https:\/\/pan.baidu.com\/s\/10nDlZ7tR1-TPYLYJxqm-oA?pwd&#061;gzki<\/p>\n<h3>\u8d5b\u9898&#xff1a;<\/h3>\n<p>1. \u91cd\u5efa\u5b8c\u6574\u7684\u7cfb\u7edf\u540e&#xff0c;redis\u5bf9\u5916\u66b4\u9732\u7684\u7aef\u53e3\u53f7\u662f\u591a\u5c11&#xff1f;&#xff08;\u7b54\u6848\u683c\u5f0f&#xff1a;\u6570\u5b57&#xff09; (3.0\u5206) \u7b54&#xff1a;16379<\/p>\n<p>\u628a\u670d\u52a1\u5668\u4eff\u771f\u8d77\u6765\u4e4b\u540e\u5148\u770b\u7aef\u53e3\u5f00\u653e\u7684\u6709\u54ea\u4e9b&#xff0c;ssh\u7aef\u53e3\u53f7\u88ab\u4fee\u6539\u4e86&#xff08;\u6211\u63a5\u4e0b\u6765\u5c31\u4f7f\u7528xshell\u8fde\u63a5\u4e86&#xff09;<\/p>\n<p><span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-natp<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125221-68024b05c400b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u67e5\u770b\u540e\u6709docker\u670d\u52a1\u8fd9\u4e2a16379\u6709\u70b9\u53ef\u7591 \u4f7f\u7528\u547d\u4ee4\u67e5\u770bdocker\u6b63\u5728\u8fd0\u884c\u7684\u955c\u50cf&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token function\">ps<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125222-68024b066c606.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u679c\u7136\u662f16379\u7aef\u53e3&#xff01;<\/p>\n<p>2. \u8bf7\u627e\u51fa\u52a0\u5bc6mysql\u6570\u636e\u5e93\u8fde\u63a5\u5bc6\u7801\u6240\u7528\u7684\u52a0\u5bc6\u5bc6\u94a5&#xff08;\u76d0\u503c&#xff09;&#xff1f;&#xff08;\u7b54\u6848\u683c\u5f0f&#xff1a;\u6ce8\u610f\u5927\u5c0f\u5199&#xff09; (3.0\u5206)\u7b54&#xff1a;F*DZ-kZMs5qt<\/p>\n<p>\u5206\u6790\u9898\u76ee\u8fd9\u4e2a\u9700\u8981\u627e\u5230\u6e90\u7801\u7684\u914d\u7f6e&#xff0c;\u4ece\u4e0a\u9898\u5f97\u51fa\u6709docker\u5176\u4e2d\u8fd0\u884c\u7740\u4e00\u4e2ajdk\u73af\u5883\u8fdb\u5165\u5bb9\u5668\u4e2d\u5148\u67e5\u770b\u4e00\u4e0b\u5386\u53f2\u547d\u4ee4\u4ed6\u505a\u4e86\u4ec0\u4e48\u64cd\u4f5c \u4f7f\u7528\u4e0b\u9762\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> 79d2dfa52a5e \/bin\/bash<br \/>\n<span class=\"token function\">history<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125222-68024b06eeeff.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4ece\u5386\u53f2\u547d\u4ee4\u4e2d\u53ef\u4ee5\u77e5\u6653\u76ee\u5f55\u4e3a\/home\/date\/s048\/,\u67e5\u770b\u76ee\u5f55\u5185\u5bb9\u627e\u5230jar\u6e90\u7801\u5305\u548c\u7f51\u7ad9\u914d\u7f6e\u6587\u4ef6application-s048.yml&#xff08;\u5916\u7f6e&#xff09;\u6587\u4ef6\u67e5\u770b\u6587\u4ef6\u5bc6\u7801\u88ab\u8fde\u63a5\u52a0\u5bc6\u4e86<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> \/home\/date\/s048\/<br \/>\n<span class=\"token function\">ls<\/span><br \/>\n<span class=\"token function\">cat<\/span> application-s048.yml<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125223-68024b0736c25.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125223-68024b0746aa4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8fd9\u91cc\u5c31\u9700\u8981\u89e3\u5bc6&#xff0c;\u5148\u628ajar\u5305\u62d6\u51fa\u6765\u5230jadx\u4e2d\u5206\u6790\u4e00\u4e0b\u5148\u76f4\u63a5\u641c\u7d22setPassword <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125224-68024b084b22c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u627e\u5230\u52a0\u5bc6\u76d0\u503c&#xff08;\u6839\u636e\u4ed6\u5916\u7f6e\u7684\u7f51\u7ad9\u914d\u7f6eyml\u6587\u4ef6\u4e2d\u53ef\u4ee5\u770b\u5230\u5f88\u591a\u529f\u80fd\u5728zwz\u4e0b\u5b9e\u73b0\u7684&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125224-68024b08c02b6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>3. \u8bf7\u5206\u6790\u5f97\u51fa\u76f8\u4eb2\u7f51\u7ad9\u7684\u540e\u53f0\u6570\u636e\u5e93\u4e2d\u54ea\u5f20\u8868\u5b58\u653e\u4e86\u4f1a\u5458\u76f8\u5173\u4fe1\u606f&#xff0c;\u5199\u51fa\u8868\u540d&#xff1f;(6.0\u5206&#xff09;  \u7b54&#xff1a;a_member_st<\/p>\n<p>\u8fd9\u9898\u5206\u6790\u9898\u610f\u4f1a\u8fdb\u884c\u4e00\u4e2a\u5199\u5165\u7684\u64cd\u4f5c&#xff0c;\u56e0\u6b64\u6211\u4ece\u7f51\u7ad9\u6e90\u7801\u4e2d\u641c\u7d22\u4f1a\u5458 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125225-68024b095c4cb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8868\u540d\u4e3a&#xff1a;a_member_st<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125225-68024b09cbb9b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>4. \u5df2\u77e5\u7528\u6237\u5728\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u64cd\u4f5c\u90fd\u4f1a\u88ab\u8bb0\u5f55&#xff0c;\u8bf7\u627e\u51fa\u7528\u6237\u5728\u201c\u67e5\u8be2\u89d2\u8272\u201d\u65f6&#xff0c;\u5176\u8bf7\u6c42\u7684\u540e\u7aef\u8def\u5f84\u5730\u5740\u4e3a&#xff1f;&#xff08;\u683c\u5f0f&#xff1a;\/api\/query\/&#8230;&#xff09; (3.0\u5206)\u7b54&#xff1a;\/zwz\/role\/getAllByPage<\/p>\n<p>\u60f3\u8981\u89e3\u51fa\u8fd9\u9898\u9700\u8981\u8fde\u63a5mysql\u6570\u636e\u5e93\u4f46\u662f\u5bc6\u7801\u662f\u88ab\u52a0\u5bc6\u7684\u6545\u800c\u5148\u8981\u89e3\u5bc6\u4e0b\u9762\u662f\u5173\u4e8e\u89e3\u5bc6\u76f8\u5173\u77e5\u8bc6\u70b9&#xff1a; SpringBoot&#043;ENC\u52a0\u5bc6&amp;\u5bc6\u94a5\u5b58\u50a8\u4f4d\u7f6e pom\u4e2d\u9700\u8981\u914d\u7f6ejasypt\u4f9d\u8d56<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependencies<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n          <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>com.github.ulisesbocchio<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n          <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>jasypt-spring-boot-starter<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n          <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>3.0.5<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n      <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependencies<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>&#xff08;1&#xff09;\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bb0\u5f55\u5bc6\u94a5<\/p>\n<p>jasypt:<br \/>\nencryptor:<br \/>\n password: hhX4FzbwcT<\/p>\n<p>&#xff08;2&#xff09;\u5199\u5728jar\u5305\u91cc<\/p>\n<p><span class=\"token class-name\"><span class=\"token namespace\">importorg<span class=\"token punctuation\">.<\/span>jasypt<span class=\"token punctuation\">.<\/span>encryption<span class=\"token punctuation\">.<\/span>pbe<span class=\"token punctuation\">.<\/span><\/span>StandardPBEStringEncryptor<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>publicclassJasyptTest <span class=\"token punctuation\">{<\/span><\/p>\n<p>  <span class=\"token comment\">\/**<br \/>\n  * \u52a0\u5bc6\u76d0\u503c&#xff0c;\u4f7f\u7528\u5b8c\u6210\u540e\u8fdb\u884c\u5220\u9664&#xff0c;\u6216\u8005\u4e0d\u80fd\u63d0\u4ea4\u5230&#096;\u751f\u4ea7\u73af\u5883&#096;&#xff0c;\u6bd4\u5982&#xff1a;<br \/>\n  *\/<\/span><br \/>\n  privatefinalstaticStringPASSWORD<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;hhX4FzbwcT&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token function\">publicstaticvoidmain<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span>args<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>      <span class=\"token class-name\">PooledPBEStringEncryptorencryptor<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token function\">newPooledPBEStringEncryptor<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>      <span class=\"token class-name\">SimpleStringPBEConfigconfig<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token function\">newSimpleStringPBEConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u7528\u4e8e\u8bbe\u7f6e\u52a0\u5bc6\u5bc6\u94a5\u3002\u5bc6\u94a5\u662f\u7528\u4e8e\u52a0\u5bc6\u548c\u89e3\u5bc6\u5b57\u7b26\u4e32\u7684\u5173\u952e\u4fe1\u606f\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setPassword<\/span><span class=\"token punctuation\">(<\/span><span class=\"token constant\">PASSWORD<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u52a0\u5bc6\u7b97\u6cd5\u7684\u540d\u79f0,jasypt-3.0.5\u7248\u672c\u540e\u9ed8\u8ba4\u7684\u52a0\u5bc6\u65b9\u5f0f<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setAlgorithm<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;PBEWITHHMACSHA512ANDAES_256&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u7528\u4e8e\u8bbe\u7f6e\u52a0\u5bc6\u65f6\u8fed\u4ee3\u6b21\u6570\u7684\u6570\u91cf&#xff0c;\u589e\u52a0\u8fed\u4ee3\u6b21\u6570\u53ef\u4ee5\u4f7f\u653b\u51fb\u8005\u66f4\u96be\u8fdb\u884c\u5bc6\u7801\u7834\u89e3\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setKeyObtentionIterations<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;1000&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u52a0\u5bc6\u5668\u6c60\u7684\u5927\u5c0f\u3002\u6c60\u662f\u4e00\u7ec4\u52a0\u5bc6\u5668\u5b9e\u4f8b&#xff0c;\u53ef\u786e\u4fdd\u52a0\u5bc6\u64cd\u4f5c\u7684\u5e76\u53d1\u6027\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setPoolSize<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u7528\u4e8e\u8bbe\u7f6eJCE&#xff08;Java Cryptography Extension&#xff09;\u63d0\u4f9b\u7a0b\u5e8f\u7684\u540d\u79f0\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setProviderName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;SunJCE&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u7528\u4e8e\u8bbe\u7f6e\u751f\u6210\u76d0\u7684\u7c7b\u540d\u79f0\u3002\u5728\u6b64\u914d\u7f6e\u4e2d&#xff0c;\u6211\u4eec\u4f7f\u7528\u4e86org.jasypt.salt.RandomSaltGenerator&#xff0c;\u8868\u793a\u4f7f\u7528\u968f\u673a\u751f\u6210\u7684\u76d0\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setSaltGeneratorClassName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;org.jasypt.salt.RandomSaltGenerator&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u7528\u4e8e\u8bbe\u7f6eJasypt\u4f7f\u7528\u7684\u521d\u59cb\u5316\u5411\u91cf&#xff08;IV&#xff09;\u751f\u6210\u5668\u7684\u7c7b\u540d\u3002\u521d\u59cb\u5316\u5411\u91cf\u662f\u5728\u52a0\u5bc6\u8fc7\u7a0b\u4e2d\u4f7f\u7528\u7684\u4e00\u4e2a\u56fa\u5b9a\u957f\u5ea6\u7684\u968f\u673a\u6570&#xff0c;\u7528\u4e8e\u52a0\u5bc6\u6570\u636e\u5757&#xff0c;\u4f7f\u6bcf\u4e2a\u6570\u636e\u5757\u7684\u52a0\u5bc6\u7ed3\u679c\u90fd\u662f\u552f\u4e00\u7684\u3002\u5728\u6b64\u914d\u7f6e\u4e2d&#xff0c;\u6211\u4eec\u4f7f\u7528\u4e86org.jasypt.iv.RandomIvGenerator\u7c7b&#xff0c;\u8be5\u7c7b\u662f\u4e00\u4e2a\u968f\u673a\u751f\u6210\u5668&#xff0c;\u7528\u4e8e\u751f\u6210\u5b9e\u65f6\u968f\u673aIV\u7684\u5b9e\u4f8b\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6bcf\u6b21\u52a0\u5bc6\u7684IV\u90fd\u662f\u552f\u4e00\u7684&#xff0c;\u4ece\u800c\u589e\u52a0\u52a0\u5bc6\u5f3a\u5ea6\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setIvGeneratorClassName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;org.jasypt.iv.RandomIvGenerator&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u6307\u5b9a\u52a0\u5bc6\u8f93\u51fa\u7c7b\u578b\u3002\u5728\u6b64\u914d\u7f6e\u4e2d&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86base64\u8f93\u51fa\u7c7b\u578b\u3002<\/span><br \/>\n      config<span class=\"token punctuation\">.<\/span><span class=\"token function\">setStringOutputType<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;base64&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">setConfig<\/span><span class=\"token punctuation\">(<\/span>config<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u660e\u65871<\/span><br \/>\n      <span class=\"token class-name\">Stringname_encrypt<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;root&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u660e\u65872<\/span><br \/>\n      <span class=\"token class-name\">Stringpassword_encrypt<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;123456&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u660e\u6587\u52a0\u5bc6<\/span><br \/>\n      <span class=\"token class-name\">Stringencrypt1<\/span><span class=\"token operator\">&#061;<\/span>encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">encrypt<\/span><span class=\"token punctuation\">(<\/span>name_encrypt<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">Stringencrypt2<\/span><span class=\"token operator\">&#061;<\/span>encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">encrypt<\/span><span class=\"token punctuation\">(<\/span>password_encrypt<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u660e\u6587\u52a0\u5bc61&#xff1a;&#034;<\/span><span class=\"token operator\">&#043;<\/span>encrypt1<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u660e\u6587\u52a0\u5bc62&#xff1a;&#034;<\/span><span class=\"token operator\">&#043;<\/span>encrypt2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u5bc6\u6587\u89e3\u5bc6<\/span><br \/>\n      <span class=\"token class-name\">Stringdecrypt1<\/span><span class=\"token operator\">&#061;<\/span>encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">decrypt<\/span><span class=\"token punctuation\">(<\/span>encrypt1<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">Stringdecrypt2<\/span><span class=\"token operator\">&#061;<\/span>encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">decrypt<\/span><span class=\"token punctuation\">(<\/span>encrypt2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5bc6\u6587\u89e3\u5bc61&#xff1a;&#034;<\/span><span class=\"token operator\">&#043;<\/span>decrypt1<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5bc6\u6587\u89e3\u5bc62&#xff1a;&#034;<\/span><span class=\"token operator\">&#043;<\/span>decrypt2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5728spring boot\u9879\u76ee\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684ENC\u52a0\u5bc6\u914d\u7f6e&#xff1a;<\/p>\n<p>sys:<br \/>\nname:ENC(Yt36hceu3xGXEzrz2jCPjvalaXQ5yIHE04SVT6lIkcktrxqtBZrlivkAkA9\/9oZ2)<br \/>\npassword:ENC(0Ci6irPOko9IG&#043;hBZJAGoguIuE52gF\/XiigCV4DwLm6NfkoyvV4Etgc9FzKK3MYl)<\/p>\n<p>\u4ee5ENC(xxxxxxxxxxxxx)\u5f62\u5f0f\u5b58\u50a8\u5bc6\u6587 \u5728controller\u4e2d\u5bf9\u5bc6\u6587\u8c03\u7528&#xff1a;<\/p>\n<p><span class=\"token annotation punctuation\">&#064;RestController<\/span><br \/>\npublicclassTestController <span class=\"token punctuation\">{<\/span><\/p>\n<p>  <span class=\"token annotation punctuation\">&#064;Value<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;${sys.name}&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n  privateStringname<span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token annotation punctuation\">&#064;Value<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;${sys.password}&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n  privateStringpassword<span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token annotation punctuation\">&#064;GetMapping<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\/test&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token function\">publicvoidtest<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;name &#061; &#034;<\/span><span class=\"token operator\">&#043;<\/span>name<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;password &#061; &#034;<\/span><span class=\"token operator\">&#043;<\/span>password<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e86\u89e3\u5b8c\u77e5\u8bc6\u70b9\u5f00\u59cb\u89e3\u9898&#xff1a; \u6839\u636e\u4e0a\u9762\u77e5\u8bc6\u70b9\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u628a\u52a0\u5bc6\u51fd\u6570\u548c\u5f15\u7528\u7684\u5305\u76f4\u63a5\u62d6\u5230idea\u91cc\u9762<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>jasypt<span class=\"token punctuation\">.<\/span>encryption<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">StringEncryptor<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>jasypt<span class=\"token punctuation\">.<\/span>encryption<span class=\"token punctuation\">.<\/span>pbe<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">StandardPBEByteEncryptor<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>jasypt<span class=\"token punctuation\">.<\/span>encryption<span class=\"token punctuation\">.<\/span>pbe<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">StandardPBEStringEncryptor<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/\u52a0\u89e3\u5bc6\u9700\u8981\u7528\u5230\u7684\u5305<\/span><\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Main<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token class-name\">StandardPBEStringEncryptor<\/span> encryptor <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">StandardPBEStringEncryptor<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">setAlgorithm<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">StandardPBEByteEncryptor<\/span><span class=\"token punctuation\">.<\/span><span class=\"token constant\">DEFAULT_ALGORITHM<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">setPassword<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;F*DZ-kZMs5qt&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token class-name\">String<\/span> pass <span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;ij&#043;NuXpx6CZwYB1oGHA2M2E2na0G8Tux&#034;<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/\u5b9a\u4e49\u4e00\u4e2a\u5b57\u7b26\u578bpass\u4e3a\u5bc6\u6587\u63a5\u6536\u53d8\u91cf<\/span><br \/>\n            <span class=\"token class-name\">String<\/span> pass2 <span class=\"token operator\">&#061;<\/span> encryptor<span class=\"token punctuation\">.<\/span><span class=\"token function\">decrypt<\/span><span class=\"token punctuation\">(<\/span>pass<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/\u5b9a\u4e49\u4e00\u4e2a\u5b57\u7b26\u578bpass2\u4e3apass\u89e3\u5bc6\u540e\u7684\u63a5\u6536\u53d8\u91cf<\/span><br \/>\n            <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span>pass2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/\u6253\u5370\u8f93\u51fapass2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125226-68024b0a11fe6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u628a\u9700\u8981\u7528\u5230\u7684\u4f9d\u8d56\u5bfc\u5165\u8fdbidea\u65b0\u9879\u76ee\u4e2d \u6587\u4ef6\u2014&gt;\u9879\u76ee\u7ed3\u6784\u2014&gt;\u6a21\u5757\u2014&gt;\u4f9d\u8d56<\/p>\n<p>\u5148\u628a\u7f51\u7ad9jar\u5305\u89e3\u538b\u7136\u540e\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125226-68024b0a58e66.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6211\u8fd9\u91cc\u8fd8\u6ca1\u53d1\u5224\u65ad\u662f\u54ea\u4e2a\u6570\u636e\u5e93\u6709\u67e5\u8be2\u89d2\u8272\u8fd9\u4e2a\u5b57\u6bb5\u6211\u5c31\u5148\u89e3\u5bc6\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u7b2c\u4e00\u4e2a\u6570\u636e\u5e93<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125226-68024b0a8a11e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125227-68024b0b19ac5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6839\u636e\u914d\u7f6e\u6587\u4ef6\u4e2d\u63cf\u8ff0\u7684\u5730\u5740\u7aef\u53e3\u53f7\u7528\u6237\u540d&#xff0c;\u4f7f\u7528navicat\u8fde\u63a5 \u8fd9\u91cc\u6709\u4e2a\u5c0f\u77e5\u8bc6\u70b9\u5982\u679c\u4f60\u4eff\u771f\u7684\u65f6\u5019\u914d\u7f6e\u7684\u662fnat\u7684\u8bdd\u60f3\u8981\u672c\u673a\u53bb\u8fde\u63a5\u865a\u62df\u673adocker\u955c\u50cf\u5730\u5740mysql\u7684\u8bdd\u9700\u8981\u5148ssh\u8fde\u63a5\u5230\u865a\u62df\u673a\u7136\u540e\u5728\u914d\u7f6esql\u8fde\u63a5<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125227-68024b0b7b45a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125227-68024b0bbcfa6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9898\u76ee\u4e2d\u63d0\u5230\u662f\u6240\u6709\u64cd\u4f5c\u90fd\u4f1a\u88ab\u8bb0\u5f55&#xff0c;\u5f88\u663e\u7136\u662flog\u65e5\u5fd7\u5e93\u4e2d\u67e5\u770b\u6b64\u8868\u5f97\u5230\u8def\u5f84&#xff1a;\/zwz\/role\/getAllByPage<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125228-68024b0c15b93.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>5. \u8bf7\u5206\u6790\u5f97\u51fa\u6570\u636e\u5e93\u7528\u6237\u8868\u4e2dstatus\u4e3a-1\u72b6\u6001\u503c\u7684\u542b\u4e49\u4e3a&#xff1f;&#xff08;\u683c\u5f0f&#xff1a;\u5b66\u751f&#xff09; (1.0\u5206)\u7b54&#xff1a;\u7981\u7528<\/p>\n<p>\u5206\u6790\u9898\u610f\u4e2d\u8868status\u72b6\u6001\u503c\u8fd9\u4e2a\u662f\u5728\u6e90\u7801\u5305\u91cc\u624d\u4f1a\u8bbe\u7f6e\u7684\u76f4\u63a5\u5206\u6790jar\u5305\u641c\u7d22status&#xff0c;\u4e3a\u7981\u7528 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125228-68024b0c989a9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125229-68024b0d156af.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>6. \u8bf7\u7edf\u8ba1\u5e73\u5747\u6708\u5747\u6536\u5165\u7b2c\u4e8c\u9ad8\u7684\u7701\u4efd&#xff08;\u7701\u4efd\u5305\u542b\u4e09\u5927\u7c7b&#xff1a;\u7701\u3001\u76f4\u8f96\u5e02\u3001\u81ea\u6cbb\u533a&#xff09;&#xff08;\u7b54\u6848\u683c\u5f0f&#xff1a;\u8bf7\u5199\u51fa\u5b8c\u6574\u7684\u7701\u4efd\u540d&#xff08;\u6216\u76f4\u8f96\u5e02\u540d\u3001\u81ea\u6cbb\u533a\u540d&#xff09;&#xff0c;\u5982\u6c5f\u897f\u7701\u3001\u5929\u6d25\u5e02\u3001\u897f\u85cf\u81ea\u6cbb\u533a&#xff09; (3.0\u5206)<\/p>\n<p>\u7b54&#xff1a;\u5185\u8499\u53e4\u81ea\u6cbb\u533a <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125229-68024b0dad254.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> <span class=\"token keyword\">LEFT<\/span><span class=\"token punctuation\">(<\/span>address<span class=\"token punctuation\">,<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">AS<\/span> sheng_address<span class=\"token punctuation\">,<\/span><span class=\"token function\">AVG<\/span><span class=\"token punctuation\">(<\/span>income<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">AS<\/span> avg_income <span class=\"token keyword\">FROM<\/span> a_member_st <span class=\"token keyword\">GROUP<\/span> <span class=\"token keyword\">BY<\/span> sheng_address <span class=\"token keyword\">ORDER<\/span> <span class=\"token keyword\">BY<\/span> avg_income <span class=\"token keyword\">DESC<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u9009\u62e9\u548c\u5904\u7406\u5b57\u6bb5&#xff1a; LEFT(address,3) AS shengfen&#xff1a;\u4ece address \u5b57\u6bb5\u4e2d\u63d0\u53d6\u6700\u5de6\u8fb9\u7684\u4e09\u4e2a\u5b57\u7b26&#xff0c;\u5e76\u5c06\u8fd9\u4e2a\u65b0\u751f\u6210\u7684\u5217\u547d\u540d\u4e3a sheng_address\u3002\u8fd9\u901a\u5e38\u7528\u4e8e\u83b7\u53d6\u5730\u5740\u4e2d\u7684\u7701\u4efd\u4fe1\u606f&#xff0c;\u5047\u8bbe\u5730\u5740\u662f\u4ee5\u67d0\u79cd\u56fa\u5b9a\u683c\u5f0f\u5b58\u50a8\u7684&#xff0c;\u4f8b\u5982\u4e2d\u56fd\u7684\u7701\u5e02\u53bf\u683c\u5f0f&#xff0c;\u5176\u4e2d\u524d\u51e0\u4f4d\u4ee3\u8868\u7701\u4efd\u3002 \u805a\u5408\u51fd\u6570&#xff1a; AVG(income) AS avg_income&#xff1a;\u8ba1\u7b97\u6bcf\u4e2a\u5206\u7ec4\u5185\u7684\u5e73\u5747\u6536\u5165&#xff0c;\u5e76\u5c06\u7ed3\u679c\u547d\u540d\u4e3a avg_income\u3002\u8fd9\u91cc\u5047\u8bbe income \u662f\u4e00\u4e2a\u6570\u503c\u578b\u5b57\u6bb5&#xff0c;\u8868\u793a\u4e2a\u4eba\u6216\u5bb6\u5ead\u7684\u6536\u5165\u3002 \u5206\u7ec4&#xff1a; GROUP BY shengfen&#xff1a;\u6839\u636e sheng_address&#xff08;\u5373\u4ece address \u63d0\u53d6\u51fa\u6765\u7684\u524d\u4e09\u5b57\u7b26&#xff09;\u5bf9\u8bb0\u5f55\u8fdb\u884c\u5206\u7ec4\u3002\u8fd9\u610f\u5473\u7740\u5bf9\u4e8e address \u5b57\u6bb5\u4e2d\u5177\u6709\u76f8\u540c\u524d\u4e09\u5b57\u7b26\u7684\u6240\u6709\u8bb0\u5f55&#xff0c;\u5b83\u4eec\u5c06\u88ab\u5f52\u4e3a\u4e00\u7ec4&#xff0c;\u7136\u540e\u5bf9\u6bcf\u7ec4\u5e94\u7528\u805a\u5408\u51fd\u6570&#xff08;\u5982\u8fd9\u91cc\u7684\u5e73\u5747\u503c\u8ba1\u7b97&#xff09;\u3002 \u6392\u5e8f&#xff1a; ORDER BY avg_income DESC&#xff1a;\u6309\u7167 avg_income \u7684\u964d\u5e8f\u6392\u5217\u7ed3\u679c\u96c6\u3002\u8fd9\u610f\u5473\u7740\u62e5\u6709\u6700\u9ad8\u5e73\u5747\u6536\u5165\u7684\u5206\u7ec4\u4f1a\u51fa\u73b0\u5728\u5217\u8868\u7684\u9876\u90e8&#xff0c;\u800c\u5e73\u5747\u6536\u5165\u8f83\u4f4e\u7684\u5206\u7ec4\u5219\u4f9d\u6b21\u5f80\u4e0b\u6392\u5217\u3002 \u8868\u540d&#xff1a; FROM a_member_st&#xff1a;\u6307\u5b9a\u67e5\u8be2\u7684\u6570\u636e\u6765\u6e90\u4e8e\u540d\u4e3a a_member_st \u7684\u8868\u3002 \u603b\u7ed3\u6765\u8bf4&#xff0c;\u8fd9\u6bb5 SQL \u8bed\u53e5\u7684\u4f5c\u7528\u662f\u4ece a_member_st \u8868\u4e2d\u63d0\u53d6\u6570\u636e&#xff0c;\u57fa\u4e8e\u5730\u5740\u7684\u524d\u4e09\u4f4d\u5b57\u7b26&#xff08;\u53ef\u80fd\u4ee3\u8868\u7701\u4efd&#xff09;\u6765\u5206\u7ec4&#xff0c;\u5e76\u8ba1\u7b97\u6bcf\u4e2a\u5206\u7ec4\u7684\u5e73\u5747\u6536\u5165&#xff0c;\u6700\u540e\u6309\u5e73\u5747\u6536\u5165\u4ece\u9ad8\u5230\u4f4e\u6392\u5e8f\u8f93\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf32\u6b21\u30022024\u6570\u8bc1\u676f_\u51b3\u8d5b\u4e2a\u4eba\u8d5b\uff08\u670d\u52a1\u5668\uff09_2024\u6570\u8bc1\u676f<\/p>\n","protected":false},"author":2,"featured_media":14029,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,471,44],"topic":[],"class_list":["post-14048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-471","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/14048.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf32\u6b21\u30022024\u6570\u8bc1\u676f_\u51b3\u8d5b\u4e2a\u4eba\u8d5b\uff08\u670d\u52a1\u5668\uff09_2024\u6570\u8bc1\u676f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/14048.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T12:52:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125221-68024b05c400b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14048.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/14048.html\",\"name\":\"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:52:31+00:00\",\"dateModified\":\"2025-04-18T12:52:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/14048.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/14048.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14048.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/14048.html","og_locale":"zh_CN","og_type":"article","og_title":"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf32\u6b21\u30022024\u6570\u8bc1\u676f_\u51b3\u8d5b\u4e2a\u4eba\u8d5b\uff08\u670d\u52a1\u5668\uff09_2024\u6570\u8bc1\u676f","og_url":"https:\/\/www.wsisp.com\/helps\/14048.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:52:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125221-68024b05c400b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/14048.html","url":"https:\/\/www.wsisp.com\/helps\/14048.html","name":"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:52:31+00:00","dateModified":"2025-04-18T12:52:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/14048.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/14048.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/14048.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u30102024-\u6570\u8bc1\u676f\u3011\u51b3\u8d5b_\u4e2a\u4eba\u8d5b(\u670d\u52a1\u5668)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=14048"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14048\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/14029"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=14048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=14048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=14048"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=14048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}