{"id":3192,"date":"2023-11-02T17:20:30","date_gmt":"2023-11-02T09:20:30","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3192"},"modified":"2023-11-02T17:20:30","modified_gmt":"2023-11-02T09:20:30","slug":"springboot-%e5%88%86%e5%b8%83%e5%bc%8f%e9%aa%8c%e8%af%81%e7%a0%81%e7%99%bb%e5%bd%95%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/java\/springboot-%e5%88%86%e5%b8%83%e5%bc%8f%e9%aa%8c%e8%af%81%e7%a0%81%e7%99%bb%e5%bd%95%e6%96%b9%e6%a1%88\/","title":{"rendered":"SpringBoot \u5206\u5e03\u5f0f\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848"},"content":{"rendered":"<div class='wxsyncmain'>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;border-bottom: 4px solid rgb(64, 184, 250);visibility: visible;\" data-mpa-powered-by=\"yiban.io\"><span style=\"margin-left: 25px;outline: 0px;display: flex;color: rgb(64, 184, 250);font-size: 20px;visibility: visible;\">\u672c\u6587\u5927\u7eb2<\/span><span style=\"margin-top: -10px;outline: 0px;display: flex;width: 200px;height: 10px;border-top-left-radius: 20px;background: rgba(64, 184, 250, 0.5);color: rgb(255, 255, 255);font-size: 16px;letter-spacing: 0.544px;justify-content: flex-end;float: right;visibility: visible;\"><\/span><\/h2>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);font-size: 15px;color: rgb(89, 89, 89);list-style-type: circle;visibility: visible;\">\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u524d\u8a00<\/p>\n<\/li>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u524d\u540e\u7aef\u672a\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848<\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;list-style-type: square;visibility: visible;\">\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b<\/p>\n<\/li>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u767b\u5f55\u9a8c\u8bc1\u6d41\u7a0b\u5982\u4e0b<\/p>\n<\/li>\n<\/ul>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u524d\u540e\u7aef\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848<\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;list-style-type: square;visibility: visible;\">\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b<\/p>\n<\/li>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u767b\u5f55\u9a8c\u8bc1\u6d41\u7a0b\u5982\u4e0b<\/p>\n<\/li>\n<\/ul>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u52a8\u624b\u64b8\u8f6e\u5b50<\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;list-style-type: square;visibility: visible;\">\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">Kaptcha\u4ecb\u7ecd<\/p>\n<\/li>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u65b0\u5efa\u9879\u76ee\u5e76\u52a0\u5165\u4f9d\u8d56<\/p>\n<\/li>\n<li style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u9a8c\u8bc1\u7801\u83b7\u53d6\u548c\u67e5\u770b<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;border-bottom: 4px solid rgb(64, 184, 250);visibility: visible;\"><span style=\"margin-left: 25px;outline: 0px;display: flex;color: rgb(64, 184, 250);font-size: 20px;visibility: visible;\">\u524d\u8a00<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;visibility: visible;\">\u4e3a\u4e86\u9632\u6b62\u4e16\u754c\u88ab\u7834\u574f\uff0c\u4e3a\u4e86\u5b88\u62a4\u4e16\u754c\u7684\u548c\u5e73\u3002\u3002\u3002\u8bf4\u9519\u4e86\uff0c\u91cd\u6765~<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;visibility: visible;\">\u4e3a\u4e86\u9632\u6b62\u9a8c\u8bc1\u7cfb\u7edf\u88ab\u66b4\u529b\u7834\u89e3\uff0c\u5f88\u591a\u7cfb\u7edf\u90fd\u589e\u52a0\u4e86\u9a8c\u8bc1\u7801\u6548\u9a8c\uff0c\u6bd4\u8f83\u5e38\u89c1\u7684\u5c31\u662f\u56fe\u7247\u4e8c\u7ef4\u7801\uff0c\u4e1a\u5185\u6bd4\u8f83\u5b89\u5168\u7684\u662f\u77ed\u4fe1\u9a8c\u8bc1\u7801\uff0c\u5f53\u7136\u8fd8\u6709\u4e00\u4e9b\u62fc\u56fe\u9a8c\u8bc1\u7801\uff0c\u52a0\u5165\u4eba\u5de5\u667a\u80fd\u7684\u4e8c\u7ef4\u7801\u7b49\u7b49\uff0c\u6211\u4eec\u4eca\u5929\u7684\u4e3b\u9898\u5c31\u662f\u524d\u540e\u7aef\u5206\u79bb\u7684\u56fe\u7247\u4e8c\u7ef4\u7801\u767b\u5f55\u65b9\u6848\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;border-bottom: 4px solid rgb(64, 184, 250);visibility: visible;\"><span style=\"margin-left: 25px;outline: 0px;display: flex;color: rgb(64, 184, 250);font-size: 20px;visibility: visible;\">\u524d\u540e\u7aef\u672a\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;visibility: visible;\">\u4f20\u7edf\u7684\u9879\u76ee\u5927\u90fd\u662f\u57fa\u4e8esession\u4ea4\u4e92\u7684\uff0c\u524d\u540e\u7aef\u90fd\u5728\u4e00\u4e2a\u9879\u76ee\u91cc\u9762\uff0c\u6bd4\u5982\u4f20\u7edf\u7684SSH\u9879\u76ee\u6216\u8005\u4e00\u4e9bJSP\u7cfb\u7edf\uff0c\u5f53\u524d\u7aef\u9875\u9762\u89e6\u53d1\u5230\u83b7\u53d6\u9a8c\u8bc1\u7801\u8bf7\u6c42\uff0c\u53ef\u4ee5\u5c06\u9a8c\u8bc1\u7801\u91cc\u9762\u7684\u4fe1\u606f\u5b58\u5728\u4e0a\u4e0b\u6587\u4e2d\uff0c\u6240\u4ee5\u767b\u5f55\u7684\u65f6\u5019\u53ea\u9700\u8981<code style=\"outline: 0px;visibility: visible;\">\u7528\u6237\u540d<\/code>\u3001<code style=\"outline: 0px;visibility: visible;\">\u5bc6\u7801<\/code>\u3001<code style=\"outline: 0px;visibility: visible;\">\u9a8c\u8bc1\u7801<\/code>\u5373\u53ef\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;visibility: visible;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);visibility: visible;\">\u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b<\/span><\/h3>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.6401869158878505\" data-type=\"jpeg\" data-w=\"856\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6401869158878505\" data-type=\"jpeg\" data-w=\"856\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg\"  \/><\/noscript><\/figure>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">\u767b\u5f55\u9a8c\u8bc1\u6d41\u7a0b\u5982\u4e0b<\/span><\/h3>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.575\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165141347.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.575\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165141347.jpeg\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u53ef\u4ee5\u53d1\u73b0\uff0c\u6574\u4e2a\u767b\u5f55\u6d41\u7a0b\u8fd8\u662f\u4f9d\u8d56session\u4e0a\u4e0b\u6587\u7684\uff0c\u5e76\u4e14\u7531\u540e\u7aef\u8c03\u6574\u9875\u9762\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;border-bottom: 4px solid rgb(64, 184, 250);\"><span style=\"margin-left: 25px;outline: 0px;display: flex;color: rgb(64, 184, 250);font-size: 20px;\">\u524d\u540e\u7aef\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u968f\u7740\u7cfb\u7edf\u548c\u4e1a\u52a1\u7684\u4e0d\u505c\u5347\u7ea7\uff0c\u524d\u540e\u7aef\u4ee3\u7801\u653e\u5728\u4e00\u8d77\u7684\u9879\u76ee\u8d8a\u6765\u8d8a\u81c3\u80bf\uff0c\u5df2\u7ecf\u65e0\u6cd5\u5feb\u901f\u8fed\u4ee3\u548c\u804c\u8d23\u533a\u5206\u4e86\uff0c\u4e8e\u662f\u7eb7\u7eb7\u6295\u5165\u4e86\u524d\u540e\u7aef\u5206\u79bb\u7684\u6000\u62b1\uff0c\u53d1\u73b0\u4ee3\u7801\u548c\u804c\u8d23\u5206\u79bb\u4ee5\u540e\uff0c\u5f00\u53d1\u6548\u7387\u8d8a\u6765\u8d8a\u9ad8\u4e86\uff0c\u529f\u80fd\u8fed\u4ee3\u8fd8\u8d8a\u6765\u8d8a\u5feb\uff0c\u4f46\u662f\u4ee5\u524d\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848\u5c31\u8981\u66f4\u6539\u4e86\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">\u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b<\/span><\/h3>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.6157303370786517\" data-type=\"jpeg\" data-w=\"890\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165143432.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6157303370786517\" data-type=\"jpeg\" data-w=\"890\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165143432.jpeg\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u5bf9\u6bd4\u539f\u6765\u7684\u65b9\u6848\uff0c\u589e\u52a0\u4e86redis\u4e2d\u95f4\u4ef6\uff0c\u4e0d\u518d\u662f\u5b58\u5728session\u91cc\u9762\u4e86\uff0c\u4f46\u662f\u540e\u9762\u600e\u4e48\u533a\u5206\u8fd9\u4e2a\u9a8c\u8bc1\u7801\u662f\u8fd9\u4e2a\u8bf7\u6c42\u751f\u6210\u7684\u5462\uff1f\u6240\u4ee5\u6211\u4eec\u52a0\u5165\u4e86\u552f\u4e00\u6807\u8bc6\u7b26\u6765\u533a\u5206<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">\u767b\u5f55\u9a8c\u8bc1\u6d41\u7a0b\u5982\u4e0b<\/span><\/h3>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.5157407407407407\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165145239.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5157407407407407\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165145239.jpeg\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u53ef\u4ee5\u53d1\u73b0\uff0c\u57fa\u4e8e\u524d\u540e\u7aef\u5206\u79bb\u7684\u5206\u5e03\u5f0f\u9879\u76ee\u767b\u5f55\u65b9\u6848\u5bf9\u6bd4\u539f\u6765\uff0c\u52a0\u4e86\u4e00\u4e2aredis\u4e2d\u95f4\u4ef6\u548ctoken\u8fd4\u56de\uff0c\u4e0d\u518d\u4f9d\u8d56\u4e0a\u4e0b\u6587session\uff0c\u5e76\u4e14\u9875\u9762\u8c03\u6574\u4e5f\u662f\u7531\u540e\u7aef\u6362\u5230\u4e86\u524d\u7aef<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;border-bottom: 4px solid rgb(64, 184, 250);\"><span style=\"margin-left: 25px;outline: 0px;display: flex;color: rgb(64, 184, 250);font-size: 20px;\">\u52a8\u624b\u64b8\u8f6e\u5b50<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u57fa\u4e8e\u9a8c\u8bc1\u7801\u7684\u8f6e\u5b50\u8fd8\u662f\u633a\u591a\u7684\uff0c\u672c\u6587\u5c31\u4ee5<code style=\"outline: 0px;\">Kaptcha<\/code>\u8fd9\u4e2a\u9879\u76ee\u4e3a\u4f8b\uff0c\u901a\u8fc7springboot\u9879\u76ee\u96c6\u6210<code style=\"outline: 0px;\">Kaptcha<\/code>\u6765\u5b9e\u73b0\u9a8c\u8bc1\u7801\u751f\u6210\u548c\u767b\u5f55\u65b9\u6848\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">Kaptcha\u4ecb\u7ecd<\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">Kaptcha\u662f\u4e00\u4e2a\u57fa\u4e8eSimpleCaptcha\u7684\u9a8c\u8bc1\u7801\u5f00\u6e90\u9879\u76ee<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u6211\u627e\u7684\u8fd9\u4e2a\u8f6e\u5b50\u662f\u57fa\u4e8eSimpleCaptcha\u4e8c\u6b21\u5c01\u88c5\u7684\uff0cmaven\u4f9d\u8d56\u5982\u4e0b<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\">&lt;!--Kaptcha\u662f\u4e00\u4e2a\u57fa\u4e8eSimpleCaptcha\u7684\u9a8c\u8bc1\u7801\u5f00\u6e90\u9879\u76ee--&gt;&lt;dependency&gt;&lt;groupId&gt;com.github.penggle&lt;\/groupId&gt;&lt;artifactId&gt;kaptcha&lt;\/artifactId&gt;&lt;version&gt;2.3.2&lt;\/version&gt;&lt;\/dependency&gt;<\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">\u65b0\u5efa\u9879\u76ee\u5e76\u52a0\u5165\u4f9d\u8d56<\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u4f9d\u8d56\u4e3b\u8981\u6709 SpringBoot\u3001Kaptcha\u3001Redis<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\"><code style=\"outline: 0px;\">pom.xml<\/code><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\">&lt;?xmlversion=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"1.0\"<\/span>encoding=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"UTF-8\"<\/span>?&gt;&lt;projectxmlns=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"http:\/\/maven.apache.org\/POM\/4.0.0\"<\/span>xmlns:xsi=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>xsi:schemaLocation=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"http:\/\/maven.apache.org\/POM\/4.0.0http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"<\/span>&gt;&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;&lt;groupId&gt;com.lzp&lt;\/groupId&gt;&lt;artifactId&gt;kaptcha&lt;\/artifactId&gt;&lt;version&gt;1.0-SNAPSHOT&lt;\/version&gt;&lt;parent&gt;&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;&lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;&lt;version&gt;2.3.0.RELEASE&lt;\/version&gt;&lt;relativePath\/&gt;&lt;!--lookupparentfromrepository--&gt;&lt;\/parent&gt;&lt;dependencies&gt;&lt;!--Kaptcha\u662f\u4e00\u4e2a\u57fa\u4e8eSimpleCaptcha\u7684\u9a8c\u8bc1\u7801\u5f00\u6e90\u9879\u76ee--&gt;&lt;dependency&gt;&lt;groupId&gt;com.github.penggle&lt;\/groupId&gt;&lt;artifactId&gt;kaptcha&lt;\/artifactId&gt;&lt;version&gt;2.3.2&lt;\/version&gt;&lt;\/dependency&gt;&lt;dependency&gt;&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;&lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;&lt;\/dependency&gt;&lt;dependency&gt;&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;&lt;artifactId&gt;spring-boot-starter-data-redis&lt;\/artifactId&gt;&lt;\/dependency&gt;&lt;!--redis\u4f9d\u8d56commons-pool\u8fd9\u4e2a\u4f9d\u8d56\u4e00\u5b9a\u8981\u6dfb\u52a0--&gt;&lt;dependency&gt;&lt;groupId&gt;org.apache.commons&lt;\/groupId&gt;&lt;artifactId&gt;commons-pool2&lt;\/artifactId&gt;&lt;\/dependency&gt;&lt;dependency&gt;&lt;groupId&gt;com.alibaba&lt;\/groupId&gt;&lt;artifactId&gt;fastjson&lt;\/artifactId&gt;&lt;version&gt;1.2.3&lt;\/version&gt;&lt;\/dependency&gt;&lt;dependency&gt;&lt;groupId&gt;com.fasterxml.jackson.core&lt;\/groupId&gt;&lt;artifactId&gt;jackson-databind&lt;\/artifactId&gt;&lt;\/dependency&gt;&lt;\/dependencies&gt;&lt;build&gt;&lt;plugins&gt;&lt;plugin&gt;&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;&lt;artifactId&gt;spring-boot-maven-plugin&lt;\/artifactId&gt;&lt;\/plugin&gt;&lt;\/plugins&gt;&lt;\/build&gt;&lt;\/project&gt;<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">Redis\u914d\u7f6e\u7c7b<code style=\"outline: 0px;\">RedisConfig<\/code><\/span><\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Configuration<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">RedisConfig<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Bean<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>RedisTemplate&lt;String,Object&gt;<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">redisTemplate<\/span><span style=\"outline: 0px;line-height: 26px;\">(LettuceConnectionFactoryredisConnectionFactory)<\/span><\/span>{RedisTemplate&lt;String,Object&gt;redisTemplate=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>RedisTemplate&lt;String,Object&gt;();redisTemplate.setKeySerializer(<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>StringRedisSerializer());redisTemplate.setValueSerializer(<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>GenericJackson2JsonRedisSerializer());redisTemplate.setHashKeySerializer(<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>StringRedisSerializer());redisTemplate.setHashValueSerializer(<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>GenericJackson2JsonRedisSerializer());redisTemplate.setConnectionFactory(redisConnectionFactory);<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>redisTemplate;}}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u9a8c\u8bc1\u7801\u914d\u7f6e\u7c7b<code style=\"outline: 0px;\">KaptchaConfig<\/code><\/span><\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Configuration<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">KaptchaConfig<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Bean<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>DefaultKaptcha<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">producer<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{DefaultKaptchadefaultKaptcha=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>DefaultKaptcha();Propertiesproperties=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>Properties();properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.border\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"no\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.border.color\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"105,179,90\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.font.color\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"black\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.image.width\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"110\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.image.height\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"40\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.char.string\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"23456789abcdefghkmnpqrstuvwxyzABCDEFGHKMNPRSTUVWXYZ\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.font.size\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"30\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.char.space\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"3\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.session.key\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"code\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.char.length\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"4\"<\/span>);properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.textproducer.font.names\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\u5b8b\u4f53,\u6977\u4f53,\u5fae\u8f6f\u96c5\u9ed1\"<\/span>);<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/properties.setProperty(\"kaptcha.obscurificator.impl\",\"com.xxx\");\u53ef\u4ee5\u91cd\u5199\u5b9e\u73b0\u7c7b<\/span>properties.setProperty(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"kaptcha.noise.impl\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"com.google.code.kaptcha.impl.NoNoise\"<\/span>);Configconfig=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>Config(properties);defaultKaptcha.setConfig(config);<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>defaultKaptcha;}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u9a8c\u8bc1\u7801\u63a7\u5236\u5c42<code style=\"outline: 0px;\">CaptchaController<\/code><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u4e3a\u4e86\u65b9\u4fbf\u4ee3\u7801\u5199\u4e00\u5757\u4e86\uff0c\u8bb2\u7a76\u770b<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">package<\/span>com.lzp.kaptcha.controller;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.google.code.kaptcha.impl.DefaultKaptcha;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.service.CaptchaService;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.vo.CaptchaVO;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.beans.factory.annotation.Autowired;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.GetMapping;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.RequestMapping;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.ResponseBody;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.RestController;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>sun.misc.BASE64Encoder;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>javax.imageio.ImageIO;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>java.awt.image.BufferedImage;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>java.io.ByteArrayOutputStream;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>java.io.IOException;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@RestController<\/span><span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@RequestMapping<\/span>(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\/captcha\"<\/span>)<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">CaptchaController<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Autowired<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>DefaultKaptchaproducer;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Autowired<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>CaptchaServicecaptchaService;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@ResponseBody<\/span><span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@GetMapping<\/span>(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\/get\"<\/span>)<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>CaptchaVO<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getCaptcha<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">throws<\/span>IOException<\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u751f\u6210\u6587\u5b57\u9a8c\u8bc1\u7801<\/span>Stringcontent=producer.createText();<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u751f\u6210\u56fe\u7247\u9a8c\u8bc1\u7801<\/span>ByteArrayOutputStreamoutputStream=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">null<\/span>;BufferedImageimage=producer.createImage(content);outputStream=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>ByteArrayOutputStream();ImageIO.write(image,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"jpg\"<\/span>,outputStream);<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u5bf9\u5b57\u8282\u6570\u7ec4Base64\u7f16\u7801<\/span>BASE64Encoderencoder=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>BASE64Encoder();Stringstr=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"data:image\/jpeg;base64,\"<\/span>;Stringbase64Img=str+encoder.encode(outputStream.toByteArray()).replace(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"n\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\"<\/span>).replace(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"r\"<\/span>,<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\"<\/span>);CaptchaVOcaptchaVO=captchaService.cacheCaptcha(content);captchaVO.setBase64Img(base64Img);<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>captchaVO;}}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u9a8c\u8bc1\u7801\u8fd4\u56de\u5bf9\u8c61<code style=\"outline: 0px;\">CaptchaVO<\/code><\/span><\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">package<\/span>com.lzp.kaptcha.vo;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">CaptchaVO<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/***\u9a8c\u8bc1\u7801\u6807\u8bc6\u7b26*\/<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>StringcaptchaKey;<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/***\u9a8c\u8bc1\u7801\u8fc7\u671f\u65f6\u95f4*\/<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>Longexpire;<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/***base64\u5b57\u7b26\u4e32*\/<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>Stringbase64Img;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getCaptchaKey<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>captchaKey;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setCaptchaKey<\/span><span style=\"outline: 0px;line-height: 26px;\">(StringcaptchaKey)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.captchaKey=captchaKey;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>Long<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getExpire<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>expire;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setExpire<\/span><span style=\"outline: 0px;line-height: 26px;\">(Longexpire)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.expire=expire;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getBase64Img<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>base64Img;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setBase64Img<\/span><span style=\"outline: 0px;line-height: 26px;\">(Stringbase64Img)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.base64Img=base64Img;}}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">Redis\u5c01\u88c5\u7c7b<code style=\"outline: 0px;\">RedisUtils<\/code><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u7f51\u4e0a\u968f\u610f\u627e\u7684\uff0c\u7c7b\u91cc\u9762\u6ce8\u660e\u6765\u6e90\uff0c\u5c06\u5c31\u7528\uff0c\u4ee3\u7801\u8f83\u591a\u5c31\u4e0d\u8d34\u4e86\uff0c\u6587\u672b\u6709\u4ee3\u7801\u83b7\u53d6<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u9a8c\u8bc1\u7801\u65b9\u6cd5\u5c42<code style=\"outline: 0px;\">CaptchaService<\/code><\/span><\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">package<\/span>com.lzp.kaptcha.service;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.utils.RedisUtils;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.vo.CaptchaVO;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.beans.factory.annotation.Autowired;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.beans.factory.annotation.Value;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.stereotype.Service;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>java.util.UUID;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Service<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">CaptchaService<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Value<\/span>(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"${server.session.timeout:300}\"<\/span>)<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>Longtimeout;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Autowired<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>RedisUtilsredisUtils;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">final<\/span>StringCAPTCHA_KEY=<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"captcha:verification:\"<\/span>;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>CaptchaVO<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">cacheCaptcha<\/span><span style=\"outline: 0px;line-height: 26px;\">(Stringcaptcha)<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u751f\u6210\u4e00\u4e2a\u968f\u673a\u6807\u8bc6\u7b26<\/span>StringcaptchaKey=UUID.randomUUID().toString();<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u7f13\u5b58\u9a8c\u8bc1\u7801\u5e76\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4<\/span>redisUtils.set(CAPTCHA_KEY.concat(captchaKey),captcha,timeout);CaptchaVOcaptchaVO=<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>CaptchaVO();captchaVO.setCaptchaKey(captchaKey);captchaVO.setExpire(timeout);<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>captchaVO;}}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u7528\u6237\u767b\u5f55\u5bf9\u8c61\u5c01\u88c5<code style=\"outline: 0px;\">LoginDTO<\/code><\/span><\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">package<\/span>com.lzp.kaptcha.dto;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">LoginDTO<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>StringuserName;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>Stringpwd;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>StringcaptchaKey;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>Stringcaptcha;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getUserName<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>userName;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setUserName<\/span><span style=\"outline: 0px;line-height: 26px;\">(StringuserName)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.userName=userName;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getPwd<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>pwd;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setPwd<\/span><span style=\"outline: 0px;line-height: 26px;\">(Stringpwd)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.pwd=pwd;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getCaptchaKey<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>captchaKey;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setCaptchaKey<\/span><span style=\"outline: 0px;line-height: 26px;\">(StringcaptchaKey)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.captchaKey=captchaKey;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>String<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">getCaptcha<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span>captcha;}<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">setCaptcha<\/span><span style=\"outline: 0px;line-height: 26px;\">(Stringcaptcha)<\/span><\/span>{<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">this<\/span>.captcha=captcha;}}<\/code><\/pre>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);color: black;\"><span style=\"outline: 0px;height: 16px;line-height: 16px;font-size: 16px;\">\u767b\u5f55\u63a7\u5236\u5c42<code style=\"outline: 0px;\">UserController<\/code><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;font-size: 14px;word-spacing: 2px;\">\u8fd9\u5757\u6211\u5199\u903b\u8f91\u4ee3\u7801\u4e86\uff0c\u76f8\u4fe1\u5927\u5bb6\u90fd\u770b\u7684\u61c2<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-size: 16px;letter-spacing: 2px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(51, 51, 51);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;letter-spacing: 0px;background: rgb(248, 248, 248);border-radius: 5px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">package<\/span>com.lzp.kaptcha.controller;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.dto.LoginDTO;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.utils.RedisUtils;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>com.lzp.kaptcha.vo.UserVO;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.beans.factory.annotation.Autowired;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.PostMapping;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.RequestBody;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.RequestMapping;<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">import<\/span>org.springframework.web.bind.annotation.RestController;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@RestController<\/span><span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@RequestMapping<\/span>(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\/user\"<\/span>)<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"outline: 0px;color: rgb(68, 85, 136);font-weight: bold;line-height: 26px;\">UserController<\/span><\/span>{<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@Autowired<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">private<\/span>RedisUtilsredisUtils;<span style=\"outline: 0px;color: rgb(153, 153, 153);font-weight: bold;line-height: 26px;\">@PostMapping<\/span>(<span style=\"outline: 0px;color: rgb(221, 17, 68);line-height: 26px;\">\"\/login\"<\/span>)<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">public<\/span>UserVO<span style=\"outline: 0px;color: rgb(153, 0, 0);font-weight: bold;line-height: 26px;\">login<\/span><span style=\"outline: 0px;line-height: 26px;\">(@RequestBodyLoginDTOloginDTO)<\/span><\/span>{Objectcaptch=redisUtils.get(loginDTO.getCaptchaKey());<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">if<\/span>(captch==<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">null<\/span>){<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/throw\u9a8c\u8bc1\u7801\u5df2\u8fc7\u671f<\/span>}<span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">if<\/span>(!loginDTO.getCaptcha().equals(captch)){<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/throw\u9a8c\u8bc1\u7801\u9519\u8bef<\/span>}<span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u67e5\u8be2\u7528\u6237\u4fe1\u606f<\/span><span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u5224\u65ad\u7528\u6237\u662f\u5426\u5b58\u5728\u4e0d\u5b58\u5728\u629b\u51fa\u7528\u6237\u540d\u5bc6\u7801\u9519\u8bef<\/span><span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u5224\u65ad\u5bc6\u7801\u662f\u5426\u6b63\u786e\uff0c\u4e0d\u6b63\u786e\u629b\u51fa\u7528\u6237\u540d\u5bc6\u7801\u9519\u8bef<\/span><span style=\"outline: 0px;color: rgb(153, 153, 136);font-style: italic;line-height: 26px;\">\/\/\u6784\u9020\u8fd4\u56de\u5230\u524d\u7aef\u7684\u7528\u6237\u5bf9\u8c61\u5e76\u5c01\u88c5\u4fe1\u606f\u548c\u751f\u6210token<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">return<\/span><span style=\"outline: 0px;font-weight: bold;line-height: 26px;\">new<\/span>UserVO();}}<\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;outline: 0px;font-weight: bold;font-size: 17px;font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;letter-spacing: 2px;white-space: normal;background-color: rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"padding-bottom: 2px;outline: 0px;border-bottom: 2px solid rgba(79, 177, 249, 0.65);color: rgb(43, 43, 43);\">\u9a8c\u8bc1\u7801\u83b7\u53d6\u548c\u67e5\u770b<\/span><\/h3>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.32592592592592595\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165147880.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.32592592592592595\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165147880.jpeg\"  \/><\/noscript><\/figure>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(43, 43, 43);font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;font-size: 16px;letter-spacing: 2px;text-align: left;white-space: normal;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.37407407407407406\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165151182.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.37407407407407406\" data-type=\"jpeg\" data-w=\"1080\" style=\"margin: 20px auto;outline: 0px;border-radius: 6px;display: block;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;width: 677px !important;visibility: visible !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165151182.jpeg\"  \/><\/noscript><\/figure>\n<p style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);text-align: center;\"><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);visibility: visible;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;\">\u6765\u6e90\uff5c<\/span><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);visibility: visible;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;\">\u7801\u755c\u541b<\/span><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;visibility: visible;\"><\/span><\/p>\n<pre style=\"outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);color: rgb(62, 62, 62);font-size: 15px;text-align: start;line-height: inherit;\"><section style=\"outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;caret-color: rgb(60, 60, 60);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif;text-align: center;widows: 1;\"><span style=\"outline: 0px;font-size: 20px;color: rgb(255, 0, 0);\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><\/section><p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;line-height: 26px;visibility: visible;\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p><blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 1em;outline: 0px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);color: rgb(119, 119, 119);font-size: 0.9em;white-space: normal;letter-spacing: normal;caret-color: rgb(60, 60, 60);widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;border-top: none;border-bottom: none;overflow: auto;background: rgba(0, 0, 0, 0.05);border-right: 2px solid rgb(136, 136, 136);visibility: visible;\"><p style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;font-size: 16px;text-align: justify;color: black;line-height: 26px;visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p><\/blockquote><p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;line-height: 26px;visibility: visible;\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p><p style=\"outline: 0px;text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 200px !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165153506.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 200px !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165153506.png\"  \/><\/noscript><\/p><figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;\"><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 14px;visibility: visible;\">\u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<\/figcaption><\/figure><\/pre>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 Java\u9762\u8bd5\u9898\u7cbe\u9009              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5927\u7eb2 \u524d\u8a00 \u524d\u540e\u7aef\u672a\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848 \u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b \u767b\u5f55\u9a8c\u8bc1\u6d41\u7a0b\u5982\u4e0b \u524d\u540e\u7aef\u5206\u79bb\u7684\u9a8c\u8bc1\u7801\u767b\u5f55\u65b9\u6848 \u9a8c\u8bc1\u7801\u751f\u6210\u6d41\u7a0b\u5982\u4e0b &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2,8],"tags":[],"class_list":["post-3192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-spring-cloud"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165137611.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165139481.jpeg","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165141347.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165141347.jpeg","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165143432.jpeg","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165143432.jpeg","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165145239.jpeg","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165145239.jpeg","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165147880.jpeg","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165147880.jpeg","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165151182.jpeg","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165151182.jpeg","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165153506.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165153506.png","id":"image13"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Java","post_date":"2023-11-02","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":415,"next_post_id":3316,"next_post_title":"springboot kafka \u5b9e\u73b0\u5ef6\u65f6\u961f\u5217","previous_post_id":3183,"previous_post_title":"12306 \u62a2\u7968\u5f00\u6e90\u811a\u672c\u767b\u4e0a\u70ed\u699c\uff01","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3192"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3192\/revisions"}],"predecessor-version":[{"id":3631,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3192\/revisions\/3631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3184"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}