{"id":4389,"date":"2022-01-21T17:09:00","date_gmt":"2022-01-21T09:09:00","guid":{"rendered":"https:\/\/en.pingcap.com\/?p=4389"},"modified":"2024-07-02T09:51:23","modified_gmt":"2024-07-02T16:51:23","slug":"use-tidb-cloud-as-the-database-for-your-java-application","status":"publish","type":"post","link":"https:\/\/www.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/","title":{"rendered":"Use TiDB Cloud as the Database for Your Java Application"},"content":{"rendered":"<p>TiDB Cloud is a fully-managed Database-as-a-Service (DBaaS) that brings everything great about TiDB to your cloud and lets you focus on your applications, not the complexities of your database.<\/p>\n<p>In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Before_you_begin\"><\/span>Before you begin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Get the sample Java application used in this tutorial.\u00a0 <a href=\"https:\/\/github.com\/bb7133\/tidb-hibernate-example\/archive\/refs\/heads\/main.zip\">Download the zip file directly<\/a>, or if you have the\u00a0<em>git<\/em> tools installed you can clone the file:<\/p>\n<pre><code>git clone https:\/\/github.com\/bb7133\/tidb-hibernate-example<\/code><\/pre>\n<p>The sample application is a simple CRM tool where you can add, query, and update customer and order information. For more information, check the detailed code explanations <a href=\"https:\/\/docs.pingcap.com\/appdev\/dev\/for-hibernate-orm#step-3-get-and-run-the-application-code\">\uc5ec\uae30<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create_a_TiDB_dev_tier_cluster\"><\/span>Create a TiDB dev tier cluster<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>If you do not have a TiDB Cloud account, click <a href=\"https:\/\/tidbcloud.com\/free-trial\/\">\uc5ec\uae30<\/a> to sign up for an account.<\/li>\n<li><a href=\"https:\/\/tidbcloud.com\/\">Log in<\/a> to your TiDB Cloud account.<\/li>\n<li>Click <strong>Create a Cluster<\/strong> to go to the plan selection page, and then click <strong>Get Started for Free<\/strong> under the Developer Tier plan.<\/li>\n<li>On the <strong>Create a Cluster<\/strong> page, set up your <strong>cluster name<\/strong> \uadf8\ub9ac\uace0 <strong>root password<\/strong>.<\/li>\n<li>For the cloud provider field, note that AWS is selected by default. Select the region where you want to create your cluster.<\/li>\n<li>Select the S1.dev cluster tier, and then click <strong>Submit<\/strong>.<\/li>\n<\/ol>\n<p>Your TiDB Cloud cluster will be created in approximately 5 to 10 minutes.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create_a_Database_in_TiDB_Cloud\"><\/span>Create a Database in TiDB Cloud<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>On the TiDB Cloud console, click <strong>Connect<\/strong> on the upper right of the pane.\u00a0 The <strong>Connect to TiDB<\/strong> dialog displays.<\/li>\n<li>Click the <strong>Web SQL Shell<\/strong> tab and select <strong>&gt;_Open SQL Shell<\/strong>. The SQL Shell window opens.\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4413\" src=\"https:\/\/www.pingcap.com\/core\/uploads\/2022\/01\/\u5fae\u4fe1\u622a\u56fe_20220120175542.png\" alt=\"\" width=\"932\" height=\"531\" srcset=\"https:\/\/static.pingcap.com\/files\/2022\/01\/\u5fae\u4fe1\u622a\u56fe_20220120175542.png 932w, https:\/\/static.pingcap.com\/files\/2022\/01\/\u5fae\u4fe1\u622a\u56fe_20220120175542-300x171.png 300w, https:\/\/static.pingcap.com\/files\/2022\/01\/\u5fae\u4fe1\u622a\u56fe_20220120175542-768x438.png 768w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><br \/>\n<em>Screenshot of SQL Shell window<\/em><\/p>\n<\/li>\n<li>Enter the cluster password you set in the previous step to login.<\/li>\n<li>Create the bank database using the following statements:\n<pre><code>CREATE DATABASE bank;<\/code><\/pre>\n<pre><code>CREATE USER '&lt;username&gt;' IDENTIFIED BY '&lt;password&gt;';<\/code><\/pre>\n<pre><code>GRANT ALL PRIVILEGES ON bank.* TO '&lt;username&gt;';<\/code><\/pre>\n<\/li>\n<li>Use the bank database and check the current tables:\n<pre><code>USE bank;<\/code><\/pre>\n<pre><code>SHOW tables;\n<\/code><\/pre>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4405 aligncenter\" src=\"https:\/\/www.pingcap.com\/core\/uploads\/2022\/01\/unnamed-1.png\" alt=\"\" width=\"512\" height=\"121\" srcset=\"https:\/\/static.pingcap.com\/files\/2022\/01\/unnamed-1.png 512w, https:\/\/static.pingcap.com\/files\/2022\/01\/unnamed-1-300x71.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><em>Screenshot of <code>SHOW tables<\/code><\/em><\/p>\n<p>There are currently no tables and rows in this database.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Get_TiDB_Cluster_IP_address\"><\/span>Get TiDB Cluster IP address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Go to <a href=\"https:\/\/tidbcloud.com\/console\/clusters\">https:\/\/tidbcloud.com\/console\/clusters<\/a> and sign in to your cluster.<\/li>\n<li>On the TiDB Cloud console, click <strong>Connect<\/strong> on the upper right of the pane.<br \/>\nThe <strong>Connect to TiDB<\/strong> dialog displays.<\/li>\n<li>Create the traffic filter for the cluster.\u00a0 Click the button <strong>Allow Access from Anywhere<\/strong>.\u00a0 Then click <strong>Create Filter<\/strong>.<\/li>\n<li>Note the TiDB Cloud IP address listed between the <code>-h<\/code> parameter and <code>-P<\/code> parameter. You will use it at a later step. For example:\u00a0 <code>mysql -u root -h <strong>tidb.xxx.xxxxx.us-west-2.prod.aws.tidbcloud.com<\/strong> -P 4000 -p<\/code>.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Use_TiDB_Cloud_as_the_database_for_your_Java_application\"><\/span>Use TiDB Cloud as the database for your Java application<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>In your favorite IDE, open the <strong>tidb-hibernate-example<\/strong> demo app.\n<ol>\n<li>Use IntelliJ for example, click <strong>Open<\/strong>,\u00a0 select &lt;<code>your_download _path&gt;\/tidb-hibernate-example\/build.gradle<\/code> file, and click <strong>Open<\/strong>.<\/li>\n<li>Select <strong>Open as Project<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<li>Expand <code>the \/src\/main\/resources<\/code> folder, and click <strong>hibernate.properties<\/strong>.<\/li>\n<li>Change the connection settings:\n<ol>\n<li>Modify the <strong>hibernate.connection.url<\/strong> field and change it to:\n<pre><code>jdbc:mysql:\/\/&lt;your_tidb_cloud_ip_address&gt;:4000\/bank?enabledTLSProtocols=TLSv1.2<\/code><\/pre>\n<\/li>\n<li>Modify the <strong>hibernate.connection.username<\/strong> field and change it to the username you created in the <em>Create a TiDB Dev Tier Cluster<\/em> section, when you ran the <code>CREATE USER<\/code> command.<\/li>\n<li>Modify the <strong>hibernate.connection.password<\/strong> field and add the password from the same <code>CREATE USER<\/code> command.<\/li>\n<\/ol>\n<\/li>\n<li>Deploy this application. Use IntelliJ for example: right-click the <code>src\/main\/java\/com\/pingcap\/hibernate\/Example.java<\/code> file and select <strong>run Example.main()<\/strong>.<\/li>\n<li>Once the deployment is complete, go to TiDB Cloud SQL Shell and verify the change:\n<pre><code>USE bank;<\/code><code><\/code><code><\/code><code><\/code><\/pre>\n<pre><code>SHOW tables;<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>You have created two tables using your Java application.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Want_to_learn_more\"><\/span>Want to learn more?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Ready to <a href=\"http:\/\/tidbcloud.com\/free-trial\/\">give TiDB Cloud a try<\/a>? TiDB Cloud <a href=\"https:\/\/www.pingcap.com\/ko\/blog\/tidb-cloud-introduces-developer-tier\/\">Developer Tier<\/a> is now available! It lets you run a TiDB cluster for free for one year on Amazon Web Services. Make sure to follow us on <a href=\"https:\/\/twitter.com\/PingCAP\">Twitter<\/a> to stay updated on TiDB Cloud news!<\/p>","protected":false},"excerpt":{"rendered":"<p>In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.<\/p>","protected":false},"author":159,"featured_media":4409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[13],"tags":[153,31,29],"class_list":["post-4389","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product","tag-how-to","tag-tidb-cloud","tag-tutorial"],"acf":[],"featured_image_src":"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg","author_info":{"display_name":"Phoebe He","author_link":"https:\/\/www.pingcap.com\/ko\/blog\/author\/phoebe-he\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use TiDB Cloud as the Database for Your Java Application | TiDB<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to use TiDB Cloud as the database for your Java application, and how easy it is with Hibernate ORM.\u00a0\" \/>\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.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use TiDB Cloud as the Database for Your Java Application\" \/>\n<meta property=\"og:description\" content=\"In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-21T09:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-02T16:51:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2022\/01\/\u7ec4-996.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Phoebe He\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Use TiDB Cloud as the Database for Your Java Application\" \/>\n<meta name=\"twitter:description\" content=\"In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.\u00a0\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/static.pingcap.com\/files\/2022\/01\/\u7ec4-996.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Phoebe He\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\"},\"author\":{\"name\":\"Phoebe He\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/bb7bf58f3f9048456d4baf61c05b1d3a\"},\"headline\":\"Use TiDB Cloud as the Database for Your Java Application\",\"datePublished\":\"2022-01-21T09:09:00+00:00\",\"dateModified\":\"2024-07-02T16:51:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\"},\"wordCount\":590,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg\",\"keywords\":[\"How-to\",\"TiDB Cloud\",\"Tutorial\"],\"articleSection\":[\"Product\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\",\"url\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\",\"name\":\"Use TiDB Cloud as the Database for Your Java Application | TiDB\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg\",\"datePublished\":\"2022-01-21T09:09:00+00:00\",\"dateModified\":\"2024-07-02T16:51:23+00:00\",\"description\":\"In this tutorial, you will learn how to use TiDB Cloud as the database for your Java application, and how easy it is with Hibernate ORM.\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage\",\"url\":\"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg\",\"width\":1499,\"height\":503},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pingcap.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use TiDB Cloud as the Database for Your Java Application\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pingcap.com\/#website\",\"url\":\"https:\/\/www.pingcap.com\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pingcap.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pingcap.com\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\/\/www.pingcap.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pingcap2015\",\"https:\/\/x.com\/PingCAP\",\"https:\/\/linkedin.com\/company\/pingcap\",\"https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/bb7bf58f3f9048456d4baf61c05b1d3a\",\"name\":\"Phoebe He\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"caption\":\"Phoebe He\"},\"sameAs\":[\"http:\/\/github.com\/phxwhe\"],\"url\":\"https:\/\/www.pingcap.com\/ko\/blog\/author\/phoebe-he\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use TiDB Cloud as the Database for Your Java Application | TiDB","description":"In this tutorial, you will learn how to use TiDB Cloud as the database for your Java application, and how easy it is with Hibernate ORM.\u00a0","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.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/","og_locale":"ko_KR","og_type":"article","og_title":"Use TiDB Cloud as the Database for Your Java Application","og_description":"In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.\u00a0","og_url":"https:\/\/www.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_published_time":"2022-01-21T09:09:00+00:00","article_modified_time":"2024-07-02T16:51:23+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/static.pingcap.com\/files\/2022\/01\/\u7ec4-996.jpg","type":"image\/jpeg"}],"author":"Phoebe He","twitter_card":"summary_large_image","twitter_title":"Use TiDB Cloud as the Database for Your Java Application","twitter_description":"In this 15-minute tutorial, you will learn how to use TiDB Cloud as the backend database for your Java application, and how easy it is to use TiDB Cloud with Hibernate ORM.\u00a0","twitter_image":"https:\/\/static.pingcap.com\/files\/2022\/01\/\u7ec4-996.jpg","twitter_creator":"@PingCAP","twitter_site":"@PingCAP","twitter_misc":{"Written by":"Phoebe He","Est. reading time":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#article","isPartOf":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/"},"author":{"name":"Phoebe He","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/bb7bf58f3f9048456d4baf61c05b1d3a"},"headline":"Use TiDB Cloud as the Database for Your Java Application","datePublished":"2022-01-21T09:09:00+00:00","dateModified":"2024-07-02T16:51:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/"},"wordCount":590,"commentCount":0,"publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg","keywords":["How-to","TiDB Cloud","Tutorial"],"articleSection":["Product"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/","url":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/","name":"Use TiDB Cloud as the Database for Your Java Application | TiDB","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg","datePublished":"2022-01-21T09:09:00+00:00","dateModified":"2024-07-02T16:51:23+00:00","description":"In this tutorial, you will learn how to use TiDB Cloud as the database for your Java application, and how easy it is with Hibernate ORM.\u00a0","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#primaryimage","url":"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg","contentUrl":"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg","width":1499,"height":503},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"Use TiDB Cloud as the Database for Your Java Application"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]},{"@type":"Person","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/bb7bf58f3f9048456d4baf61c05b1d3a","name":"Phoebe He","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/","url":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","contentUrl":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","caption":"Phoebe He"},"sameAs":["http:\/\/github.com\/phxwhe"],"url":"https:\/\/www.pingcap.com\/ko\/blog\/author\/phoebe-he\/"}]}},"grav_blocks":false,"card_markup":"<a class=\"card-resource bg-white\" href=\"https:\/\/www.pingcap.com\/ko\/blog\/use-tidb-cloud-as-the-database-for-your-java-application\/\"><div class=\"card-resource__image-container\"><img class=\"card-resource__image\" alt=\"Java\" src=\"https:\/\/static.pingcap.com\/files\/2022\/01\/Java.jpeg\" loading=\"lazy\" width=1499 height=503 \/><\/div><div class=\"card-resource__content-container\"><div class=\"card-resource__content-head\"><div class=\"card-resource__category\">Product<\/div><\/div><h5 class=\"card-resource__title\">Use TiDB Cloud as the Database for Your Java Application<\/h5><\/div><\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/4389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/comments?post=4389"}],"version-history":[{"count":17,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/4389\/revisions"}],"predecessor-version":[{"id":18017,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/4389\/revisions\/18017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media\/4409"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=4389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/categories?post=4389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/tags?post=4389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}