Tagged articles
spring-data
24 articles · Page 1 of 1
The article explains how the traditional find‑by‑id‑then‑save pattern causes two database round‑trips and concurrency bugs, and shows that Spring Data 4.1’s single‑statement Upsert (JdbcAggregateTemplate.upsert) lets the database decide INSERT or UPDATE in one SQL, reducing latency and race conditions while outlining its limitations and ideal use cases.
ConcurrencyJDBCSpring Boot
0 likes · 13 min read

The article explains the concept of software scaffolding, why it is essential for reuse, DRY, and open‑closed principles, presents a case study comparing a custom persistence layer with Spring Data, and surveys popular scaffolds such as Vue, Maven, Netty, Java EE, Dropwizard and Spring Boot.
MavenSpring BootVue
0 likes · 12 min read

Spring Data AOT in Spring Boot 4 moves all repository parsing, reflection and query generation to compile time, dramatically cutting startup time, reducing memory and Metaspace usage, enabling compile‑time SQL validation, simplifying GraalVM native‑image configuration, and providing measurable performance gains backed by real‑world benchmarks.
AOTGraalVMJava
0 likes · 17 min read

This article explains how to integrate MongoDB into a Spring Boot application, covering suitable use cases, environment setup, core dependencies, configuration, entity mapping, CRUD operations via MongoRepository and MongoTemplate, indexing, performance considerations, and a concise comparison with MySQL.
JavaMongoDBMongoRepository
0 likes · 10 min read

Spring Data AOT (Ahead‑of‑Time) repositories move reflection, method‑name parsing, JPQL generation and proxy creation from runtime to build time, dramatically speeding up Spring Boot 4 application startup, reducing memory usage, and surfacing configuration errors early in the compilation phase.
AOTBackendJava
0 likes · 8 min read

Spring Data AOT Repositories, introduced in Spring Boot 4, move repository parsing and query generation from runtime to compile time, dramatically reducing startup time, memory usage, and enabling early detection of method‑name or JPQL errors for large Java backend applications.
AOTBackendJava
0 likes · 6 min read

The article explains how the SpringBoot @PageableDefault annotation automatically provides default pagination parameters, reducing boilerplate code, improving readability, and offering flexible control for various query endpoints in Java backend development.
BackendJavaPagination
0 likes · 6 min read

Learn how to seamlessly integrate Spring Data Redis Repositories in a Spring Boot 2.7 environment, covering object mapping, CRUD operations, indexing with @Indexed, query‑by‑example, batch saves, and setting expiration using @TimeToLive, complete with code examples and visual data representations.
CRUDIndexingRedis
0 likes · 8 min read

This article explains ElasticSearch’s role in modern applications, compares its clients, shows how to configure RestHighLevelClient in Spring Boot, and details the four Spring Data Elasticsearch Operations interfaces with code examples for building queries using CriteriaQuery, StringQuery, and NativeSearchQuery.
JavaSpring Bootsearch
0 likes · 13 min read

This article explains how to use Spring Data Querydsl to parse and execute flexible, type‑safe dynamic queries, covering request definition, Google‑like and field‑specific query formats, integration with Spring repositories, predicate building, boolean expression handling, and challenges when querying nested collections.
Dynamic QueryJavaPredicate
0 likes · 19 min read

This tutorial demonstrates how to set up Elasticsearch 7.6 with the IK analyzer, import Spring Data Elasticsearch dependencies, configure connection beans, define entity and repository classes, and implement CRUD, pagination, and highlighted search operations in a Spring Boot application.
ElasticsearchJavaSpring Boot
0 likes · 7 min read

This tutorial demonstrates how to set up Elasticsearch 7.6 with the IK analyzer in a Spring Boot 2.3 project, import the appropriate Spring Data Elasticsearch dependency, configure the client, define indexed entity classes, create repository interfaces, and implement REST controllers for CRUD, pagination, and highlighted search queries, complete with code examples and test results.
ElasticsearchJavaREST
0 likes · 9 min read

This article explains how to parse user‑defined query strings and convert them into type‑safe Spring Data Querydsl predicates, covering query patterns, code examples, dynamic query building, and handling complex parent‑child relationships in backend services.
Dynamic QueriesJavaPredicate
0 likes · 19 min read

This guide walks through configuring custom and multiple data sources, using Spring Data repositories, fine‑tuning JPA and Hibernate settings, customizing naming strategies, enabling second‑level caching, and exposing repositories as REST endpoints in a Spring Boot 2.4.13 application.
HibernateJPASpring Boot
0 likes · 10 min read

Microservice architecture introduces complexity, but using scaffolding tools such as Spring Boot and Spring Data lets developers focus on business logic by providing reusable components, reducing duplication, and simplifying data access, while avoiding the pitfalls of building custom persistence layers from scratch.
Spring Bootbackend developmentmicroservices
0 likes · 12 min read

The article explains the concept of software scaffolding, why it is needed for microservice development, outlines key design principles, shares a real‑world case of replacing a custom persistence layer with Spring Data, and reviews popular scaffolding tools such as Vue CLI, Maven, Netty, Java EE, Dropwizard and Spring Boot.
Spring Bootbackend developmentmicroservices
0 likes · 11 min read

This tutorial explains how to set up a single‑node Elasticsearch instance with Docker, integrate it into a Spring Boot application using Spring Data Elasticsearch Repositories, configure the necessary dependencies and settings, and perform basic CRUD operations and visualization with Kibana.
DockerJavaSpring Boot
0 likes · 9 min read


21CTOJun 10, 2021 · Databases
An in‑depth comparison of popular Java DAO frameworks—including JDBC, JOOQ, MyBatis, Hibernate, and Spring Data—covers their core concepts, code examples, ideal use cases, and limitations, helping developers choose the most suitable data‑access layer for their projects.
DAOHibernateJDBC
0 likes · 7 min read

This tutorial walks you through upgrading Spring Boot, introduces MongoDB basics, and provides a hands‑by‑step guide to adding the spring‑boot‑starter‑data‑mongodb dependency, defining entity and repository classes, writing unit tests, and configuring connection properties for robust backend data management.
JavaMongoDBSpring Boot
0 likes · 8 min read

The October 2020 Spring Data Ockham (2020.0.0) release introduces a new version‑naming scheme, updates to Spring Data Neo4j, JDBC, R2DBC, Redis, adds RxJava 3 and De‑lombok support, and outlines compatibility notes for Spring Boot 2.4 and Neo4j users.
JavaNeo4jOckham
0 likes · 3 min read

This tutorial walks through integrating MongoDB into a Spring Boot mall project, covering installation, configuration, Spring Data MongoDB usage, defining document and repository classes, implementing service and controller layers, and testing CRUD operations for product browsing records.
BackendMongoDBProduct Browsing
0 likes · 13 min read

This guide walks through installing Elasticsearch and Kibana, configuring a Chinese analyzer, defining Spring Data Elasticsearch annotations, creating repository and service layers, building a REST controller, and testing product search functionality within a Spring Boot mall application.
ElasticsearchJavaSpring Boot
0 likes · 14 min read

The article explains how Spring Data provides a unified, Spring‑compatible data‑access layer for relational and NoSQL stores, illustrates its features and typical use cases, and walks through a practical Spring Data Elasticsearch integration—including configuration, entity and repository definitions—and details the dynamic proxy loading mechanism behind Spring Data repositories.
BackendElasticsearchJava
0 likes · 14 min read

This article compiles a curated list of Spring Data tutorials covering core JPA configuration, method inheritance, query creation, named queries, @Query usage, sorting, as well as Elasticsearch architecture, overview, basic and practical examples, all sourced from the Spring4All community.
ElasticsearchJPAJava
0 likes · 3 min read
