{"id":48728,"date":"2025-07-30T13:12:38","date_gmt":"2025-07-30T05:12:38","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/48728.html"},"modified":"2025-07-30T13:12:38","modified_gmt":"2025-07-30T05:12:38","slug":"spring-boot%e9%9f%b3%e4%b9%90%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%a1%b9%e7%9b%ae-%e5%96%9c%e6%ac%a2-%e6%94%b6%e8%97%8f%e9%9f%b3%e4%b9%90%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/48728.html","title":{"rendered":"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757"},"content":{"rendered":"<h4>\u63a5\u53e3\u8bbe\u8ba1<\/h4>\n<p>\u5305\u62ec\u6dfb\u52a0\u6536\u85cf\u3001\u67e5\u8be2\u6536\u85cf\u548c\u79fb\u9664\u6536\u85cf\u4e09\u4e2a\u4e3b\u8981\u64cd\u4f5c\u3002<\/p>\n<h5>\u8bf7\u6c42\u683c\u5f0f<\/h5>\n<p>{<br \/>\n  &#034;method&#034;: &#034;post&#034;,<br \/>\n  &#034;url&#034;: &#034;\/lovemusic\/likeMusic&#034;,<br \/>\n  &#034;data&#034;: {<br \/>\n    &#034;id&#034;: \/\/ \u97f3\u4e50id<br \/>\n  }<br \/>\n}<\/p>\n<h5>\u54cd\u5e94\u683c\u5f0f<\/h5>\n<p>{<br \/>\n  &#034;status&#034;: 0,<br \/>\n  &#034;message&#034;: &#034;\u70b9\u8d5e\u97f3\u4e50\u6210\u529f&#034;,<br \/>\n  &#034;data&#034;: true<br \/>\n} <\/p>\n<hr \/>\n<h5>\u4e09\u3001Mapper\u5c42&#xff08;\u6570\u636e\u8bbf\u95ee\u5c42&#xff09;<\/h5>\n<p>\u6536\u85cf\/\u559c\u6b22\u2fb3\u4e50\u5904\u7406\u903b\u8f91&#xff1a;<\/p>\n<p>1\u3001\u9700\u8981\u67e5\u8be2\u6b64\u6b21\u6536\u85cf\u2fb3\u4e50\u662f\u5426\u4e4b\u524d\u6536\u85cf\u8fc7&#xff0c;\u6536\u85cf\u8fc7\u5219\u4e0d\u80fd\u6dfb\u52a0\u00a0<\/p>\n<p>2\u3001\u6ca1\u6709\u6536\u85cf\u8fc7&#xff0c;\u63d2\u2f0a\u6570\u636e\u5e93\u4e2d\u2f00\u6761\u8bb0\u5f55<\/p>\n<h6>1. LoveMusicMapper<\/h6>\n<p> \/**<br \/>\n     * \u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u6536\u85cf\u8fc7\u8be5\u2fb3\u4e50<br \/>\n     * &#064;param userId<br \/>\n     * &#064;param musicId<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    Music findLoveMusicByMusicIdAndUserId(int userId, int musicId);<\/p>\n<p>    \/**<br \/>\n     * \u70b9\u8d5e\/\u6536\u85cf\u2fb3\u4e50<br \/>\n     * &#064;param userId<br \/>\n     * &#064;param musicId<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    boolean insertLoveMusic(int userId, int musicId); <\/p>\n<h6>2. XML\u6620\u5c04&#xff08;LoveMusicMapper.xml&#xff09;<\/h6>\n<p>    &lt;!&#8211;\u6839\u636e\u2f64\u2f3eID\u548c\u2fb3\u4e50ID\u67e5\u8be2\u6536\u85cf\u7684\u2fb3\u4e50 &#8211;&gt;<br \/>\n    &lt;select id&#061;&#034;findLoveMusicByMusicIdAndUserId&#034;                                                                  resultType&#061;&#034;com.example.musicserver.model.Music&#034;&gt;<br \/>\n        select * from lovemusic where user_id&#061;#{userId} and music_id&#061;#{musicId}<br \/>\n    &lt;\/select&gt;<br \/>\n    &lt;insert id&#061;&#034;insertLoveMusic&#034;&gt;<br \/>\n        insert into lovemusic(user_id,music_id) values(#{userId},#{musicId})<br \/>\n    &lt;\/insert&gt; <\/p>\n<hr \/>\n<h5>\u56db\u3001\u5b9e\u73b0LoveMusicController\u7c7b<\/h5>\n<h6>1. \u6dfb\u52a0\u6536\u85cf&#xff08;\/lovemusic\/likeMusic&#xff09;<\/h6>\n<p>&#064;RestController<br \/>\n&#064;RequestMapping(&#034;\/lovemusic&#034;)<\/p>\n<p>public class LoveMusicController {<br \/>\n    &#064;Resource<br \/>\n    private LoveMusicMapper loveMusicMapper;<\/p>\n<p>    &#064;RequestMapping(&#034;\/likeMusic&#034;)<br \/>\n    public ResponseBodyMessage&lt;Boolean&gt; likeMusic(&#064;RequestParam String id,<br \/>\n                                                  HttpServletRequest req) {<br \/>\n        int musicId &#061; Integer.parseInt(id);<br \/>\n        System.out.println(&#034;likeMusic-&gt;musicId: &#034;&#043;musicId);<br \/>\n        \/\/\u6ca1\u6709session\u4e0d\u521b\u5efa<br \/>\n        HttpSession httpSession &#061; req.getSession(false);<br \/>\n        if(httpSession &#061;&#061; null ||<br \/>\n                httpSession.getAttribute(Constant.USERINFO_SESSION_KEY) &#061;&#061; null) {<br \/>\n            System.out.println(&#034;\u6ca1\u6709\u767b\u5f55&#xff01;&#034;);<br \/>\n            return new ResponseBodyMessage&lt;&gt;(-1,&#034;\u6ca1\u6709\u767b\u5f55&#034;,false);<br \/>\n        }<br \/>\n        User user &#061;<br \/>\n                (User)httpSession.getAttribute(Constant.USERINFO_SESSION_KEY);<br \/>\n        int userId &#061; user.getId();<br \/>\n        System.out.println(&#034;likeMusic-&gt;userID: &#034;&#043;userId);<br \/>\n        \/\/\u67e5\u8be2\u5f53\u524d\u2f64\u2f3e\u662f\u5426\u70b9\u8d5e\u8fc7\u8be5\u2fb3\u4e50<br \/>\n        Music music &#061;<br \/>\n                loveMusicMapper.findLoveMusicByMusicIdAndUserId(userId,musicId);<br \/>\n        if(music!&#061;null) {<br \/>\n            return new ResponseBodyMessage&lt;&gt;(-1,&#034;\u8be5\u2f64\u2f3e\u70b9\u8d5e\u8fc7\u8be5\u2fb3\u4e50&#034;,false);<br \/>\n        }else {<br \/>\n            boolean effect &#061; loveMusicMapper.insertLoveMusic(userId,musicId);<br \/>\n            if(effect) {<br \/>\n                return new ResponseBodyMessage&lt;&gt;(0,&#034;\u70b9\u8d5e\u2fb3\u4e50\u6210\u529f&#034;,true);<br \/>\n            }else {<br \/>\n                return new ResponseBodyMessage&lt;&gt;(-1,&#034;\u70b9\u8d5e\u2fb3\u4e50\u5931\u8d25&#034;,false);<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6d4b\u8bd5\u7684\u65f6\u5019\u6ce8\u610f\u8def\u5f84\u540d&#xff0c;\u540e\u9762\u4e00\u4e2alikeMusic\u7684M\u662f\u5927\u5199\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1328\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051232-6889a9c051609.png\" width=\"2239\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1329\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051233-6889a9c1baf50.png\" width=\"2240\" \/><\/p>\n<p>\u91cd\u590d\u70b9\u51fb\u4f1a\u663e\u793a\u2193 <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1328\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051235-6889a9c3715da.png\" width=\"2240\" \/><\/p>\n<hr \/>\n<h5>\u603b\u7ed3&#xff1a;\u6a21\u5757\u4e09\u5c42\u67b6\u6784\u5b9e\u73b0&#xff1a;<\/h5>\n<li>\n<p>\u5b9e\u4f53\u5c42\u5b9a\u4e49\u6570\u636e\u7ed3\u6784<\/p>\n<\/li>\n<li>\n<p>Mapper\u5c42\u64cd\u4f5c\u6570\u636e\u5e93\u5173\u7cfb<\/p>\n<\/li>\n<li>\n<p>Controller\u5c42\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u548c\u4f1a\u8bdd\u9a8c\u8bc1<\/p>\n<\/li>\n<p>\u5173\u952e\u70b9\u5728\u4e8e\u901a\u8fc7user_id&#043;music_id\u7ef4\u62a4\u7528\u6237\u4e0e\u97f3\u4e50\u7684\u6536\u85cf\u5173\u7cfb&#xff0c;\u5e76\u5728\u64cd\u4f5c\u524d\u8fdb\u884c\u4e25\u683c\u7684\u4f1a\u8bdd\u9a8c\u8bc1&#xff0c;\u786e\u4fdd\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/p>\n<p>\u4ee3\u7801\u4ed3\u5e93&#xff1a;<\/p>\n<p>\u559c\u6b22\/\u6536\u85cf\u2fb3\u4e50\u6a21\u5757\u8bbe\u8ba1 2025.7.25\/\u97f3\u4e50\u670d\u52a1\u5668 &#8211; Gitee.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u97f3\u4e50\u6536\u85cf\u529f\u80fd\u7684\u8bbe\u8ba1\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\u63a5\u53e3\u8bbe\u8ba1\u3001\u6570\u636e\u8bbf\u95ee\u5c42\u548c\u63a7\u5236\u5c42\u5b9e\u73b0\u3002\u63a5\u53e3\u63d0\u4f9b\u6dfb\u52a0\u6536\u85cf\u529f\u80fd\uff0c\u91c7\u7528POST\u8bf7\u6c42\u683c\u5f0f\uff0c\u8fd4\u56de\u64cd\u4f5c\u72b6\u6001\u548c\u7ed3\u679c\u3002Mapper\u5c42\u901a\u8fc7findLoveMusicByMusicIdAndUserId\u65b9\u6cd5\u68c0\u67e5\u662f\u5426\u5df2\u6536\u85cf\uff0c\u672a\u6536\u85cf\u5219\u901a\u8fc7insertLoveMusic\u63d2\u5165\u8bb0\u5f55\u3002Controller\u5c42\u5904\u7406\u4e1a\u52a1\u903b\u8f91\uff0c\u5305\u62ec\u4f1a\u8bdd\u9a8c\u8bc1\u3001\u91cd\u590d\u6536\u85cf\u68c0\u67e5\u7b49\uff0c\u786e\u4fdd\u64cd\u4f5c\u5b89\u5168\u6027\u548c\u6570\u636e\u4e00\u81f4\u6027\u3002\u7cfb\u7edf\u91c7\u7528\u4e09\u5c42\u67b6\u6784\u8bbe\u8ba1\uff0c\u901a\u8fc7user_id\u548cmusic_id\u7ef4\u62a4\u7528\u6237\u4e0e\u97f3\u4e50\u7684\u6536\u85cf\u5173\u7cfb\uff0c\u5b9e\u73b0\u4e86\u5b89\u5168\u7684\u97f3\u4e50\u6536\u85cf\u7ba1\u7406\u529f\u80fd\u3002<\/p>\n","protected":false},"author":2,"featured_media":48725,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[604,98,43],"topic":[],"class_list":["post-48728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-oracle","tag-spring-boot","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \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\/48728.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u97f3\u4e50\u6536\u85cf\u529f\u80fd\u7684\u8bbe\u8ba1\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\u63a5\u53e3\u8bbe\u8ba1\u3001\u6570\u636e\u8bbf\u95ee\u5c42\u548c\u63a7\u5236\u5c42\u5b9e\u73b0\u3002\u63a5\u53e3\u63d0\u4f9b\u6dfb\u52a0\u6536\u85cf\u529f\u80fd\uff0c\u91c7\u7528POST\u8bf7\u6c42\u683c\u5f0f\uff0c\u8fd4\u56de\u64cd\u4f5c\u72b6\u6001\u548c\u7ed3\u679c\u3002Mapper\u5c42\u901a\u8fc7findLoveMusicByMusicIdAndUserId\u65b9\u6cd5\u68c0\u67e5\u662f\u5426\u5df2\u6536\u85cf\uff0c\u672a\u6536\u85cf\u5219\u901a\u8fc7insertLoveMusic\u63d2\u5165\u8bb0\u5f55\u3002Controller\u5c42\u5904\u7406\u4e1a\u52a1\u903b\u8f91\uff0c\u5305\u62ec\u4f1a\u8bdd\u9a8c\u8bc1\u3001\u91cd\u590d\u6536\u85cf\u68c0\u67e5\u7b49\uff0c\u786e\u4fdd\u64cd\u4f5c\u5b89\u5168\u6027\u548c\u6570\u636e\u4e00\u81f4\u6027\u3002\u7cfb\u7edf\u91c7\u7528\u4e09\u5c42\u67b6\u6784\u8bbe\u8ba1\uff0c\u901a\u8fc7user_id\u548cmusic_id\u7ef4\u62a4\u7528\u6237\u4e0e\u97f3\u4e50\u7684\u6536\u85cf\u5173\u7cfb\uff0c\u5b9e\u73b0\u4e86\u5b89\u5168\u7684\u97f3\u4e50\u6536\u85cf\u7ba1\u7406\u529f\u80fd\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/48728.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T05:12:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051232-6889a9c051609.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48728.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/48728.html\",\"name\":\"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T05:12:38+00:00\",\"dateModified\":\"2025-07-30T05:12:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/48728.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/48728.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48728.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757\"}]},{\"@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":"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \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\/48728.html","og_locale":"zh_CN","og_type":"article","og_title":"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u97f3\u4e50\u6536\u85cf\u529f\u80fd\u7684\u8bbe\u8ba1\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\u63a5\u53e3\u8bbe\u8ba1\u3001\u6570\u636e\u8bbf\u95ee\u5c42\u548c\u63a7\u5236\u5c42\u5b9e\u73b0\u3002\u63a5\u53e3\u63d0\u4f9b\u6dfb\u52a0\u6536\u85cf\u529f\u80fd\uff0c\u91c7\u7528POST\u8bf7\u6c42\u683c\u5f0f\uff0c\u8fd4\u56de\u64cd\u4f5c\u72b6\u6001\u548c\u7ed3\u679c\u3002Mapper\u5c42\u901a\u8fc7findLoveMusicByMusicIdAndUserId\u65b9\u6cd5\u68c0\u67e5\u662f\u5426\u5df2\u6536\u85cf\uff0c\u672a\u6536\u85cf\u5219\u901a\u8fc7insertLoveMusic\u63d2\u5165\u8bb0\u5f55\u3002Controller\u5c42\u5904\u7406\u4e1a\u52a1\u903b\u8f91\uff0c\u5305\u62ec\u4f1a\u8bdd\u9a8c\u8bc1\u3001\u91cd\u590d\u6536\u85cf\u68c0\u67e5\u7b49\uff0c\u786e\u4fdd\u64cd\u4f5c\u5b89\u5168\u6027\u548c\u6570\u636e\u4e00\u81f4\u6027\u3002\u7cfb\u7edf\u91c7\u7528\u4e09\u5c42\u67b6\u6784\u8bbe\u8ba1\uff0c\u901a\u8fc7user_id\u548cmusic_id\u7ef4\u62a4\u7528\u6237\u4e0e\u97f3\u4e50\u7684\u6536\u85cf\u5173\u7cfb\uff0c\u5b9e\u73b0\u4e86\u5b89\u5168\u7684\u97f3\u4e50\u6536\u85cf\u7ba1\u7406\u529f\u80fd\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/48728.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T05:12:38+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051232-6889a9c051609.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/48728.html","url":"https:\/\/www.wsisp.com\/helps\/48728.html","name":"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T05:12:38+00:00","dateModified":"2025-07-30T05:12:38+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/48728.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/48728.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/48728.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Spring Boot\u97f3\u4e50\u670d\u52a1\u5668\u9879\u76ee-\u559c\u6b22\/\u6536\u85cf\u97f3\u4e50\u6a21\u5757"}]},{"@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\/48728","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=48728"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/48725"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=48728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=48728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=48728"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=48728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}