{"id":4208,"date":"2024-05-15T23:36:49","date_gmt":"2024-05-15T15:36:49","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e7%8e%b0%e7%9f%ad%e4%bf%a1%e9%aa%8c%e8%af%81%e6%b3%a8%e5%86%8c%e5%92%8c%e7%99%bb%e5%bd%95\/"},"modified":"2024-08-02T17:32:39","modified_gmt":"2024-08-02T09:32:39","slug":"spring-boot%e5%ae%9e%e7%8e%b0%e7%9f%ad%e4%bf%a1%e9%aa%8c%e8%af%81%e6%b3%a8%e5%86%8c%e5%92%8c%e7%99%bb%e5%bd%95","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e7%8e%b0%e7%9f%ad%e4%bf%a1%e9%aa%8c%e8%af%81%e6%b3%a8%e5%86%8c%e5%92%8c%e7%99%bb%e5%bd%95\/","title":{"rendered":"Spring Boot\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u6ce8\u518c\u548c\u767b\u5f55"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<blockquote style=\"padding: 15px 15px 15px 1rem; border-left-width: 6px; border-left-color: #536dfe; color: #819198; font-size: 0.9em; line-height: inherit; overflow-wrap: normal; width: 868.797px; background: #f2f7fb; overflow: auto; word-break: normal; border-radius: 9px; box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: start; text-wrap: wrap;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit;\"><span style=\"color: inherit; font-size: 14px;\">\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e5d\u6781\u5ba2<\/span><\/p>\n<p style=\"margin-bottom: 0px; color: inherit; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; font-size: inherit; letter-spacing: normal; text-align: start; text-wrap: wrap; outline: 0px; line-height: inherit;\"><span style=\"font-size: 14px;\">\u6b22\u8fce\u661f\u6807\u5173\u6ce8\u4e5d\u6781\u5ba2\uff0c\u4e00\u8d77\u63a2\u8ba8\u6280\u672f\u4e0e\u67b6\u6784\uff01<\/span><\/p>\n<p style=\"margin-bottom: 0px; color: inherit; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; font-size: inherit; letter-spacing: normal; text-align: start; text-wrap: wrap; outline: 0px; line-height: inherit;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px; outline: 0px;\">\u5927\u5bb6\u7684\u70b9\u8d5e\u3001\u6536\u85cf\u548c\u8bc4\u8bba\u5f88\u91cd\u8981\uff0c<\/span><span style=\"font-size: 14px; outline: 0px; color: inherit;\">\u5982\u6587\u7ae0\u5bf9\u60a8\u6709\u5e2e\u52a9\u8fd8\u8bf7\u8f6c\u53d1\u652f\u6301\u4e0b\uff0c\u8c22\u8c22\uff01<\/span><\/span><\/p>\n<\/blockquote>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<figure style=\"font-size: 16px; color: #3e3e3e; line-height: inherit; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: start; text-wrap: wrap; background-color: #ffffff;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; border-radius: 6px; font-size: inherit; color: inherit; line-height: inherit; display: block; box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px; width: 578px; border: 2px solid #eeeeee;\" title=\"\u56fe\u6ce8:\u5927\u5c11\u516c\u4f17\u53f7\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-backh=\"123\" data-backw=\"496\" data-cropselx1=\"0\" data-cropselx2=\"574\" data-cropsely1=\"0\" data-cropsely2=\"358\" data-imgfileid=\"100007420\" data-ratio=\"0.2479108635097493\" data-w=\"1077\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; border-radius: 6px; font-size: inherit; color: inherit; line-height: inherit; display: block; box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px; width: 578px; border: 2px solid #eeeeee;\" title=\"\u56fe\u6ce8:\u5927\u5c11\u516c\u4f17\u53f7\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif\" data-backh=\"123\" data-backw=\"496\" data-cropselx1=\"0\" data-cropselx2=\"574\" data-cropsely1=\"0\" data-cropsely2=\"358\" data-imgfileid=\"100007420\" data-ratio=\"0.2479108635097493\" data-w=\"1077\" \/><\/noscript><\/figure>\n<section style=\"font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 2px; letter-spacing: 2px; font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<section style=\"font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 2px; letter-spacing: 2px; font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<section style=\"font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 2px; letter-spacing: 2px; font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<section style=\"font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 2px; letter-spacing: 2px; font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u5e94\u7528\u4e2d\uff0c\u7528\u6237\u6ce8\u518c\u548c\u767b\u5f55\u662f\u6700\u5e38\u89c1\u7684\u529f\u80fd\u4e4b\u4e00\u3002\u4e3a\u4e86\u589e\u5f3a\u8d26\u6237\u5b89\u5168\u6027\u548c\u7528\u6237\u4f53\u9a8c\uff0c\u5f88\u591a\u5e94\u7528\u9009\u62e9\u4f7f\u7528\u77ed\u4fe1\u9a8c\u8bc1\u4f5c\u4e3a\u6ce8\u518c\u548c\u767b\u5f55\u7684\u65b9\u5f0f\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Spring Boot\u6846\u67b6\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u6ce8\u518c\u548c\u767b\u5f55\u529f\u80fd\uff0c\u5305\u62ec\u53d1\u9001\u77ed\u4fe1\u9a8c\u8bc1\u7801\u3001\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u3001\u6ce8\u518c\u7528\u6237\u3001\u767b\u5f55\u9a8c\u8bc1\u7b49\u6d41\u7a0b\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151714579.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001510\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151714579.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001510\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u73af\u5883\u51c6\u5907<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u4ee5\u4e0b\u73af\u5883\u51c6\u5907\u5de5\u4f5c\u5df2\u5b8c\u6210\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"font-size: inherit; color: inherit; line-height: inherit; padding-left: 32px;\">\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">JDK 8\u6216\u4ee5\u4e0a\u7248\u672c<\/span><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">Maven\u6216Gradle\u6784\u5efa\u5de5\u5177<\/span><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">Spring Boot\u6846\u67b6<\/span><\/li>\n<\/ul>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151716503.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001550\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151716503.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001550\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u6dfb\u52a0\u4f9d\u8d56<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u9996\u5148\uff0c\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">pom.xml<\/code>\u6587\u4ef6\u4e2d\u6dfb\u52a0Spring Boot Starter\u4f9d\u8d56\uff0c\u5305\u62ecSpring Web\u3001Spring Data JPA\u3001Spring Security\u7b49\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\"><\/code><\/pre>\n<div>\n<pre>&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;\/artifactId&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-security&lt;\/artifactId&gt;\n&lt;\/dependency&gt;<\/pre>\n<\/div>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">\u00a0<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u6dfb\u52a0\u53d1\u9001\u77ed\u4fe1\u7684\u76f8\u5173\u4f9d\u8d56\uff0c\u4f8b\u5982\u963f\u91cc\u4e91\u77ed\u4fe1\u670d\u52a1SDK\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\"><\/code><\/pre>\n<div>\n<pre>&lt;dependency&gt;\n    &lt;groupId&gt;com.aliyun&lt;\/groupId&gt;\n    &lt;artifactId&gt;aliyun-java-sdk-core&lt;\/artifactId&gt;\n    &lt;version&gt;4.5.0&lt;\/version&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n    &lt;groupId&gt;com.aliyun&lt;\/groupId&gt;\n    &lt;artifactId&gt;aliyun-java-sdk-dysmsapi&lt;\/artifactId&gt;\n    &lt;version&gt;1.1.0&lt;\/version&gt;\n&lt;\/dependency&gt;<\/pre>\n<\/div>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">\u00a0<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151718741.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001554\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151718741.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001554\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u914d\u7f6e\u77ed\u4fe1\u670d\u52a1<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u5728\u963f\u91cc\u4e91\u4e0a\u7533\u8bf7\u77ed\u4fe1\u670d\u52a1\uff0c\u5e76\u83b7\u53d6AccessKey ID\u548cAccessKey Secret\u3002\u7136\u540e\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">application.properties<\/code>\u6216<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">application.yml<\/code>\u4e2d\u914d\u7f6e\u77ed\u4fe1\u670d\u52a1\u7684\u76f8\u5173\u53c2\u6570\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"color: #7c4dff; background: #f8f8f8; line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">aliyun.sms.accessKeyId=your-access-key-idaliyun.sms.accessKeySecret=your-access-key-secretaliyun.sms.signName=your-sign-namealiyun.sms.templateCode=your-template-code<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151720247.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001553\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151720247.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001553\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u5b9e\u73b0\u77ed\u4fe1\u53d1\u9001\u529f\u80fd<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u521b\u5efa\u4e00\u4e2a<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">SmsService<\/code>\u7c7b\uff0c\u7528\u4e8e\u5c01\u88c5\u53d1\u9001\u77ed\u4fe1\u7684\u903b\u8f91\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\"><\/code><\/pre>\n<div>\n<pre>@ServicepublicclassSmsService {\n    @Value(\"${aliyun.sms.accessKeyId}\")privateStringaccessKeyId ;\n    @Value(\"${aliyun.sms.accessKeySecret}\")privateStringaccessKeySecret ;\n    @Value(\"${aliyun.sms.signName}\")privateStringsignName ;\n    @Value(\"${aliyun.sms.templateCode}\")privateStringtemplateCode ;\n    publicvoidsendSms(StringphoneNumber, Stringcode) {\n        DefaultProfileprofile = DefaultProfile.getProfile(\"default\", accessKeyId, accessKeySecret);\n        IAcsClientclient = newDefaultAcsClient(profile);\n        SendSmsRequestrequest = newSendSmsRequest();\n        request.setPhoneNumbers(phoneNumber);\n        request.setSignName(signName);\n        request.setTemplateCode(templateCode);\n        request.setTemplateParam(\"{\"code\":\"\"+code+\"\"}\"); try {\n            client.getAcsResponse(request);\n        } catch (Exceptione) {\n            \/\/\u5904\u7406\u5f02\u5e38\n        }\n    }\n}\n<\/pre>\n<\/div>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">\u00a0<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151721312.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001552\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151721312.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001552\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u6ce8\u518c\u548c\u767b\u5f55\u63a5\u53e3<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u521b\u5efa<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">UserController<\/code>\u7c7b\uff0c\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u6ce8\u518c\u548c\u767b\u5f55\u7684\u63a5\u53e3\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\"><\/code><\/pre>\n<div>\n<pre>@RestControllerpublicclassUserController {\n    @AutowiredprivateSmsServicesmsService ;\n    @PostMapping(\"\/register\") publicResponseEntity&lt;String&gt; register ( @RequestParamStringphoneNumber,\n    @RequestParamStringcode)\n    {\/\/\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\/\/\u6ce8\u518c\u7528\u6237\n        return ResponseEntity.ok(\"Registersuccess\");\n    }\n    @PostMapping(\"\/login\") public ResponseEntity&lt;String&gt; login (@RequestParam String phoneNumber, @RequestParam String\n    code)\n    {\n        \/\/\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\/\/\u767b\u5f55\u9a8c\u8bc1\n        return ResponseEntity.ok(\"Loginsuccess\");\n    }\n}\n<\/pre>\n<\/div>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">\u00a0<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151723855.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001551\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151723855.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001551\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u903b\u8f91<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 3px 6px; border-radius: 4px; margin-right: 9px; margin-left: 9px; color: #7c4dff; background: #f8f8f8; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">UserController<\/code>\u7c7b\u4e2d\u5b9e\u73b0\u77ed\u4fe1\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u903b\u8f91\uff0c\u4ee5\u53ca\u6ce8\u518c\u548c\u767b\u5f55\u7684\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\"><\/code><\/pre>\n<div>\n<pre>public ResponseEntity&lt;String&gt; register(@RequestParam String phoneNumber, @RequestParam String code) {\n    \/\/\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\n    if (!validateSmsCode(phoneNumber, code)) {\n        return ResponseEntity.badRequest().body(\"Invalidverificationcode\");\n    }\/\/\u6ce8\u518c\u7528\u6237\n    userService.register(phoneNumber);\n    return ResponseEntity.ok(\"Registersuccess\");\n}\n\npublic ResponseEntity&lt;String&gt; login(@RequestParam String phoneNumber, @RequestParam String code) {\n    \/\/\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\n    if (!validateSmsCode(phoneNumber, code)) {\n        return ResponseEntity.badRequest().body(\"Invalidverificationcode\");\n    }\/\/\u767b\u5f55\u9a8c\u8bc1\n    Useruser = userService.login(phoneNumber);\n    if (user == null) {\n        return ResponseEntity.badRequest().body(\"Usernotfound\");\n    }\n    return ResponseEntity.ok(\"Loginsuccess\");\n}\n\nprivate boolean validateSmsCode(String phoneNumber, String code) {\n    \/\/\u6839\u636e\u624b\u673a\u53f7\u548c\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\u7684\u6709\u6548\u6027\/\/\u8fd4\u56de\u9a8c\u8bc1\u7ed3\u679c \n    return true;\n}\n\n\n<\/pre>\n<\/div>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; overflow: hidden;\"><code style=\"line-height: 18px; word-spacing: 0px; letter-spacing: 0px; border-radius: 9px; box-shadow: #3f3f3f 3px 3px 9px; font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53; background: #282b2e; color: #e0e2e4; margin-top: 16px; margin-bottom: 16px; padding: 18px; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;\">\u00a0<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151725175.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001732\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151725175.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001732\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u6d4b\u8bd5\u63a5\u53e3<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u4f7f\u7528Postman\u6216\u5176\u4ed6\u5de5\u5177\u6d4b\u8bd5\u6ce8\u518c\u548c\u767b\u5f55\u63a5\u53e3\uff0c\u9a8c\u8bc1\u77ed\u4fe1\u9a8c\u8bc1\u7801\u7684\u53d1\u9001\u548c\u9a8c\u8bc1\u529f\u80fd\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151727525.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100001751\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151727525.jpeg\" data-galleryid=\"\" data-imgfileid=\"100001751\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit; font-weight: bolder; color: #3d5afe; text-align: center; font-size: 20px; margin-bottom: 18px;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u603b \u7ed3<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; text-indent: 2em;\">\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5b9e\u73b0\u4e86Spring Boot\u4e2d\u7684\u77ed\u4fe1\u9a8c\u8bc1\u6ce8\u518c\u548c\u767b\u5f55\u529f\u80fd\u3002\u8fd9\u79cd\u57fa\u4e8e\u77ed\u4fe1\u9a8c\u8bc1\u7801\u7684\u6ce8\u518c\u548c\u767b\u5f55\u65b9\u5f0f\uff0c\u4e0d\u4ec5\u5b89\u5168\u6027\u8f83\u9ad8\uff0c\u800c\u4e14\u7528\u6237\u4f53\u9a8c\u826f\u597d\uff0c\u662f\u73b0\u4ee3\u4e92\u8054\u7f51\u5e94\u7528\u4e2d\u5e38\u89c1\u7684\u5b9e\u8df5\u65b9\u5f0f\u4e4b\u4e00\u3002\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u548c\u5b89\u5168\u8981\u6c42\uff0c\u8fdb\u4e00\u6b65\u4f18\u5316\u548c\u6269\u5c55\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<hr style=\"font-size: inherit; color: inherit; line-height: inherit; height: 1px; margin-top: 1.5rem; margin-bottom: 1.5rem; border-right: none; border-bottom: none; border-left: none; border-top-style: dashed; border-top-color: #a5a5a5;\" \/>\n<p style=\"color: inherit; line-height: inherit; text-indent: 0em; margin-bottom: 0px;\"><strong><span style=\"font-size: 16px;\">\u611f\u8c22\u661f\u6807\u5173\u6ce8<span style=\"font-size: 16px; color: #0052ff;\">\u4e5d\u6781\u5ba2<\/span>\uff0c\u6b22\u8fce\u7559\u8a00\u8ba8\u8bba\uff01<\/span><\/strong><\/p>\n<section style=\"text-align: center; margin-bottom: 0px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151729480.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-imgfileid=\"100007419\" data-ratio=\"0.1859375\" data-type=\"gif\" data-w=\"640\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151729480.gif\" data-galleryid=\"\" data-imgfileid=\"100007419\" data-ratio=\"0.1859375\" data-type=\"gif\" data-w=\"640\" \/><\/noscript><\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\">\n<li style=\"outline: 0px; font-size: 14px;\">\n<p style=\"outline: 0px; text-align: left;\"><span style=\"outline: 0px;\"><a style=\"outline: 0px; color: var(--weui-link); cursor: pointer;\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489792&amp;idx=1&amp;sn=bf93b0eea19ac06ba6b054cc680c33f0&amp;chksm=eaa01a9bddd7938d08bbec13239800fbac51fb19511aa16ecd934e29c60805b95a963845fe78&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\" rel=\"nofollow\" >\u529f\u80fd\u4e0e\u6570\u636e\u6743\u9650\uff0cSpring AOP\u5168\u641e\u5b9a\uff01<\/a><\/span><\/p>\n<\/li>\n<li style=\"outline: 0px; font-size: 14px;\">\n<p style=\"outline: 0px; text-align: left;\"><a style=\"outline: 0px; color: var(--weui-link); cursor: pointer;\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489806&amp;idx=1&amp;sn=501046cae7dc20475adcfaab424b70fa&amp;chksm=eaa01a95ddd79383caccfb92e4b5dcd6245eb7906ec85153c7f030e2eead3cac03ba0456c7d8&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\" rel=\"nofollow\" >\u4f7f\u7528Spring Boot\u6784\u5efaGraphQL\u670d\u52a1\u5b9e\u73b0\u591a\u7aef\u6570\u636e\u7edf\u4e00\u8bbf\u95ee<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px; font-size: 14px;\">\n<p style=\"outline: 0px; text-align: left;\"><a style=\"outline: 0px; color: var(--weui-link); cursor: pointer;\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489103&amp;idx=3&amp;sn=ac3a892469b20f0d404dbc177631c250&amp;chksm=eaa015d4ddd79cc2446bb6120573a0a4c2c75b0dbddeab98940147afdf1913b127cb8ae83019&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\" rel=\"nofollow\" >\u9ad8\u6548\u5546\u54c1\u4fe1\u606f\u7f13\u5b58\uff1aSpring Cache\u4e0eRedis\u7684\u9ec4\u91d1\u7ec4\u5408<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px; font-size: 14px;\">\n<p style=\"outline: 0px; text-align: left;\"><a style=\"outline: 0px; color: var(--weui-link); cursor: pointer;\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489799&amp;idx=1&amp;sn=cd1a2efd9680ee2aeb1966737040afab&amp;chksm=eaa01a9cddd7938ab93c5279e83cd892cd47e0bb3ee21fd3357d4eeff8c993cc83b76116edf5&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\" rel=\"nofollow\" >\u5728Spring Boot\u4e2d\u4f7f\u7528GraphQL\u5e94\u5bf9\u6570\u636e\u9700\u6c42\u7684\u53d8\u5316<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px; font-size: 14px;\">\n<p style=\"outline: 0px; text-align: left;\"><a style=\"outline: 0px; color: var(--weui-link); cursor: pointer;\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489819&amp;idx=1&amp;sn=867738018bc78d78db08c9170fc7c81d&amp;chksm=eaa01a80ddd793965504cbba3881e290367662f171053444830c5408826d28a7384827b599a3&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\" rel=\"nofollow\" >\u7528Spring AOP\u5b9e\u73b0\u6570\u636e\u6743\u9650\u7cbe\u7ec6\u63a7\u5236\uff1a\u8ba9\u4fe1\u606f\u53ea\u6d41\u5411\u8be5\u770b\u7684\u4eba\uff01<\/a><\/p>\n<\/li>\n<\/ul>\n<p style=\"display: none;\">\n<blockquote><p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7: \u4e5d\u6781\u5ba2<\/p><\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e5d\u6781\u5ba2 \u6b22\u8fce\u661f\u6807\u5173\u6ce8\u4e5d\u6781\u5ba2\uff0c\u4e00\u8d77\u63a2\u8ba8\u6280\u672f\u4e0e\u67b6\u6784\uff01 \u5927\u5bb6\u7684\u70b9\u8d5e\u3001\u6536\u85cf\u548c\u8bc4\u8bba\u5f88\u91cd\u8981\uff0c\u5982\u6587\u7ae0\u5bf9\u60a8\u6709\u5e2e\u52a9\u8fd8\u8bf7\u8f6c\u53d1\u652f\u6301\u4e0b\uff0c\u8c22\u8c22\uff01 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-4208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151629349.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151633751.gif","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151714579.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151714579.jpeg","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151716503.jpeg","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151716503.jpeg","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151718741.jpeg","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151718741.jpeg","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151720247.jpeg","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151720247.jpeg","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151721312.jpeg","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151721312.jpeg","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151723855.jpeg","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151723855.jpeg","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151725175.jpeg","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151725175.jpeg","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151727525.jpeg","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151727525.jpeg","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151729480.gif","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524151729480.gif","id":"image19"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2024-05-15","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":465,"next_post_id":4166,"next_post_title":"\u670d\u52a1\u5668\u7aef\u63a8\u9001\u6280\u672f\uff1aSpring Boot\u4e2d\u7684SSE\u548cWebSocket\u5e94\u7528\u5b9e\u8df5","previous_post_id":3948,"previous_post_title":"Spring Boot+Netty+Websocket\u5b9e\u73b0\u540e\u53f0\u5411\u524d\u7aef\u63a8\u9001\u4fe1\u606f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4208","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=4208"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4208\/revisions"}],"predecessor-version":[{"id":6483,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4208\/revisions\/6483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4195"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}