{"id":121870,"date":"2026-11-03T21:57:18","date_gmt":"2026-11-03T13:57:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/121870.html"},"modified":"2026-11-03T21:57:18","modified_gmt":"2026-11-03T13:57:18","slug":"springbootredisai%e6%97%81%e8%b7%af%ef%bc%8c%e6%89%93%e9%80%a0%e5%8f%af%e5%a4%8d%e7%94%a8%e7%9a%84%e8%b5%9b%e4%ba%8b%e7%b3%bb%e7%bb%9f%e6%af%95%e8%ae%be","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/121870.html","title":{"rendered":"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe"},"content":{"rendered":"<p style=\"text-align:center\">\u505a\u8d5b\u4e8b\u7c7b\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u9677\u5165\u4e24\u79cd\u6781\u7aef&#xff1a;\u4e00\u662f\u53ea\u505a\u540e\u53f0 CRUD&#xff0c;\u9875\u9762\u50cf\u540e\u53f0\u8868\u683c&#xff1b;\u4e8c\u662f\u5806\u6982\u5ff5\u2014\u2014\u5fae\u670d\u52a1\u3001\u7f51\u5173\u3001\u771f\u5b9e\u652f\u4ed8\u2014\u2014\u6f14\u793a\u65f6\u5168\u7ebf\u5d29\u76d8\u3002<\/p>\n<p>\u300c\u53d1\u4ee4\u53f0 GUNSTART\u300d&#xff08;\u4ed3\u5e93\u540d marathon_system&#xff09;\u8d70\u7684\u662f\u7b2c\u4e09\u6761\u8def&#xff1a;\u4e1a\u52a1\u95ed\u73af\u4f18\u5148&#xff0c;\u5916\u90e8\u80fd\u529b\u53ef\u63d2\u62d4&#xff0c;\u65b0\u6280\u672f\u65c1\u8def\u63a5\u5165\u3002\u5b83\u8986\u76d6\u516c\u5f00\u62a5\u540d\u4e0e\u7ec4\u59d4\u4f1a\u7ba1\u7406\u4e24\u6761\u95e8\u6237&#xff0c;\u4e32\u8d77\u62a5\u540d\u3001\u6a21\u62df\u652f\u4ed8\u3001\u901a\u77e5\u3001\u53d6\u6d88\u9000\u6b3e\u3001\u6210\u7ee9\u6392\u540d&#xff0c;\u518d\u628a\u8d5b\u4e8b\u52a9\u624b\u62c6\u6210\u72ec\u7acb AI \u670d\u52a1\u3002\u8fd9\u7bc7\u6587\u7ae0\u8bb0\u5f55\u6280\u672f\u9009\u578b\u3001\u5173\u952e\u8bbe\u8ba1\u548c\u51e0\u5904\u523b\u610f\u53d6\u820d\u2014\u2014\u9002\u5408\u5f53\u4f5c\u6bd5\u8bbe\u590d\u76d8&#xff0c;\u4e5f\u9002\u5408\u5f53\u4f5c\u540c\u7c7b\u7ba1\u7406\u7cfb\u7edf\u7684\u8d77\u6b65\u6a21\u677f\u3002<\/p>\n<p>\u8bbf\u95ee\u5165\u53e3\u5927\u81f4\u662f&#xff1a;<\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u89d2\u8272<\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u5730\u5740<\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u8bf4\u660e<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u8dd1\u8005\u516c\u5f00\u5e73\u53f0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;http:\/\/localhost:8081\/&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u62a5\u540d\u3001\u6211\u7684\u62a5\u540d\u3001\u6392\u540d\u3001\u8d5b\u4e8b\u52a9\u624b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u7ec4\u59d4\u4f1a\u7ba1\u7406\u53f0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;http:\/\/localhost:8081\/admin.html&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u8d5b\u4e8b\/\u9009\u624b\/\u6210\u7ee9\/\u5bfc\u51fa<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u63a5\u53e3\u6587\u6863<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;http:\/\/localhost:8081\/doc.html&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Knife4j<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>AI \u65c1\u8def<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;http:\/\/localhost:8082&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Spring AI \u8d5b\u4e8b\u52a9\u624b<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u3001\u6211\u4eec\u8981\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898<\/p>\n<p>\u9a6c\u62c9\u677e\u62a5\u540d\u4e0d\u662f\u300c\u63d2\u4e00\u6761 registration\u300d\u90a3\u4e48\u7b80\u5355\u3002\u771f\u5b9e\u94fe\u8def\u91cc\u81f3\u5c11\u6709\u8fd9\u4e9b\u7ea6\u675f&#xff1a;<\/p>\n<li>**\u540d\u989d\u4e0e\u9632\u91cd**&#xff1a;\u540c\u4eba\u540c\u8d5b\u4e0d\u80fd\u91cd\u590d\u62a5\u540d&#xff0c;\u6ee1\u989d\u8981\u6321\u6389\u3002<\/li>\n<li>**\u652f\u4ed8\u4e0e\u72b6\u6001\u673a**&#xff1a;\u672a\u652f\u4ed8\u3001\u5df2\u652f\u4ed8\u3001\u53d6\u6d88\u3001\u9000\u6b3e\u7a97\u53e3&#xff0c;\u72b6\u6001\u8981\u53ef\u89e3\u91ca\u3002<\/li>\n<li>**\u8d5b\u540e\u8d44\u4ea7**&#xff1a;\u6210\u7ee9\u3001\u5206\u6bb5\u3001\u516c\u5f00\u6392\u540d&#xff0c;\u8bfb\u591a\u5199\u5c11&#xff0c;\u9002\u5408\u7f13\u5b58\u3002<\/li>\n<li>**\u4e24\u7aef\u4f53\u9a8c**&#xff1a;\u8dd1\u8005\u8981\u8f7b&#xff1b;\u7ec4\u59d4\u4f1a\u8981\u6279\u91cf\u4e0e\u5bfc\u51fa\u3002<\/li>\n<li>**\u6f14\u793a\u53ef\u4fe1\u5ea6**&#xff1a;\u652f\u4ed8\u3001\u77ed\u4fe1\u5f80\u5f80\u63a5\u4e0d\u5230\u771f\u5b9e\u5546\u6237\u53f7&#xff0c;\u4f46\u4e0d\u80fd\u5047\u88c5\u300c\u6ca1\u8fd9\u5757\u300d\u3002<\/li>\n<p>\u56e0\u6b64\u7cfb\u7edf\u76ee\u6807\u88ab\u6536\u655b\u6210\u4e00\u53e5\u8bdd&#xff1a;<\/p>\n<p style=\"margin-left:17.0000pt\"><span style=\"color:#44515e\">\u7528\u5355\u4f53\u540e\u7aef\u6258\u4f4f\u5b8c\u6574\u4e1a\u52a1\u53d9\u4e8b&#xff1b;\u652f\u4ed8\/\u77ed\u4fe1\u7528\u53ef\u5ba1\u8ba1\u7684 mock&#xff1b;AI \u7528\u65c1\u8def\u670d\u52a1\u589e\u5f3a\u4f53\u9a8c&#xff0c;\u4f46\u4e0d\u7ed1\u67b6\u4e3b\u5de5\u7a0b\u7248\u672c\u3002<\/span><\/p>\n<p>\u4e8c\u3001\u6280\u672f\u6808\u4e0e\u603b\u4f53\u67b6\u6784<\/p>\n<p>\u7248\u672c\u4e0e\u73af\u5883\u6e05\u5355<\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u7ec4\u4ef6<\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u7248\u672c \/ \u7ea6\u5b9a<\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p><span style=\"background-color:#eef1f6\">\u8bf4\u660e<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u4e3b\u5de5\u7a0b<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Java 8 \u00b7 Spring Boot 2.7.14 \u00b7 MyBatis 2.3.1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u7aef\u53e3 8081<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u6570\u636e\u5e93<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>MySQL 8 \u00b7 \u5e93\u540d &#096;marathon_system&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u57fa\u7ebf &#096;docs\/\u6570\u636e\u5e93\u811a\u672c\/&#096;&#xff0c;\u6f14\u8fdb &#096;sql\/&#096;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u7f13\u5b58<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Redis&#xff08;Lettuce &#043; commons-pool2&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u672c\u5730 &#096;localhost:6379&#096;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u9274\u6743<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Apache Shiro 1.11 &#043; JJWT 0.11.5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u7ba1\u7406\u7aef\u65e0\u72b6\u6001 JWT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u63a5\u53e3\u6587\u6863<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Knife4j 4.4&#xff08;OpenAPI2 \/ Swagger2&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;http:\/\/localhost:8081\/doc.html&#096;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u5bfc\u51fa<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Apache POI 5.2.5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u62a5\u540d\/\u6210\u7ee9 Excel<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u9759\u6001\u524d\u7aef<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u539f\u751f HTML\/JS&#xff0c;\u65e0\u6784\u5efa<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>&#096;static\/index.html&#096; &#043; &#096;admin.html&#096;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>AI \u670d\u52a1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>Java 21 \u00b7 Spring Boot 3.4.5 \u00b7 Spring AI 1.0.9 \u00b7 &#096;qwen-plus&#096;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:144.0000pt\">\n<p>\u7aef\u53e3 8082&#xff0c;OpenAI \u517c\u5bb9<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3b\u5de5\u7a0b&#xff08;\u8d5b\u4e8b\u6838\u5fc3&#xff09;<\/p>\n<p>Java 8 &#043; Spring Boot 2.7.14&#xff0c;MyBatis \u6ce8\u89e3 SQL &#043; MySQL 8&#xff1b;Shiro &#043; JJWT \u505a\u7ba1\u7406\u7aef\u9274\u6743&#xff1b;Redis&#xff08;Lettuce&#xff09;\u7ba1 OTP \u4e0e\u8d5b\u4e8b\/\u6392\u540d\u7f13\u5b58&#xff1b;Knife4j \u51fa\u63a5\u53e3\u6587\u6863&#xff1b;POI \u51fa Excel&#xff1b;\u524d\u7aef\u4e24\u5957\u9759\u6001\u9875\u540c jar \u6258\u7ba1&#xff0c;\u514d CORS \u5fc3\u667a\u8d1f\u62c5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"287\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103135717-6ae9e83d993bf.png\" width=\"851\" \/><\/p>\n<p style=\"text-align:center\"><span style=\"color:#666666\">\u56fe 1 \u00a0\u4e3b\u5de5\u7a0b\u5206\u5c42\u67b6\u6784<\/span><\/p>\n<p>AI \u65c1\u8def&#xff08;\u8d5b\u4e8b\u52a9\u624b&#xff09;<\/p>\n<p>Java 21 &#043; Spring Boot 3.4 &#043; Spring AI&#xff0c;\u901a\u8fc7 &#064;Tool\u00a0\u8c03\u7528\u4e3b\u5de5\u7a0b \/api\/public\/**\u00a0\u67e5\u8d5b\u4e8b&#xff0c;\u7ed3\u6784\u5316\u8f93\u51fa&#xff08;\u8d5b\u4e8b\u5361\u7247 &#043; \u662f\u5426 grounded&#xff09;&#xff0c;\u524d\u7aef\u76f4\u63a5\u6e32\u67d3\u3002<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"257\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103135717-6ae9e83db4aef.png\" width=\"737\" \/><\/p>\n<p style=\"text-align:center\"><span style=\"color:#666666\">\u56fe 2 \u00a0AI \u65c1\u8def\u6570\u636e\u6d41<\/span><\/p>\n<p>\u4e3a\u4ec0\u4e48\u62c6\u5f00&#xff1f;<\/p>\n<p>\u4e3b\u5de5\u7a0b\u9501\u5728 Boot 2.7 \/ Java 8 \u65f6&#xff0c;\u786c\u5347 Spring AI \u6210\u672c\u6781\u9ad8\u3002\u65c1\u8def\u9694\u79bb\u8ba9\u300c\u6838\u5fc3\u4e1a\u52a1\u7a33\u5b9a\u300d\u548c\u300cAI \u80fd\u529b\u5c1d\u9c9c\u300d\u53ef\u4ee5\u5e76\u884c\u2014\u2014\u8fd9\u662f\u6211\u8ba4\u4e3a\u6700\u503c\u5f97\u5199\u8fdb\u7b80\u5386\u7684\u4e00\u5200\u3002<\/p>\n<p>\u4e09\u3001\u9274\u6743&#xff1a;\u7ba1\u7406\u7aef\u4e0e\u8dd1\u8005\u7aef\u6545\u610f\u4e0d\u540c<\/p>\n<p>\u7ba1\u7406\u7aef&#xff1a;Shiro \u8fc7\u6ee4\u5668\u94fe &#043; JWT<\/p>\n<p>\u7ba1\u7406\u53f0\u8d70\u524d\u540e\u7aef\u5206\u79bb&#xff1a;\u767b\u5f55\u7b7e\u53d1 JWT&#xff0c;\u8bf7\u6c42\u5934\u643a\u5e26&#xff0c;Shiro \u81ea\u5b9a\u4e49 JwtFilter\u00a0\/ JwtRealm\u00a0\u6821\u9a8c\u3002\u8fc7\u6ee4\u5668\u94fe\u7528 LinkedHashMap\u00a0\u4fdd\u8bc1\u987a\u5e8f\u654f\u611f&#xff08;ShiroConfig\u00a0\u4e2d\u771f\u5b9e\u914d\u7f6e\u7684\u7f29\u5199\u7248&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">filterChainDefinitionMap.put(&#034;\/api\/login&#034;, &#034;anon&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \u767b\u5f55\u63a5\u53e3\u672c\u8eab<br \/>\nfilterChainDefinitionMap.put(&#034;\/api\/public\/**&#034;, &#034;anon&#034;); \u00a0\u00a0\/\/ \u9009\u624b\u7aef\u516c\u5f00\u63a5\u53e3<br \/>\nfilterChainDefinitionMap.put(&#034;\/doc.html&#034;, &#034;anon&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Knife4j \u6587\u6863<br \/>\nfilterChainDefinitionMap.put(&#034;\/webjars\/**&#034;, &#034;anon&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Swagger \u9759\u6001\u8d44\u6e90<br \/>\nfilterChainDefinitionMap.put(&#034;\/uploads\/**&#034;, &#034;anon&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \u5c01\u9762 &lt;img&gt; \u4e0d\u5e26 token<br \/>\nfilterChainDefinitionMap.put(&#034;\/api\/**&#034;, &#034;jwt&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \u5176\u4f59 API \u5fc5\u987b JWT<br \/>\nfilterChainDefinitionMap.put(&#034;\/**&#034;, &#034;anon&#034;); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \u9759\u6001\u9875\u9762\u653e\u884c<\/span><\/p>\n<p>\u597d\u5904\u662f&#xff1a;\u8fc7\u6ee4\u5668\u94fe\u5bf9\u300c\u54ea\u4e9b\u533f\u540d\u3001\u54ea\u4e9b\u9274\u6743\u300d\u4e00\u76ee\u4e86\u7136&#xff1b;\u7ba1\u7406\u64cd\u4f5c\u6709\u660e\u786e\u8eab\u4efd\u8fb9\u754c&#xff1b;\u548c Knife4j\u3001\u9759\u6001\u8d44\u6e90\u5171\u5b58\u65f6\u89c4\u5219\u597d\u8bb2\u3002<\/p>\n<p style=\"margin-left:17.0000pt\"><span style=\"color:#44515e\">\u5f53\u524d\u5b9e\u73b0\u4ecd\u662f**\u660e\u6587\u6bd4\u5bf9\u7ba1\u7406\u5458\u5bc6\u7801**&#xff08;\u6f14\u793a\u53cb\u597d&#xff09;\u3002\u751f\u4ea7\u5fc5\u987b\u4e0a BCrypt\/Argon2&#xff0c;\u5e76\u628a JWT secret \u632a\u51fa\u4ed3\u5e93\u2014\u2014\u8fd9\u70b9\u300c\u4e0d\u8db3\u300d\u7ae0\u8282\u4e5f\u4f1a\u5199\u5230\u3002<\/span><\/p>\n<p>\u8dd1\u8005\u7aef&#xff1a;\u624b\u673a\u53f7 OTP &#043; Redis<\/p>\n<p>\u8dd1\u8005\u4e0d\u9002\u5408\u5f3a\u884c\u6ce8\u518c\u300c\u8d26\u53f7\u4f53\u7cfb\u300d\u3002\u516c\u5f00\u7aef\u7528\u77ed\u4fe1\u9a8c\u8bc1\u7801\u767b\u5f55&#xff08;\u672c\u5730\u6a21\u5f0f\u5199 sms_log&#xff0c;\u53ef\u914d\u7f6e expose-code\u00a0\u65b9\u4fbf\u7b54\u8fa9&#xff09;&#xff0c;\u4f1a\u8bdd\u7528 X-Runner-Token\u00a0\u8f7b\u91cf\u51ed\u8bc1&#xff0c;\u7ed1\u5b9a\u624b\u673a\u53f7\u540e\u8bbf\u95ee\u300c\u6211\u7684\u62a5\u540d\u300d\u3002\u6838\u5fc3\u903b\u8f91&#xff08;PublicController\u00a0\u771f\u5b9e\u7247\u6bb5&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">\/\/ \u53d1\u7801&#xff1a;Redis \u5b58 5 \u5206\u949f TTL&#xff1b;local \u901a\u9053\u843d sms_log<br \/>\nredisService.set(&#034;public:otp:&#034; &#043; phone, code, 5, TimeUnit.MINUTES);<br \/>\nsmsService.send(phone, &#034;otp_login&#034;, noticeContent, noticeTitle);<br \/>\n\u00a0<br \/>\n\/\/ \u767b\u5f55&#xff1a;\u6821\u9a8c\u540e\u7b7e\u53d1 runnerToken&#xff08;UUID&#xff09;&#xff0c;Redis \u6620\u5c04\u9009\u624b ID&#xff0c;7 \u5929\u6709\u6548<br \/>\nredisService.set(&#034;public:runner:&#034; &#043; token, runner.getId(), 7, TimeUnit.DAYS);<\/span><\/p>\n<p>\u8fd9\u662f\u4f53\u9a8c\u4f18\u5148\u7684\u53d6\u820d&#xff1a;\u964d\u4f4e\u8dd1\u8005\u95e8\u69db&#xff0c;\u540c\u65f6\u7528 Redis TTL \u7ba1\u9a8c\u8bc1\u7801\u8fc7\u671f\u3002\u82e5\u4e0a\u7ebf&#xff0c;OTP \u5fc5\u987b\u5173\u56de\u663e\u3001\u52a0\u9891\u63a7\u4e0e\u98ce\u63a7\u3002<\/p>\n<p>\u56db\u3001\u4e1a\u52a1\u95ed\u73af&#xff1a;\u4ece\u62a5\u540d\u5230\u6392\u540d<\/p>\n<p>\u4e00\u6761\u53ef\u6f14\u793a\u7684\u4e3b\u8def\u5f84&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">\u7ec4\u59d4\u4f1a\u521b\u5efa\u8d5b\u4e8b&#xff08;\u5c01\u9762\u4e0a\u4f20&#xff09;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u8dd1\u8005\u6d4f\u89c8\u62a5\u540d\u4e2d\u8d5b\u4e8b<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u63d0\u4ea4\u62a5\u540d&#xff08;\u540d\u989d \/ \u9632\u91cd\u6821\u9a8c&#xff09;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u6a21\u62df\u6536\u94f6\u53f0\u786e\u8ba4\u652f\u4ed8&#xff08;\u5199 payment_log&#xff09;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u7ad9\u5185\u901a\u77e5 \/ \u786e\u8ba4\u51fd\u4fe1\u606f<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192&#xff08;\u53ef\u9009&#xff09;\u53d6\u6d88\u4e0e\u9000\u6b3e\u7a97\u53e3<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u8d5b\u540e\u5f55\u5165\u6210\u7ee9<br \/>\n\u00a0\u00a0\u00a0\u00a0\u2192 \u516c\u5f00\u6392\u540d&#xff08;Redis \u7f13\u5b58&#xff09;<\/span><\/p>\n<p>\u51e0\u4e2a\u5b9e\u73b0\u4e0a\u7684\u300c\u5c0f\u5fc3\u673a\u300d&#xff1a;<\/p>\n<p>1. \u540d\u989d\u9632\u91cd&#xff1a;\u5148\u67e5\u540e\u63d2 &#043; \u4e8b\u540e\u56de\u5199&#xff08;\u5f53\u524d\u5b9e\u73b0&#xff09;<\/p>\n<p>\u62a5\u540d\u6838\u5fc3\u6821\u9a8c\u5728 RegistrationServiceImpl.submit()&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">if (registered &gt;&#061; quota)<br \/>\n\u00a0\u00a0\u00a0\u00a0throw new RuntimeException(&#034;\u8d5b\u4e8b\u540d\u989d\u5df2\u6ee1&#xff0c;\u62a5\u540d\u5931\u8d25&#034;);<br \/>\nif (registrationMapper.selectByEventAndRunner(eventId, runnerId) !&#061; null)<br \/>\n\u00a0\u00a0\u00a0\u00a0throw new RuntimeException(&#034;\u8be5\u9009\u624b\u5df2\u62a5\u540d\u6b64\u8d5b\u4e8b&#xff0c;\u8bf7\u52ff\u91cd\u590d\u62a5\u540d&#034;);<br \/>\nregistrationMapper.insert(registration);<br \/>\neventMapper.increaseRegisteredCount(eventId); \u00a0\u00a0\/\/ registered_count &#043; 1<br \/>\neventMapper.syncRegisteredCount(eventId); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \u7528 COUNT(status&#061;1) \u56de\u5199\u515c\u5e95<\/span><\/p>\n<p>\u5f53\u524d\u662f\u300c\u5148\u67e5\u540e\u63d2\u300d&#xff1a;\u5224\u65ad\u4e0e\u81ea\u589e\u4e0d\u662f\u539f\u5b50\u64cd\u4f5c&#xff0c;\u5e76\u53d1\u4e0b\u5b58\u5728\u540d\u989d\u6f02\u79fb\u98ce\u9669&#xff1b;syncRegisteredCount\u00a0\u7684 COUNT \u56de\u5199\u80fd\u5728\u5927\u90e8\u5206\u573a\u666f\u515c\u5e95&#xff0c;\u4f46\u4e25\u683c\u5e76\u53d1\u4ecd\u5efa\u8bae\u6539\u9020\u6210\u6761\u4ef6\u66f4\u65b0&#xff08;\u4e0d\u8db3\u8868\u7b2c 4 \u884c\u7684\u843d\u5730\u7248&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">&#8212; \u628a\u300c\u5224\u65ad &#043; \u81ea\u589e\u300d\u5408\u6210\u4e00\u6761\u539f\u5b50\u8bed\u53e5&#xff0c;\u53d7\u5f71\u54cd\u884c\u6570\u4e3a 0 \u5373\u540d\u989d\u5df2\u6ee1<br \/>\nUPDATE marathon_event<br \/>\nSET registered_count &#061; registered_count &#043; 1<br \/>\nWHERE id &#061; #{eventId}<br \/>\n\u00a0\u00a0AND registered_count &lt; quota<br \/>\n\u00a0\u00a0AND status &#061; 0;<\/span><\/p>\n<p>2. \u652f\u4ed8\u4e0e\u77ed\u4fe1&#xff1a;mock&#xff0c;\u4f46\u7559\u5ba1\u8ba1\u8868<\/p>\n<p>\u914d\u7f6e\u91cc\u662f marathon.pay.gateway: mock\u3001marathon.sms.provider: local\u3002<\/p>\n<p>\u5173\u952e\u4e0d\u662f\u300c\u5047\u88c5\u63a5\u4e86\u5fae\u4fe1\u300d&#xff0c;\u800c\u662f&#xff1a;<\/p>\n<ul>\n<li>\u652f\u4ed8\u786e\u8ba4\u4f1a\u6539\u62a5\u540d\u72b6\u6001&#xff0c;\u5e76\u843d &#096;payment_log&#096;&#xff08;\u542b\u6e20\u9053\u3001\u51ed\u8bc1\u3001\u91d1\u989d&#xff09;&#xff1b;<\/li>\n<li>\u77ed\u4fe1\u9a8c\u8bc1\u7801\u4e0e\u901a\u77e5\u843d &#096;sms_log&#096;&#xff1b;<\/li>\n<li>\u5546\u6237\u53f7\u3001\u7b7e\u540d\u7b49\u914d\u7f6e\u4f4d\u9884\u7559&#xff0c;\u771f\u5b9e SDK \u53ef\u66ff\u6362\u3002<\/li>\n<\/ul>\n<p>\u7b54\u8fa9\u65f6\u8fd9\u6837\u8868\u8ff0\u901a\u5e38\u6bd4\u300c\u5df2\u7ecf\u5bf9\u63a5\u5fae\u4fe1\u652f\u4ed8\u300d\u66f4\u7ecf\u5f97\u8d77\u8ffd\u95ee\u3002<\/p>\n<p>3. \u5c01\u9762\u4e0a\u4f20&#xff1a;\u672c\u5730\u76ee\u5f55\u6620\u5c04<\/p>\n<p>marathon.upload.path\u00a0\u6307\u5411 uploads\/&#xff0c;WebConfig\u00a0\u628a \/uploads\/**\u00a0\u6620\u5c04\u51fa\u53bb&#xff1b;Shiro \u5bf9\u8be5\u8def\u5f84\u533f\u540d&#xff0c;\u5426\u5219 &lt;img src&gt;\u00a0\u5e26\u4e0d\u4e0a token\u3002\u7c7b\u578b\u4e0e\u5927\u5c0f\u5728\u4e0a\u4f20\u63a5\u53e3\u6821\u9a8c&#xff0c;\u548c multipart\u00a0\u9650\u5236\u5bf9\u9f50\u3002<\/p>\n<p style=\"margin-left:17.0000pt\"><span style=\"color:#44515e\">\u73b0\u72b6\u6838\u5bf9&#xff1a;&#096;uploads\/&#096; \u76ee\u5f55\u4e0e &#096;cover_image&#096; \u5b57\u6bb5&#xff08;&#096;sql\/add_cover_image.sql&#096;&#xff09;\u5747\u5df2\u5c31\u7eea&#xff0c;\u4f46\u793a\u4f8b\u7d20\u6750\u4e0e\u79cd\u5b50\u811a\u672c\u5c1a\u672a\u843d\u5730&#xff08;\u89c1\u7b2c\u4e03\u8282\u5f85\u529e&#xff09;\u3002<\/span><\/p>\n<p>4. Redis&#xff1a;\u4e0d\u53ea\u662f\u300c\u4f1a\u7528\u7f13\u5b58\u300d<\/p>\n<p>\u8d5b\u4e8b\u5217\u8868\u3001\u516c\u5f00\u6392\u540d\u8bfb\u591a\u5199\u5c11&#xff0c;\u9002\u5408\u7f13\u5b58&#xff1b;\u8d5b\u4e8b\u53d8\u66f4\u65f6\u6309\u6a21\u5f0f\u5931\u6548&#xff08;SCAN &#043; \u5220\u9664&#xff09;&#xff0c;\u907f\u514d\u53ea\u8bb0\u5f97 set\u00a0\u5fd8\u4e86 del\u3002OTP \u540c\u6837\u5403 Redis TTL\u3002\u8fd9\u4e9b\u70b9\u5f88\u9002\u5408\u9762\u8bd5\u8ffd\u95ee\u300c\u7f13\u5b58\u4e00\u81f4\u6027\u4f60\u600e\u4e48\u505a\u7684\u300d\u3002<\/p>\n<p>5. \u5bfc\u51fa\u4e0e\u7edf\u8ba1<\/p>\n<p>\u7ba1\u7406\u53f0\u9700\u8981\u300c\u80fd\u4ea4\u5dee\u300d\u7684\u8fd0\u8425\u80fd\u529b&#xff1a;\u62a5\u540d\u540d\u5355\u3001\u6210\u7ee9\u5bfc\u51fa&#xff08;POI&#xff09;&#xff0c;\u4ee5\u53ca\u7b80\u5355\u7edf\u8ba1\u63a5\u53e3\u3002\u5bf9\u6bd5\u8bbe\u6765\u8bf4&#xff0c;\u8fd9\u6bd4\u518d\u5806\u4e00\u4e2a\u5fae\u670d\u52a1\u66f4\u6709\u8bf4\u670d\u529b\u3002<\/p>\n<p>\u4e94\u3001\u524d\u7aef&#xff1a;\u4e24\u5957\u95e8\u6237&#xff0c;\u4e00\u4e2a\u9759\u6001\u8d44\u6e90\u76ee\u5f55<\/p>\n<p>\u5f53\u524d\u771f\u6b63\u5728\u7528\u7684\u662f&#xff1a;<\/p>\n<ul>\n<li>&#096;src\/main\/resources\/static\/index.html&#096; &#043; &#096;public-app.js&#096;&#xff1a;\u516c\u5f00\u54c1\u724c\u7ad9\u300c\u53d1\u4ee4\u53f0\u300d<\/li>\n<li>&#096;src\/main\/resources\/static\/admin.html&#096; &#043; &#096;admin-app.js&#096;&#xff1a;\u7ba1\u7406\u53f0<\/li>\n<\/ul>\n<p>\u540c jar \u6258\u7ba1\u7684\u597d\u5904\u662f\u90e8\u7f72\u7b80\u5355\u3001\u8054\u8c03\u96f6\u8de8\u57df\u3002\u4ee3\u4ef7\u662f\u524d\u7aef\u5de5\u7a0b\u5316\u5f31&#xff08;\u65e0\u6253\u5305\u6d41\u6c34\u7ebf\u3001\u65e0\u7ec4\u4ef6\u5316\u6d4b\u8bd5&#xff09;&#xff0c;\u5c5e\u4e8e\u660e\u786e\u7684\u4e0b\u4e00\u9636\u6bb5\u4f18\u5316\u70b9\u3002<\/p>\n<p>docs\/\u524d\u7aef\u6e90\u6587\u4ef6\/\u00a0\u4e0b\u7684\u5355\u6587\u4ef6\u65e7\u7a3f\u662f\u5f52\u6863\u5bf9\u7167&#xff0c;\u4e0d\u53c2\u4e0e\u8fd0\u884c\u2014\u2014\u7248\u672c\u7ba1\u7406\u7684\u4ef7\u503c&#xff0c;\u5f80\u5f80\u5728\u8fd9\u79cd\u300c\u4e24\u5957\u524d\u7aef\u300d\u65f6\u624d\u4f53\u73b0\u51fa\u6765\u3002<\/p>\n<p>\u516d\u3001AI \u52a9\u624b&#xff1a;\u8ba9\u6a21\u578b\u300c\u63a5\u5730\u6c14\u300d<\/p>\n<p>\u5927\u6a21\u578b\u6700\u6015\u4e00\u672c\u6b63\u7ecf\u5730\u80e1\u8bf4\u3002\u8d5b\u4e8b\u52a9\u624b\u7684\u7b56\u7565\u662f&#xff1a;<\/p>\n<li>**Tool Calling**&#xff1a;\u5148\u8c03\u4e3b\u5de5\u7a0b\u516c\u5f00 API \u62ff\u771f\u5b9e\u8d5b\u4e8b\u4e0e\u540d\u989d&#xff1b;<\/li>\n<li>**\u7ed3\u6784\u5316\u8f93\u51fa**&#xff1a;\u8fd4\u56de &#096;answer&#096; &#043; &#096;events[]&#096; &#043; &#096;grounded&#096;&#xff1b;<\/li>\n<li>**\u524d\u7aef\u53ef\u964d\u7ea7**&#xff1a;AI \u670d\u52a1\u6302\u4e86&#xff0c;\u516c\u5f00\u62a5\u540d\u4e3b\u6d41\u7a0b\u4ecd\u53ef\u7528\u3002<\/li>\n<p>&#064;Tool\u00a0\u7684\u5b9a\u4e49&#xff08;ai-service\u00a0\u4e2d EventQueryTools\u00a0\u771f\u5b9e\u7247\u6bb5&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:11.3500pt\"><span style=\"background-color:#f2f2f2\">&#064;Tool(description &#061; &#034;\u67e5\u8be2\u6b63\u5728\u62a5\u540d\u4e2d\u7684\u9a6c\u62c9\u677e\u8d5b\u4e8b\u5217\u8868\u3002\u5f53\u7528\u6237\u95ee\u300c\u6709\u4ec0\u4e48\u6bd4\u8d5b\u300d\u300c\u8fd8\u80fd\u62a5\u540d\u5417\u300d\u65f6\u4f7f\u7528\u3002&#034;)<br \/>\npublic String listOpenEvents() {<br \/>\n\u00a0\u00a0\u00a0\u00a0return toJson(marathonEventClient.listOpenEvents()); \u00a0\/\/ \u8d70\u4e3b\u5de5\u7a0b \/api\/public\/**<br \/>\n}<br \/>\n\u00a0<br \/>\n&#064;Tool(description &#061; &#034;\u6309\u8d5b\u4e8b ID \u67e5\u8be2\u5355\u573a\u8d5b\u4e8b\u8be6\u60c5&#xff08;\u62a5\u540d\u8d39\u3001\u5269\u4f59\u540d\u989d\u3001\u5730\u70b9\u3001\u65e5\u671f\u3001\u89c4\u5219\u7b49&#xff09;\u3002&#034;)<br \/>\npublic String getEventById(&#064;ToolParam(description &#061; &#034;\u8d5b\u4e8b\u6570\u5b57 ID&#034;) Long eventId) {<br \/>\n\u00a0\u00a0\u00a0\u00a0EventDetailView detail &#061; marathonEventClient.getEventDetail(eventId);<br \/>\n\u00a0\u00a0\u00a0\u00a0return detail &#061;&#061; null ? &#034;{\\\\&#034;error\\\\&#034;:\\\\&#034;\u8d5b\u4e8b\u4e0d\u5b58\u5728\\\\&#034;}&#034; : toJson(detail);<br \/>\n}<\/span><\/p>\n<p>API Key \u653e\u5728 ai-service\/application-local.yml&#xff08;gitignore&#xff09;&#xff0c;\u652f\u6301 DeepSeek \/ \u901a\u4e49\u7b49 OpenAI \u517c\u5bb9\u7aef\u70b9&#xff0c;\u6362\u6a21\u578b\u53ea\u6539 base-url\u00a0\u4e0e model\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u8d5b\u4e8b\u7c7b\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u9677\u5165\u4e24\u79cd\u6781\u7aef&#xff1a;\u4e00\u662f\u53ea\u505a\u540e\u53f0 CRUD&#xff0c;\u9875\u9762\u50cf\u540e\u53f0\u8868\u683c&#xff1b;\u4e8c\u662f\u5806\u6982\u5ff5\u2014\u2014\u5fae\u670d\u52a1\u3001\u7f51\u5173\u3001\u771f\u5b9e\u652f\u4ed8\u2014\u2014\u6f14\u793a\u65f6\u5168\u7ebf\u5d29\u76d8\u3002\u300c\u53d1\u4ee4\u53f0 GUNSTART\u300d&#xff08;\u4ed3\u5e93\u540d marathon_system&#xff09;\u8d70\u7684\u662f\u7b2c\u4e09\u6761\u8def&#xff1a;\u4e1a\u52a1\u95ed\u73af\u4f18\u5148&#xff0c;\u5916\u90e8\u80fd\u529b\u53ef\u63d2\u62d4&#xff0c;\u65b0\u6280\u672f\u65c1\u8def\u63a5\u5165\u3002\u5b83\u8986\u76d6\u516c\u5f00\u62a5\u540d\u4e0e\u7ec4\u59d4\u4f1a\u7ba1\u7406\u4e24\u6761\u95e8\u6237&#xff0c;\u4e32\u8d77\u62a5\u540d\u3001\u6a21\u62df\u652f\u4ed8\u3001\u901a\u77e5\u3001\u53d6\u6d88\u9000\u6b3e\u3001\u6210\u7ee9<\/p>\n","protected":false},"author":2,"featured_media":121868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,426,1114,114,98],"topic":[],"class_list":["post-121870","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-jvm","tag-kafka","tag-mysql","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/121870.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u505a\u8d5b\u4e8b\u7c7b\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u9677\u5165\u4e24\u79cd\u6781\u7aef&#xff1a;\u4e00\u662f\u53ea\u505a\u540e\u53f0 CRUD&#xff0c;\u9875\u9762\u50cf\u540e\u53f0\u8868\u683c&#xff1b;\u4e8c\u662f\u5806\u6982\u5ff5\u2014\u2014\u5fae\u670d\u52a1\u3001\u7f51\u5173\u3001\u771f\u5b9e\u652f\u4ed8\u2014\u2014\u6f14\u793a\u65f6\u5168\u7ebf\u5d29\u76d8\u3002\u300c\u53d1\u4ee4\u53f0 GUNSTART\u300d&#xff08;\u4ed3\u5e93\u540d marathon_system&#xff09;\u8d70\u7684\u662f\u7b2c\u4e09\u6761\u8def&#xff1a;\u4e1a\u52a1\u95ed\u73af\u4f18\u5148&#xff0c;\u5916\u90e8\u80fd\u529b\u53ef\u63d2\u62d4&#xff0c;\u65b0\u6280\u672f\u65c1\u8def\u63a5\u5165\u3002\u5b83\u8986\u76d6\u516c\u5f00\u62a5\u540d\u4e0e\u7ec4\u59d4\u4f1a\u7ba1\u7406\u4e24\u6761\u95e8\u6237&#xff0c;\u4e32\u8d77\u62a5\u540d\u3001\u6a21\u62df\u652f\u4ed8\u3001\u901a\u77e5\u3001\u53d6\u6d88\u9000\u6b3e\u3001\u6210\u7ee9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/121870.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-03T13:57:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103135717-6ae9e83d993bf.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121870.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/121870.html\",\"name\":\"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-03T13:57:18+00:00\",\"dateModified\":\"2026-11-03T13:57:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/121870.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/121870.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121870.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/121870.html","og_locale":"zh_CN","og_type":"article","og_title":"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u505a\u8d5b\u4e8b\u7c7b\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u9677\u5165\u4e24\u79cd\u6781\u7aef&#xff1a;\u4e00\u662f\u53ea\u505a\u540e\u53f0 CRUD&#xff0c;\u9875\u9762\u50cf\u540e\u53f0\u8868\u683c&#xff1b;\u4e8c\u662f\u5806\u6982\u5ff5\u2014\u2014\u5fae\u670d\u52a1\u3001\u7f51\u5173\u3001\u771f\u5b9e\u652f\u4ed8\u2014\u2014\u6f14\u793a\u65f6\u5168\u7ebf\u5d29\u76d8\u3002\u300c\u53d1\u4ee4\u53f0 GUNSTART\u300d&#xff08;\u4ed3\u5e93\u540d marathon_system&#xff09;\u8d70\u7684\u662f\u7b2c\u4e09\u6761\u8def&#xff1a;\u4e1a\u52a1\u95ed\u73af\u4f18\u5148&#xff0c;\u5916\u90e8\u80fd\u529b\u53ef\u63d2\u62d4&#xff0c;\u65b0\u6280\u672f\u65c1\u8def\u63a5\u5165\u3002\u5b83\u8986\u76d6\u516c\u5f00\u62a5\u540d\u4e0e\u7ec4\u59d4\u4f1a\u7ba1\u7406\u4e24\u6761\u95e8\u6237&#xff0c;\u4e32\u8d77\u62a5\u540d\u3001\u6a21\u62df\u652f\u4ed8\u3001\u901a\u77e5\u3001\u53d6\u6d88\u9000\u6b3e\u3001\u6210\u7ee9","og_url":"https:\/\/www.wsisp.com\/helps\/121870.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-03T13:57:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103135717-6ae9e83d993bf.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/121870.html","url":"https:\/\/www.wsisp.com\/helps\/121870.html","name":"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-03T13:57:18+00:00","dateModified":"2026-11-03T13:57:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/121870.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/121870.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/121870.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"SpringBoot+Redis+AI\u65c1\u8def\uff0c\u6253\u9020\u53ef\u590d\u7528\u7684\u8d5b\u4e8b\u7cfb\u7edf\u6bd5\u8bbe"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=121870"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121870\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/121868"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=121870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=121870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=121870"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=121870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}