TiDB v6.1 Documentationwith TiDB and Golang · · · · · · · · · · · · · · · · · 145 4.3.2 Build a TiDB Application Using Spring Boot · · · · · · · · · · · · · · · · · · · · · · 163 4.3.3 Build a Simple CRUD App with TiDB and Java Expected Output 4.3.2 Build a TiDB Application Using Spring Boot This tutorial shows you how to build a Spring Boot web application using TiDB. The Spring Data JPA module is used as the framework for data application from GitHub. This is a sample application for building a RESTful API, which shows a generic Spring Boot backend service using TiDB as the database. The following process was designed to recreate a real-world0 码力 | 4487 页 | 84.44 MB | 1 年前3
TiDB v6.1 中文手册· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 106 4.3.2 使用 Spring Boot 构建 TiDB 应用程序 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 使用 Spring Boot 构建 TiDB 应用程序 本教程向你展示如何使用 TiDB 构建 Spring Boot Web 应用程序。使用 Spring Data JPA 模块作为数据访问能力的框 架。此示例应用程序的代码仓库可在 Github 下载。 这是一个较为完整的构建 Restful API 的示例应用程序,展示了一个使用 TiDB 作为数据库的通用 Spring Boot 后端 goods。且每个玩家都拥有一个字 段 id,作为玩家的唯一标识。玩家在金币数和货物数充足的情况下,可以自由的交易。 你可以以此示例为基础,构建自己的应用程序。 建议: 在云原生开发环境中尝试 Spring Boot 构建 TiDB 应用程序。预配置完成的环境,自动启动 TiDB 集群,获取和运行代码,只需要一个链接。 现在就试试 4.3.2.1 第 1 步:启动你的 TiDB 集群 本节将介绍 TiDB0 码力 | 3572 页 | 84.36 MB | 1 年前3
TiDB v6.5 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. 156 • Connect to your TiDB cluster using Hibernate and Spring Data JPA. •0 码力 | 5282 页 | 99.69 MB | 1 年前3
TiDB v7.1 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial TiDB along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. • Connect to your TiDB cluster using Hibernate and Spring Data JPA. • Build0 码力 | 5716 页 | 104.74 MB | 1 年前3
TiDB v7.6 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial TiDB along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. • Connect to your TiDB cluster using Hibernate and Spring Data JPA. • Build0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v7.5 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial TiDB along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. • Connect to your TiDB cluster using Hibernate and Spring Data JPA. • Build0 码力 | 6020 页 | 106.82 MB | 1 年前3
TiDB 开源分布式关系型数据库万用户和 200 万商家用户。 业务挑战 PayPay 采用亚马逊 AWS 作为 IT 基础架构, 并在此基础之上搭建了微服务应用架构。业务应用架构由大约 80 个组件构成, 使用 Java、 Spring Boot 等基础技术及Amazon Aurora 作为核心数据库,所有的支付交易 都传输到 Payment 组件进行管理。 随着业务迅速增长, 当 Aurora 数据库遇到许多写入请求时, Binlog0 码力 | 58 页 | 9.51 MB | 1 年前3
TiDB v8.1 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial TiDB along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. • Connect to your TiDB cluster using Hibernate and Spring Data JPA. • Build0 码力 | 6321 页 | 107.46 MB | 1 年前3
TiDB v8.0 Documentationstatements, it is recommended to use ORM framework for development, such as Hibernate, MyBatis, or Spring Data JPA. It can help you: • Reduce boilerplate code for managing connections and transactions. Connect to TiDB with Spring Boot TiDB is a MySQL-compatible database, and Spring is a popular open-source container framework for Java. This document uses Spring Boot as the way to use Spring. In this tutorial TiDB along with Spring Data JPA and Hiber- nate as the JPA provider to accomplish the following tasks: • Set up your environment. • Connect to your TiDB cluster using Hibernate and Spring Data JPA. • Build0 码力 | 6327 页 | 107.55 MB | 1 年前3
TiDB v7.1 中文手册手动管理数据库事务 105 • 手动将数据行映射为数据对象 建议仅在需要编写复杂的 SQL 语句时使用驱动程序。其他情况下,建议使用 ORM 框架进行开发,例如Hibernate、 MyBatis 或Spring Data JPA。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.1.1.5 下一步 • 关于 MySQL Connector/J 如果在开发的过程中遇到问题,可以在 AskTUG 上进行提问,寻求帮助。 4.3.1.4 使用 Spring Boot 连接到 TiDB TiDB 是一个兼容 MySQL 的数据库。Spring 是当前比较流行的开源 Java 容器框架,本文选择 Spring Boot 作为使用 Spring 的方式。 本文档将展示如何使用 TiDB 和 Spring Data JPA 及 Hibernate 作为 JPA 提供者来完成以下任务: 提供者来完成以下任务: • 配置你的环境。 • 使用 Spring Data JPA 与 Hibernate 连接到 TiDB 集群。 • 构建并运行你的应用程序。你也可以参考示例代码片段,完成基本的 CRUD 操作。 注意 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 4.3.1.4.1 前置需求 • 推荐 Java Development0 码力 | 4369 页 | 98.92 MB | 1 年前3
共 33 条
- 1
- 2
- 3
- 4













