{"id":39637,"date":"2023-06-25T19:26:42","date_gmt":"2023-06-28T10:30:54","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/"},"modified":"2024-04-30T10:39:52","modified_gmt":"2024-04-30T02:39:52","slug":"%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/","title":{"rendered":"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u4f1a\u8ba8\u8bba\u5728Spring Boot\u4e2d\u5f00\u53d1 WEB\u5e94\u7528\u7a0b\u5e8f\u6240\u5fc5\u9700\u7684\u6700\u57fa\u672c\u7684\u4f9d\u5b58\u5173\u7cfb\u3002<\/p>\n<h2>\u4f9d\u5b58\u5173\u7cfb\u662f\u6307<\/h2>\n<p>\u5728\u4f7f\u7528Spring Boot\u8fdb\u884c\u5f00\u53d1\u65f6\uff0c\u5b83\u63d0\u4f9b\u4e86\u5404\u79cd\u529f\u80fd\u3002\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528Gradle\u3002<\/p>\n<h2>\u5bf9\u4e8e\u6700\u4f4e\u9650\u5ea6\u7684\u5fc5\u8981\u4f9d\u8d56\u5173\u7cfb\u3002<\/h2>\n<p>\u5982\u679c\u6709\u8fd9\u4e2a\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5236\u4f5c\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002<br \/>\n\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u8fd9\u6837\u3002<\/p>\n<div>\n<div class=\"post-table\">\u4f9d\u5b58\u95a2\u4fc2\u540d\u3000\u6a5f\u80fd\u8aac\u660e\u3000Spring Boot DevTools\u958b\u767a\u7528\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8d77\u52d5\u4e2d\u306b\u30b3\u30fc\u30c9\u3092\u7de8\u96c6\u3057\u305f\u5834\u5408\u306b\u81ea\u52d5\u7684\u306b\u53cd\u6620\u3059\u308b\u30db\u30c3\u30c8\u30ea\u30ed\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u5c0e\u5165\u3059\u308b\u3002LombokGetter\/Setter\u306a\u3069\u6a5f\u68b0\u7684\u306b\u4f5c\u6210\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u307f\u3067\u81ea\u52d5\u751f\u6210\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\u5358\u7d14\u4f5c\u696d\u306b\u306a\u308b\u30b3\u30fc\u30c9\u3092\u524a\u6e1b\u3059\u308b\u305f\u3081\u306b\u5c0e\u5165\u3059\u308b\u3002Spring WebWEB\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3002WebAPI\u958b\u767a\u306b\u306f\u5fc5\u9808\u3002Spring Data JDBCRDBMS\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3002MyBatis FrameworkRDBMS\u3078\u306e\u64cd\u4f5c\u3092\u697d\u306b\u3059\u308b\u305f\u3081\u306eORM(Object Relational Mapping)\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3002H2 DatabaseJVM\u4e0a\u3067\u52d5\u4f5c\u3059\u308bRDBMS\u3092\u63d0\u4f9b\u3059\u308b\u3002\u958b\u767a\u52b9\u7387\u304c\u826f\u304f\u306a\u308b\u305f\u3081\u30019\u7ae0\u3067MySQL\u3092\u5c0e\u5165\u3059\u308b\u307e\u3067\u306e\u9593\u5229\u7528\u3059\u308b\u3002Spring Security\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3084\u30b5\u30a4\u30f3\u30a4\u30f3\u6a5f\u80fd\u306a\u3069\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u306f\u5fc5\u9808ValidationWEB\u30a2\u30d7\u30ea\u30b1\u30fc\u30b8\u30e7\u30f3\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981thymeleafSpring Boot\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u5fc5\u9808\u306b\u306a\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3spring boot starter testSpring Boot\u3067\u306e\u30c6\u30b9\u30c8\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u5fc5\u8981\u306b\u306a\u308b\u3002<\/div>\n<\/div>\n<p>\u6211\u8ba4\u4e3a\u53ef\u80fd\u6709\u4e00\u4e9b\u4e1c\u897f\u88ab\u5ffd\u7565\u4e86\uff0c\u4f46\u4ee5\u4e0a\u7684\u4f9d\u8d56\u5173\u7cfb\u5728Spring Boot\u7684WEB\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\u662f\u5fc5\u9700\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>dependencies {\r\n\timplementation 'org.springframework.boot:spring-boot-starter-security:2.7.1'\r\n\timplementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server:2.7.1'\r\n\timplementation 'org.springframework.boot:spring-boot-starter-data-jpa'\r\n\timplementation 'org.springframework.boot:spring-boot-starter-thymeleaf'\r\n\timplementation 'org.springframework.boot:spring-boot-starter-validation'\r\n\timplementation 'org.springframework.boot:spring-boot-starter-web'\r\n\timplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0'\r\n\timplementation 'org.springframework.cloud:spring-cloud-starter'\r\n\tcompileOnly 'org.projectlombok:lombok'\r\n\tdevelopmentOnly 'org.springframework.boot:spring-boot-devtools'\r\n\truntimeOnly 'com.h2database:h2'\r\n\tannotationProcessor 'org.projectlombok:lombok'\r\n\ttestImplementation 'org.springframework.boot:spring-boot-starter-test'\r\n}\r\n<\/code><\/pre>\n<h2>\u6709\u52a9\u4e8e\u5e03\u5c40\u8bbe\u8ba1\u7684\u4f9d\u8d56\u5173\u7cfb<\/h2>\n<p>\u8fd9\u662f Bootstrap\u3001FontAwesome \u548c jQuery \u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<pre class=\"post-pre\"><code>implementation 'org.webjars:bootstrap:4.3.1'\r\nimplementation group: 'org.webjars', name: 'jquery', version: '3.3.1'\r\nimplementation 'org.webjars:font-awesome:5.13.0'\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u5c31\u662f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u8fd9\u6b21\u6211\u4eec\u5c06\u4f1a\u8ba8\u8bba\u5728Spring Boot\u4e2d\u5f00\u53d1 WEB\u5e94\u7528\u7a0b\u5e8f\u6240\u5fc5\u9700\u7684\u6700\u57fa\u672c\u7684\u4f9d\u5b58\u5173\u7cfb\u3002 \u4f9d\u5b58\u5173\u7cfb\u662f\u6307  [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39637","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>\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb - 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\/\u5173\u4e8espring-boot\u7684\u4f9d\u8d56\u5173\u7cfb\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u8fd9\u6b21\u6211\u4eec\u5c06\u4f1a\u8ba8\u8bba\u5728Spring Boot\u4e2d\u5f00\u53d1 WEB\u5e94\u7528\u7a0b\u5e8f\u6240\u5fc5\u9700\u7684\u6700\u57fa\u672c\u7684\u4f9d\u5b58\u5173\u7cfb\u3002 \u4f9d\u5b58\u5173\u7cfb\u662f\u6307 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5173\u4e8espring-boot\u7684\u4f9d\u8d56\u5173\u7cfb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-28T10:30:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T02:39:52+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \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=\"\u9038, \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\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/\",\"name\":\"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-28T10:30:54+00:00\",\"dateModified\":\"2024-04-30T02:39:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb\"}]},{\"@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\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb - 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\/\u5173\u4e8espring-boot\u7684\u4f9d\u8d56\u5173\u7cfb\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb","og_description":"\u9996\u5148 \u8fd9\u6b21\u6211\u4eec\u5c06\u4f1a\u8ba8\u8bba\u5728Spring Boot\u4e2d\u5f00\u53d1 WEB\u5e94\u7528\u7a0b\u5e8f\u6240\u5fc5\u9700\u7684\u6700\u57fa\u672c\u7684\u4f9d\u5b58\u5173\u7cfb\u3002 \u4f9d\u5b58\u5173\u7cfb\u662f\u6307 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5173\u4e8espring-boot\u7684\u4f9d\u8d56\u5173\u7cfb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-28T10:30:54+00:00","article_modified_time":"2024-04-30T02:39:52+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/","name":"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-28T10:30:54+00:00","dateModified":"2024-04-30T02:39:52+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5173\u4e8eSpring Boot\u7684\u4f9d\u8d56\u5173\u7cfb"}]},{"@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\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%b3%e4%ba%8espring-boot%e7%9a%84%e4%be%9d%e8%b5%96%e5%85%b3%e7%b3%bb\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39637","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39637"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39637\/revisions"}],"predecessor-version":[{"id":91411,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39637\/revisions\/91411"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}