{"id":40346,"date":"2023-10-05T04:35:59","date_gmt":"2023-08-14T22:53:14","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/"},"modified":"2024-05-04T02:56:15","modified_gmt":"2024-05-03T18:56:15","slug":"%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/","title":{"rendered":"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot"},"content":{"rendered":"<h2>\u7b80\u4ecb<\/h2>\n<p>\u4f7f\u7528LINE\u5206\u53d1\u7684line-bot-sdk-java\u793a\u4f8b\u4ee3\u7801\uff0c\u5c1d\u8bd5\u8fd0\u884cLINE Bot\u7684\u6b65\u9aa4\u3002\u8fd9\u4e2a\u793a\u4f8b\u4ee3\u7801\u5305\u542b\u4e86\u521b\u5efaLINE Bot\u6240\u9700\u7684\u5168\u90e8\u4ee3\u7801\uff0c\u56e0\u6b64\u5728\u8fd9\u57fa\u7840\u4e0a\u8fdb\u884c\u6269\u5c55\u4f1a\u66f4\u52a0\u9ad8\u6548\u3002Java\u7684\u7248\u672c\u662f11.02\u3002<\/p>\n<h2>\u76f8\u5173<\/h2>\n<p>\u4f7f\u7528Spring Boot + JPA + Flyway\u5728Heroku\u4e0a\u521b\u5efaLINE Bot\u3002<br \/>\n\u8fd9\u662f\u5bf9line-bot-sdk-java\u8fdb\u884c\u4fee\u6539\u5e76\u8fdb\u884c\u6570\u636e\u5e93\u8fde\u63a5\u7684\u7248\u672c\u3002<\/p>\n<h2>\u73af\u5883<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Java 11.02<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Spring Boot 2.4.9 (line-bot-sdk-java\u3067\u4f7f\u308f\u308c\u3066\u3044\u308bversion)<\/ul>\n<h2>\u521b\u5efaLINE\u5a92\u4f53\u9891\u9053<\/h2>\n<p>\u6839\u636e\u4ee5\u4e0b\u5185\u5bb9\u521b\u5efa\u4e00\u4e2a\u9891\u9053\u3002<br \/>\n\u521b\u5efa\u4e00\u4e2a\u4e13\u95e8\u4f9b\u673a\u5668\u4eba\u4f7f\u7528\u7684\u9891\u9053\u3002<\/p>\n<h2>\u5728Heroku\u4e0a\u521b\u5efa\u5e94\u7528<\/h2>\n<p>\u5728Heroku\u4e0a\u521b\u5efa\u5e94\u7528\u3002<br \/>\nhttps:\/\/signup.heroku.com\/<\/p>\n<h3>\u5c06\u73af\u5883\u53d8\u91cf\u6ce8\u518c\u5230Heroku\u4e0a\u3002<\/h3>\n<p>\u5728LINE\u5f00\u53d1\u8005\u63a7\u5236\u53f0\u4e2d\uff0c\u786e\u8ba4Messaging API\u901a\u9053\u7684\u901a\u9053\u79d8\u94a5\u548c\u901a\u9053\u8bbf\u95ee\u4ee4\u724c\uff0c\u5e76\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6ce8\u518c\u5230Heroku\u7ba1\u7406\u754c\u9762\u7684Config Vars\u4e2d\u3002<\/p>\n<p>CHANNEL_TOKEN\uff1aLINE\u7684\u9891\u9053\u8bbf\u95ee\u4ee4\u724c<br \/>\nCHANNEL_SECRET\uff1aLINE\u7684\u9891\u9053\u5bc6\u94a5<\/p>\n<h2>\u7f16\u5199\u6e90\u4ee3\u7801<\/h2>\n<h3>\u83b7\u53d6\u793a\u4f8b\u4ee3\u7801<\/h3>\n<p>\u5728\u793a\u4f8b\u4ee3\u7801\u4e2d\u5305\u542b\u4e86\u5404\u79cd\u5404\u6837\u7684\u5185\u5bb9\uff0c\u4f46\u662f\u6211\u4eec\u8981\u4f7f\u7528\u5176\u4e2d\u7684sample-spring-boot-kitchensink\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> git clone https:\/\/github.com\/line\/line-bot-sdk-java.git\r\n<\/code><\/pre>\n<h3>\u4f7f\u7528IntelliJ\u6253\u5f00build.gradle\u6587\u4ef6<\/h3>\n<p>\u4f7f\u7528Intellij\u6253\u5f00TOP\u5c42\u7ea7\u7684build.gradle\u3002<\/p>\n<h3>\u7f16\u8f91Procfile<\/h3>\n<p>\u4e3a\u4e86\u4f7f\u7528sample-spring-boot-kitchensink\uff0c\u8bf7\u5c06Procfile\u6539\u5199\u4e3a\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gd\">-web: java $JAVA_OPTS -jar sample-spring-boot-echo\/build\/libs\/sample-spring-boot-echo-*.jar --server.port=$PORT\r\n<\/span><span class=\"gi\">+web: java $JAVA_OPTS -jar sample-spring-boot-kitchensink\/build\/libs\/sample-spring-boot-kitchensink-*.jar --server.port=$PORT\r\n<\/span><\/code><\/pre>\n<h3>\u521b\u5efa\u548c\u7f16\u8f91\u8bbe\u7f6e\u6587\u4ef6<\/h3>\n<p>\u590d\u5236\u6a21\u677f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">cd <\/span>sample-spring-boot-kitchensink\/src\/main\/resources\/\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">cp <\/span>application-template.yml application.yml\r\n<\/code><\/pre>\n<p>\u8bf7\u5220\u9664\u4ee5\u4e0b\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u5b9a\u4e49LINE\u7684TOKEN\u548cSECRET\u5982\u4e0b\u3002<\/p>\n<blockquote><p>\u8fd9\u662f\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u6a21\u677f\u3002<br \/>\n\u590d\u5236\u4e00\u4efd\u53eb\u505aapplication.yml\u7684\u526f\u672c\uff0c\u5e76\u66f4\u6539\u4e0b\u9762\u7684\u503c\u3002<\/p><\/blockquote>\n<pre class=\"post-pre\"><code><span class=\"s\">line.bot<\/span><span class=\"pi\">:<\/span>\r\n  <span class=\"na\">channel-token<\/span><span class=\"pi\">:<\/span> <span class=\"s\">${CHANNEL_TOKEN}<\/span>\r\n  <span class=\"na\">channel-secret<\/span><span class=\"pi\">:<\/span> <span class=\"s\">${CHANNEL_SECRET}<\/span>\r\n  <span class=\"s\">handler.path<\/span><span class=\"pi\">:<\/span> <span class=\"s\">\/callback<\/span>\r\n<\/code><\/pre>\n<h2>\u90e8\u7f72<\/h2>\n<h3>\u5c06Heroku\u7684\u4fe1\u606f\u6ce8\u518c\u5230Git\u4e2d\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ heroku git:remote -a {HEROKU_APP_NAME}\r\n<\/code><\/pre>\n<h3>\u90e8\u7f72<\/h3>\n<pre class=\"post-pre\"><code>$ git add Procfile\r\n$ git commit -m 'Initial commit'\r\n$ git push heroku master\r\n<\/code><\/pre>\n<h2>LINE\u5f00\u53d1\u8005\u63a7\u5236\u53f0<\/h2>\n<p>\u5728LINE\u7684\u7ba1\u7406\u754c\u9762\u4e0a\uff0c\u5c06Heroku\u5e94\u7528\u7684URL\u4f5c\u4e3aWebhook\u6ce8\u518c\u3002<\/p>\n<p>Webhook URL\uff1ahttps:\/\/{HEROKU_APP_NAME}.herokuapp.com\/callback<br \/>\n\u4f7f\u7528Webhook\uff1a\u5f00\u542f<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/36-0.png\" alt=\"Screen Shot 2021-07-18 at 19.55.20.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/37-0.png\" alt=\"Screen Shot 2021-07-18 at 19.54.43.png\" \/><\/div>\n<p>\u5982\u679c\u78ba\u5b9aOK\u7684\u8a71\uff0c\u8868\u793aLINE BOT\u5df2\u7d93\u6210\u529f\u555f\u52d5\u4e86\u3002<\/p>\n<h2>\u786e\u8ba4\u52a8\u4f5c<\/h2>\n<p>\u7528LINE\u5e94\u7528\u7ed9\u76f8\u5173\u9891\u9053\u53d1\u9001\u6d88\u606f\u3002\u4ee5\u4e0b\u529f\u80fd\u90fd\u5df2\u7ecf\u5728\u793a\u4f8b\u4ee3\u7801\u4e2d\u5b9e\u73b0\u4e86\u3002<\/p>\n<h3>\u8f93\u5165\u300cprofile\u300d\uff0c\u83b7\u53d6\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/42-0.png\" alt=\"Screen Shot 2021-07-18 at 20.07.26.png\" \/><\/div>\n<h3>\u8f93\u5165\u300c\u6309\u94ae\u300d\u5e76\u53d1\u9001\u6a21\u677f\u6d88\u606f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/44-0.png\" alt=\"Screen Shot 2021-07-18 at 20.07.49.png\" \/><\/div>\n<h3>\u8f93\u5165&#8221;confirm&#8221;\uff0c\u53d1\u9001\u6a21\u677f\u6d88\u606f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/46-0.png\" alt=\"Screen Shot 2021-07-18 at 20.10.28.png\" \/><\/div>\n<h3>\u8f93\u5165&#8221;\u65cb\u8f6c\u6728\u9a6c&#8221;\u5e76\u53d1\u9001\u6a21\u677f\u4fe1\u606f\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/48-0.png\" alt=\"Screen Shot 2021-07-18 at 20.08.08.png\" \/><\/div>\n<h3>\u8f93\u5165\u201cimagemap\u201d\uff0c\u53d1\u9001\u56fe\u50cf\u5730\u56fe\u6d88\u606f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/50-0.png\" alt=\"Screen Shot 2021-07-18 at 20.08.21.png\" \/><\/div>\n<h3>\u9080\u8bf7LINE\u516c\u5f0f\u8d26\u53f7\u8fdb\u5165\u7fa4\u804a\uff0c\u5e76\u8f93\u5165\u201c\u518d\u89c1\u201d\u3002<\/h3>\n<p>\u53ef\u4ee5\u5c06LINE\u5b98\u65b9\u8d26\u53f7\u4ece\u7fa4\u804a\u4e2d\u79fb\u9664\u3002<\/p>\n<h3>\u8bf7\u5c06\u56fe\u7247\u3001\u97f3\u9891\u3001\u89c6\u9891\u3001\u4f4d\u7f6e\u4fe1\u606f\u7b49\u53d1\u9001\u81f3LINE\u516c\u5f0f\u8d26\u53f7\u3002<\/h3>\n<p>\u673a\u5668\u4eba\u4f1a\u83b7\u53d6\u8fd9\u4e9b\u5185\u5bb9\u5e76\u53d1\u9001\u76f8\u540c\u7684\u5185\u5bb9\u56de\u6765\u3002<\/p>\n<h2>\u6e90\u4ee3\u7801<\/h2>\n<div>\n<div class=\"post-table\">\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u5185\u5bb9<a href=\"https:\/\/github.com\/line\/line-bot-sdk-java\/blob\/master\/sample-spring-boot-kitchensink\/src\/main\/java\/com\/example\/bot\/spring\/KitchenSinkApplication.java\" target=\"_blank\" rel=\"nofollow noopener\">KitchenSinkApplication.java<\/a>\u30e1\u30a4\u30f3\u306e\u30af\u30e9\u30b9<a href=\"https:\/\/github.com\/line\/line-bot-sdk-java\/blob\/master\/sample-spring-boot-kitchensink\/src\/main\/java\/com\/example\/bot\/spring\/KitchenSinkController.java\" target=\"_blank\" rel=\"nofollow noopener\">KitchenSinkController.java<\/a>controller\u3002\u30c6\u30ad\u30b9\u30c8\u3001\u30b9\u30bf\u30f3\u30d7\u3001\u753b\u50cf\u6295\u7a3f\u306a\u3069\u69d8\u3005\u306a\u6295\u7a3f\u65b9\u6cd5\u3054\u3068\u306e\u8fd4\u4fe1\u51e6\u7406\u306e\u7a93\u53e3<a href=\"https:\/\/github.com\/line\/line-bot-sdk-java\/blob\/master\/sample-spring-boot-kitchensink\/src\/main\/java\/com\/example\/bot\/spring\/ExampleFlexMessageSupplier.java\" target=\"_blank\" rel=\"nofollow noopener\">ExampleFlexMessageSupplier.java<\/a>FlexMessage\u7528<a href=\"https:\/\/github.com\/line\/line-bot-sdk-java\/blob\/master\/sample-spring-boot-kitchensink\/src\/main\/java\/com\/example\/bot\/spring\/MessageWithQuickReplySupplier.java\" target=\"_blank\" rel=\"nofollow noopener\">MessageWithQuickReplySupplier.java<\/a>quickReply\u7528<a href=\"https:\/\/github.com\/line\/line-bot-sdk-java\/blob\/master\/sample-spring-boot-kitchensink\/src\/main\/java\/com\/example\/bot\/spring\/KitchenSinkWebMvcConfigurer.java\" target=\"_blank\" rel=\"nofollow noopener\">KitchenSinkWebMvcConfigurer.java<\/a><\/div>\n<\/div>\n<h2>Gradle\u7684\u7248\u672c\u592a\u4f4e\u3002<\/h2>\n<p>\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u5347\u7ea7Gradle\u7248\u672c\u81f36.7.1\uff0c\u6240\u4ee5\u8bf7\u53c2\u8003\u4e0b\u65b9\u63d0\u4f9b\u7684\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/gradlew -v\r\n\r\n------------------------------------------------------------\r\nGradle 6.7.1\r\n------------------------------------------------------------\r\n\r\nBuild time:   2020-11-16 17:09:24 UTC\r\nRevision:     2972ff02f3210d2ceed2f1ea880f026acfbab5c0\r\n\r\nKotlin:       1.3.72\r\nGroovy:       2.5.12\r\nAnt:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020\r\nJVM:          13.0.2 (Oracle Corporation 13.0.2+8)\r\nOS:           Mac OS X 10.14.6 x86_64\r\n<\/code><\/pre>\n<h2>\u6709\u5173<\/h2>\n<p>\u5728Heroku\u4e0a\u4f7f\u7528Spring Boot + JPA + Flyway\u6765\u521b\u5efaLINE Bot<\/p>\n<h2>\u8bf7\u53c2\u8003\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Heroku\u3067\u30b5\u30f3\u30d7\u30eb\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/github.com\/line\/line-bot-sdk-java<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u4f7f\u7528LINE\u5206\u53d1\u7684line-bot-sdk-java\u793a\u4f8b\u4ee3\u7801\uff0c\u5c1d\u8bd5\u8fd0\u884cLINE Bot\u7684\u6b65\u9aa4\u3002\u8fd9\u4e2a\u793a\u4f8b\u4ee3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40346","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u4f7f\u7528line-bot-sdk-java\u5728spring-boot\u4e0a\u521b\u5efaline-bot\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u4ecb \u4f7f\u7528LINE\u5206\u53d1\u7684line-bot-sdk-java\u793a\u4f8b\u4ee3\u7801\uff0c\u5c1d\u8bd5\u8fd0\u884cLINE Bot\u7684\u6b65\u9aa4\u3002\u8fd9\u4e2a\u793a\u4f8b\u4ee3 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528line-bot-sdk-java\u5728spring-boot\u4e0a\u521b\u5efaline-bot\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-14T22:53:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T18:56:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/36-0.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\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.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/\",\"name\":\"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-14T22:53:14+00:00\",\"dateModified\":\"2024-05-03T18:56:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4f7f\u7528line-bot-sdk-java\u5728spring-boot\u4e0a\u521b\u5efaline-bot\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot","og_description":"\u7b80\u4ecb \u4f7f\u7528LINE\u5206\u53d1\u7684line-bot-sdk-java\u793a\u4f8b\u4ee3\u7801\uff0c\u5c1d\u8bd5\u8fd0\u884cLINE Bot\u7684\u6b65\u9aa4\u3002\u8fd9\u4e2a\u793a\u4f8b\u4ee3 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528line-bot-sdk-java\u5728spring-boot\u4e0a\u521b\u5efaline-bot\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-14T22:53:14+00:00","article_modified_time":"2024-05-03T18:56:15+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ff437434c4406c90648\/36-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/","name":"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-14T22:53:14+00:00","dateModified":"2024-05-03T18:56:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528line-bot-sdk-java\u5728Spring Boot\u4e0a\u521b\u5efaLINE Bot"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8line-bot-sdk-java%e5%9c%a8spring-boot%e4%b8%8a%e5%88%9b%e5%bb%baline-bot%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40346"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40346\/revisions"}],"predecessor-version":[{"id":95691,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40346\/revisions\/95691"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}