{"id":39961,"date":"2022-12-20T16:44:09","date_gmt":"2023-04-18T00:05:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/"},"modified":"2024-04-29T06:12:34","modified_gmt":"2024-04-28T22:12:34","slug":"%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/","title":{"rendered":"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>@Yosuke2712\uff0c\u6211\u662fYosuke2712\u3002<br \/>\n\u6211\u5e73\u65f6\u4e3b\u8981\u8d1f\u8d23\u5f00\u53d1B2B\u7684\u4e1a\u52a1\u7cfb\u7edf\u3002<br \/>\n\u7531\u4e8e\u516c\u53f8\u5185\u90e8\u6ca1\u6709\u6280\u672f\u66f4\u65b0\u7684\u673a\u4f1a\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u4e2a\u4eba\u5b66\u4e60\u4e00\u4e9b\u65b0\u77e5\u8bc6\u3002\u6211\u9996\u5148\u5c1d\u8bd5\u7528Spring Boot\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u9879\u76ee\uff0c\u4f46\u662f\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\uff0c\u6240\u4ee5\u6211\u521b\u5efa\u4e86\u8fd9\u4e2a\u5907\u5fd8\u5f55\u6765\u8bb0\u5f55\u3002<\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u662f\u4e3a\u90a3\u4e9b\u6ca1\u6709\u63a5\u89e6\u8fc7Spring\u7684\u4eba\u51c6\u5907\u7684\u3002<\/p>\n<h2>\u7b80\u8981\u6982\u8ff0<\/h2>\n<h5>\u73af\u5883<\/h5>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Windows10 Pro 1903<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">IntelliJ IDEA 2019.1.3 (Community Edition)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Jdk 11 (Amazon Corretto)<\/ul>\n<h5>\u7d22\u5f15<\/h5>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Spring Initializr\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Controller\u306e\u4f5c\u6210<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Template\u306e\u4f5c\u6210<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c<\/ul>\n<h2>\u4f7f\u7528Spring Initializr\u521b\u5efa\u9879\u76ee\u3002<\/h2>\n<p>\u5927\u4f53\u6846\u67b6\u53ef\u4ee5\u901a\u8fc7Spring Initializr\u521b\u5efa\u3002<\/p>\n<p>\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u8bbe\u7f6e\uff1a<br \/>\n\u25a0 \u9879\u76ee<br \/>\nGradle \u9879\u76ee<\/p>\n<p>\u25a0 \u8bed\u8a00<br \/>\n\u79d1\u7279\u6797<\/p>\n<p>\u25a0 \u6625\u5b63\u542f\u52a8\u6846\u67b62.1.6\uff08\u622a\u81f32019\u5e7407\u670815\u65e5\uff09<\/p>\n<p>\u25a0 \u9879\u76ee\u5143\u6570\u636e<br \/>\n\u7ec4\uff1acom.example<br \/>\n\u6784\u4ef6\uff1ahelloworld<br \/>\n\uff08\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528\u8fd9\u4e2a\u540d\u79f0\uff09<br \/>\n\u5728\u9009\u9879\u4e2d\u5c06Java\u5347\u7ea7\u523011\u7248\u672c\u3002<\/p>\n<p>\u25a0 Dependencies<br \/>\n\u52fe\u9009Developer Tools\u4e2d\u7684\u300cSpring Boot DevTools\u300d\uff0cWeb\u4e2d\u7684\u300cSpring Web Starter\u300d\uff0c\u4ee5\u53caTemplate Engines\u4e2d\u7684\u300cThymeleaf\u300d\u3002<\/p>\n<p>\u4eceGenerate\u4e0b\u8f7d\u9879\u76ee\uff0c\u5e76\u5c06\u89e3\u538b\u7684\u6587\u4ef6\u653e\u7f6e\u5728\u9002\u5f53\u7684\u4f4d\u7f6e\u3002<\/p>\n<h2>\u5bfc\u5165\u9879\u76ee<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/17-0.jpeg\" alt=\"IDEA.jpg\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/18-0.jpeg\" alt=\"IDEA2.jpg\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/19-0.jpeg\" alt=\"IDEA3.jpg\" \/><\/div>\n<p>\u6253\u5f00\u9879\u76ee\u5e76\u67e5\u770b&#8221;build.gradle.kts&#8221;\u6587\u4ef6\u3002<br \/>\n\uff08\u5e26\u6709&#8221;kts&#8221;\u7684\u662f\u76f8\u5bf9\u8f83\u65b0\u7684\u6982\u5ff5\uff0c\u5e94\u8be5\u5c1d\u8bd5\u8fc1\u79fb\u5230&#8221;build.gradle.kts&#8221;\uff09<\/p>\n<p>`helloworld\\build.gradle.kts` \u6587\u4ef6\u4e2d\u7684\u4f9d\u8d56\u9879\u5e94\u8be5\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">dependencies<\/span> <span class=\"o\">{<\/span>\r\n    <span class=\"n\">implementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.springframework.boot:spring-boot-starter-thymeleaf\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">implementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.springframework.boot:spring-boot-starter-web\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">implementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"com.fasterxml.jackson.module:jackson-module-kotlin\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">implementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.jetbrains.kotlin:kotlin-reflect\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">implementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.jetbrains.kotlin:kotlin-stdlib-jdk8\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">developmentOnly<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.springframework.boot:spring-boot-devtools\"<\/span><span class=\"o\">)<\/span>\r\n    <span class=\"n\">testImplementation<\/span><span class=\"o\">(<\/span><span class=\"s2\">\"org.springframework.boot:spring-boot-starter-test\"<\/span><span class=\"o\">)<\/span>\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u67e5\u770bdevtools\u3001web\u3001thymeleaf\u7b49\u3002<\/p>\n<h2>\u521b\u5efa\u63a7\u5236\u5668<\/h2>\n<p>\u5728helloworld\/src\/main\/kotlin\u76ee\u5f55\u4e0b\uff0c\u6709\u4e00\u4e2acom.example.helloworld.HelloworldApplication\u6587\u4ef6\uff0c\u4f46\u662f\u6211\u4eec\u4e0d\u9700\u8981\u5bf9\u5b83\u8fdb\u884c\u7f16\u8f91\u3002<br \/>\n\u5728\u4e0eHelloworldApplication\u76f8\u540c\u7684\u5c42\u7ea7\u4e0b\u521b\u5efa\u4e00\u4e2aHelloworldController\u7c7b\uff0c\u5e76\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u63cf\u8ff0\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">package<\/span> <span class=\"nn\">com.example.helloworld<\/span>\r\n\r\n<span class=\"k\">import<\/span> <span class=\"nn\">org.springframework.stereotype.Controller<\/span>\r\n<span class=\"k\">import<\/span> <span class=\"nn\">org.springframework.ui.Model<\/span>\r\n<span class=\"k\">import<\/span> <span class=\"nn\">org.springframework.web.bind.annotation.GetMapping<\/span>\r\n\r\n<span class=\"nd\">@Controller<\/span>\r\n<span class=\"kd\">class<\/span> <span class=\"nc\">HelloworldController<\/span> <span class=\"p\">{<\/span>\r\n\r\n    <span class=\"nd\">@GetMapping<\/span><span class=\"p\">(<\/span><span class=\"s\">\"\/helloworld\"<\/span><span class=\"p\">)<\/span>\r\n    <span class=\"k\">fun<\/span> <span class=\"nf\">helloworld<\/span><span class=\"p\">(<\/span><span class=\"n\">model<\/span><span class=\"p\">:<\/span> <span class=\"nc\">Model<\/span><span class=\"p\">):<\/span> <span class=\"nc\">String<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"n\">model<\/span><span class=\"p\">.<\/span><span class=\"nf\">addAttribute<\/span><span class=\"p\">(<\/span><span class=\"s\">\"message\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"Hello World!\"<\/span><span class=\"p\">)<\/span>\r\n        <span class=\"k\">return<\/span> <span class=\"s\">\"helloworld\"<\/span>\r\n    <span class=\"p\">}<\/span>\r\n\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u5173\u4e8e\u6ce8\u89e3\uff0c\u4e0b\u9762\u7684\u6587\u7ae0\u4e2d\u5199\u4e86\u5f88\u591a\u5185\u5bb9\u3002<br \/>\n\u5173\u4e8eSpring Framework\u7684Controller\u7684\u57fa\u672c\u6ce8\u89e3\uff0c\u5728\u4e0b\u65b9\u7684\u6587\u7ae0\u4e2d\u6709\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<h2>\u521b\u5efa\u6a21\u677f<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u5728helloworld\/src\/main\/resources\/templates\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2ahtml\u6587\u4ef6\u3002<br \/>\nxmlns:th=&#8221;http:\/\/www.thymeleaf.org&#8221; \u548c th:text=&#8221;${message}&#8221; \u8fd9\u4e24\u90e8\u5206\u4e0eThymeleaf\u6709\u5173\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"cp\">&lt;!DOCTYPE html&gt;<\/span>\r\n<span class=\"nt\">&lt;html<\/span> <span class=\"na\">lang=<\/span><span class=\"s\">\"ja\"<\/span> <span class=\"na\">xmlns:th=<\/span><span class=\"s\">\"http:\/\/www.thymeleaf.org\"<\/span><span class=\"nt\">&gt;<\/span>\r\n<span class=\"nt\">&lt;head&gt;<\/span>\r\n    <span class=\"nt\">&lt;meta<\/span> <span class=\"na\">charset=<\/span><span class=\"s\">\"UTF-8\"<\/span><span class=\"nt\">&gt;<\/span>\r\n    <span class=\"nt\">&lt;title&gt;<\/span>HelloWorld<span class=\"nt\">&lt;\/title&gt;<\/span>\r\n<span class=\"nt\">&lt;\/head&gt;<\/span>\r\n<span class=\"nt\">&lt;body&gt;<\/span>\r\n    <span class=\"nt\">&lt;h1<\/span> <span class=\"na\">th:text=<\/span><span class=\"s\">\"${message}\"<\/span><span class=\"nt\">&gt;&lt;\/h1&gt;<\/span>\r\n<span class=\"nt\">&lt;\/body&gt;<\/span>\r\n<span class=\"nt\">&lt;\/html&gt;<\/span>\r\n<\/code><\/pre>\n<h2>\u6267\u884c\u9879\u76ee<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/32-0.jpeg\" alt=\"IDEA4.jpg\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/33-0.jpeg\" alt=\"IDEA5.jpg\" \/><\/div>\n<p>\u5982\u679c\u5728\u63a7\u5236\u53f0\u4e0a\u663e\u793a\u4ee5\u4e0b\u65e5\u5fd7\uff0c\u5219\u6253\u5f00http:\/\/localhost:8080\/helloworld\u3002<br \/>\n[ restartedMain ] c.e.helloworld.HelloworldApplicationKt : \u57287.576\u79d2\u5185\u542f\u52a8\u4e86HelloworldApplicationKt\uff08JVM\u8fd0\u884c\u65f6\u95f4\u4e3a10.035\u79d2\uff09\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/35-0.jpeg\" alt=\"chrome.jpg\" \/><\/div>\n<h2>\u6700\u540e<\/h2>\n<p>\u4f7f\u7528Spring Initializr\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8bbe\u7f6e\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u5373\u4f7f\u662f\u521d\u5b66\u8005\u4e5f\u80fd\u8f7b\u677e\u4e0a\u624b\u3002(\u5982\u679c\u662f\u7b80\u5355\u7684\u9879\u76ee\uff0c\u4e0d\u9700\u8981\u8fdb\u884cbuild.gradle\u7684\u914d\u7f6e\u7b49)<\/p>\n<h5>\u8bf7\u5f15\u7528\u4ee5\u4e0b\u5185\u5bb9\u3002<\/h5>\n<p>Spring Boot \u4f7f\u7528 Thymeleaf \u7684\u65b9\u6cd5\u5907\u5fd8\u5f55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 @Yosuke2712\uff0c\u6211\u662fYosuke2712\u3002 \u6211\u5e73\u65f6\u4e3b\u8981\u8d1f\u8d23\u5f00\u53d1B2B\u7684\u4e1a\u52a1\u7cfb\u7edf\u3002 \u7531\u4e8e\u516c\u53f8\u5185\u90e8\u6ca1 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39961","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\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f - 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\u7528gradle-kotlin-thymeleaf\u7f16\u5199\u4e00\u4e2ahello-world\u7a0b\u5e8f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 @Yosuke2712\uff0c\u6211\u662fYosuke2712\u3002 \u6211\u5e73\u65f6\u4e3b\u8981\u8d1f\u8d23\u5f00\u53d1B2B\u7684\u4e1a\u52a1\u7cfb\u7edf\u3002 \u7531\u4e8e\u516c\u53f8\u5185\u90e8\u6ca1 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gradle-kotlin-thymeleaf\u7f16\u5199\u4e00\u4e2ahello-world\u7a0b\u5e8f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-18T00:05:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T22:12:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/17-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\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%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/\",\"name\":\"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-18T00:05:31+00:00\",\"dateModified\":\"2024-04-28T22:12:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f - 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\u7528gradle-kotlin-thymeleaf\u7f16\u5199\u4e00\u4e2ahello-world\u7a0b\u5e8f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f","og_description":"\u9996\u5148 @Yosuke2712\uff0c\u6211\u662fYosuke2712\u3002 \u6211\u5e73\u65f6\u4e3b\u8981\u8d1f\u8d23\u5f00\u53d1B2B\u7684\u4e1a\u52a1\u7cfb\u7edf\u3002 \u7531\u4e8e\u516c\u53f8\u5185\u90e8\u6ca1 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gradle-kotlin-thymeleaf\u7f16\u5199\u4e00\u4e2ahello-world\u7a0b\u5e8f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-18T00:05:31+00:00","article_modified_time":"2024-04-28T22:12:34+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3db837434c4406c88b58\/17-0.jpeg"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\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%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/","name":"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-18T00:05:31+00:00","dateModified":"2024-04-28T22:12:34+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Gradle + Kotlin + Thymeleaf\u7f16\u5199\u4e00\u4e2aHello World\u7a0b\u5e8f"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gradle-kotlin-thymeleaf%e7%bc%96%e5%86%99%e4%b8%80%e4%b8%aahello-world%e7%a8%8b%e5%ba%8f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39961","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39961"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39961\/revisions"}],"predecessor-version":[{"id":83532,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39961\/revisions\/83532"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}