[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-31(UTC)"],[],[],null,["# Use the open-source R2DBC driver\n\n[R2DBC](https://r2dbc.io/)\nis a specification for non-blocking access to relational databases, based on\n[Reactive Streams](https://www.reactive-streams.org/).\nYour application can make use of the reactive database connectivity with\nSpanner by using the Spanner R2DBC driver.\n\nAdd dependencies\n----------------\n\nSpring Data users should use the Spring Data R2DBC dialect for\nSpanner; all other users should bring in the\nSpanner R2DBC driver only.\n\n### Use the Spanner R2DBC driver\n\nTo add only the Spanner R2DBC driver to your application, add the\nfollowing dependency: \n\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003ecloud-spanner-r2dbc\u003c/artifactId\u003e\n \u003cversion\u003e1.3.0\u003c/version\u003e\n \u003c/dependency\u003e\n\nFor more information, see the [Spanner R2DBC\ndriver GitHub repository](https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc)\nand the [sample code](https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/tree/main/cloud-spanner-r2dbc-samples/cloud-spanner-r2dbc-sample).\n\n### Use the Spring Data R2DBC dialect for Spanner\n\nFor users of the Spring Framework, Spring Data provides familiar abstractions\nto simplify interaction with common database operations.\n\nTo use [Spring Data R2DBC](https://spring.io/projects/spring-data-r2dbc) features\nwith Spanner, add the following dependency to your project. The\ndriver is a transitive dependency of the dialect. \n\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003ecloud-spanner-spring-data-r2dbc\u003c/artifactId\u003e\n \u003cversion\u003e1.2.2\u003c/version\u003e\n \u003c/dependency\u003e\n\nTo learn how to use its template and repositories, see the\n[Spring Data R2DBC reference](https://docs.spring.io/spring-data/r2dbc/docs/current/reference/html/).\nTo see which objects are automatically configured for your, see the [Spring Boot reference](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-r2dbc).\n\nFor more information, see the [Spanner Spring Data R2DBC\nGitHub repository](https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/tree/main/cloud-spanner-spring-data-r2dbc).\n\nSpring Boot configuration\n-------------------------\n\nRegardless of which R2DBC dependency you use, if your application is based on\nSpring Boot, the framework will attempt to automatically configure and provide a\nconnection factory for you.\n\nProvide a `spring.r2dbc.url` property to let autoconfiguration take care of\nR2DBC connection factory configuration. The format is shown in the following\nsample `application.properties` entry: \n\n spring.r2dbc.url=\\\n r2dbc:cloudspanner://spanner.googleapis.com:443/projects/${project}/instances/${instance}/databases/${database}\n\nWhat's next\n-----------\n\n- Learn more about using Spanner through R2DBC with these [code examples](https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/tree/main/cloud-spanner-r2dbc-samples).\n- Learn more about [R2DBC](https://r2dbc.io/).\n- [File a GitHub issue](https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/issues) to report a bug or ask a question about Spanner R2DBC support."]]