myskov commented on code in PR #6207: URL: https://github.com/apache/ignite-3/pull/6207#discussion_r2200605611
########## docs/_docs/developers-guide/spring-data/spring-data.adoc: ########## @@ -0,0 +1,165 @@ +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. += Apache Ignite With Spring Data + +== Overview + +Spring Data Framework provides a unified and widely used API that allows abstracting an underlying data storage from the +application layer. Spring Data helps you avoid locking to a specific database vendor, making it easy to switch from one +database to another with minimal efforts. Apache Ignite supports Spring Data JDBC by implementing `IgniteDialect`. + +== Maven Configuration + +The easiest way to start working with Apache Ignite's Spring Data repository is by adding the following Maven dependencies +to the application's `pom.xml` file: + +[tabs] +-- +tab:pom.xml[] +[source,xml] +---- +<dependency> + <groupId>org.apache.ignite</groupId> + <artifactId>ignite-spring-ignite</artifactId> + <version>${ignite.version}</version> +</dependency> + +<dependency> + <groupId>org.apache.ignite</groupId> + <artifactId>spring-boot-ignite-client-autoconfigure</artifactId> + <version>${ignite.version}</version> +</dependency> + + +---- +-- + +Replace `${ignite.version}` with an actual version of Apache Ignite dependencies you are interested in, respectively. + +== Application Configuration + +You should provide the following properties to the Spring application: + +ignite.client.addresses=${ignite.address} +spring.datasource.url=${ignite.jdbc.connectionString} +spring.datasource.driver-class-name=org.apache.ignite.jdbc.IgniteJdbcDriver + +Replace `${ignite.address}` with ignite host and port. For example, `localhost:10800`. Replace ${ignite.jdbc.connectionString} with actual +JDBC connection string, for example `jdbc:ignite:thin://localhost`. + +Example of application.properties file: Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org