Spring Data MongoDB
版本
2.2.1.RELEASE
语言
English
中文
返回目录
Preface
1. Learning Spring
2. Learning NoSQL and Document databases
3. Requirements
4. Additional Help Resources
5. Following Development
6. New & Noteworthy
6.1. What’s New in Spring Data MongoDB 2.2
6.2. What’s New in Spring Data MongoDB 2.1
6.3. What’s New in Spring Data MongoDB 2.0
6.4. What’s New in Spring Data MongoDB 1.10
6.5. What’s New in Spring Data MongoDB 1.9
6.6. What’s New in Spring Data MongoDB 1.8
6.7. What’s New in Spring Data MongoDB 1.7
7. Dependencies
7.1. Dependency Management with Spring Boot
7.2. Spring Framework
8. Working with Spring Data Repositories
8.1. Core concepts
8.2. Query methods
8.3. Defining Repository Interfaces
8.3.1. Fine-tuning Repository Definition
8.3.2. Using Repositories with Multiple Spring Data Modules
8.4. Defining Query Methods
8.4.1. Query Lookup Strategies
8.4.2. Query Creation
8.4.3. Property Expressions
8.4.4. Special parameter handling
Paging and Sorting
8.4.5. Limiting Query Results
8.4.6. Repository Methods Returning Collections or Iterables
Using Streamable as Query Method Return Type
Returning Custom Streamable Wrapper Types
Support for Vavr Collections
8.4.7. Null Handling of Repository Methods
Nullability Annotations
Nullability in Kotlin-based Repositories
8.4.8. Streaming query results
8.4.9. Async query results
8.5. Creating Repository Instances
8.5.1. XML configuration
Using filters
8.5.2. JavaConfig
8.5.3. Standalone usage
8.6. Custom Implementations for Spring Data Repositories
8.6.1. Customizing Individual Repositories
Configuration
8.6.2. Customize the Base Repository
8.7. Publishing Events from Aggregate Roots
8.8. Spring Data Extensions
8.8.1. Querydsl Extension
8.8.2. Web support
Basic Web Support
Hypermedia Support for Pageables
Web Databinding Support
Querydsl Web Support
8.8.3. Repository Populators
Reference Documentation
9. Introduction
9.1. Document Structure
10. MongoDB support
10.1. Getting Started
10.2. Examples Repository
10.3. Connecting to MongoDB with Spring
10.3.1. Registering a Mongo Instance by using Java-based Metadata
10.3.2. Registering a Mongo Instance by Using XML-based Metadata
10.3.3. The MongoDbFactory Interface
10.3.4. Registering a MongoDbFactory Instance by Using Java-based Metadata
10.3.5. Registering a MongoDbFactory Instance by Using XML-based Metadata
10.4. Introduction to MongoTemplate
10.4.1. Instantiating MongoTemplate
10.4.2. WriteResultChecking Policy
10.4.3. WriteConcern
10.4.4. WriteConcernResolver
10.5. Saving, Updating, and Removing Documents
10.5.1. How the _id Field is Handled in the Mapping Layer
10.5.2. Type Mapping
Customizing Type Mapping
Configuring Custom Type Mapping
10.5.3. Methods for Saving and Inserting Documents
Into Which Collection Are My Documents Saved?
Inserting or Saving Individual Objects
Inserting Several Objects in a Batch
10.5.4. Updating Documents in a Collection
Methods for Executing Updates for Documents
Methods in the Update Class
10.5.5. “Upserting” Documents in a Collection
10.5.6. Finding and Upserting Documents in a Collection
10.5.7. Finding and Replacing Documents
10.5.8. Methods for Removing Documents
10.5.9. Optimistic Locking
10.6. Querying Documents
10.6.1. Querying Documents in a Collection
Methods for the Criteria Class
Methods for the Query class
10.6.2. Methods for Querying for Documents
10.6.3. Query Distinct Values
10.6.4. GeoSpatial Queries
Geo-near Queries
10.6.5. GeoJSON Support
GeoJSON Types in Domain Classes
GeoJSON Types in Repository Query Methods
Metrics and Distance calculation
10.6.6. Full-text Queries
Full-text Search
10.6.7. Collations
JSON Schema
10.6.8. JSON Schema
10.6.9. Fluent Template API
10.6.10. Type-safe Queries for Kotlin
10.6.11. Additional Query Options
10.7. Query by Example
10.7.1. Introduction
10.7.2. Usage
10.7.3. Example Matchers
10.7.4. Running an Example
10.7.5. Untyped Example
10.8. Map-Reduce Operations
10.8.1. Example Usage
10.9. Script Operations
10.10. Group Operations
10.10.1. Example Usage
10.11. Aggregation Framework Support
10.11.1. Basic Concepts
10.11.2. Supported Aggregation Operations
10.11.3. Projection Expressions
10.11.4. Faceted Classification
Buckets
Multi-faceted Aggregation
Sort By Count
Spring Expression Support in Projection Expressions
Aggregation Framework Examples
10.11.5. Custom Conversions - Overriding Default Mapping
Saving by Using a Registered Spring Converter
Reading by Using a Spring Converter
Registering Spring Converters with the MongoConverter
Converter Disambiguation
10.12. Index and Collection Management
10.12.1. Methods for Creating an Index
10.12.2. Accessing Index Information
10.12.3. Methods for Working with a Collection
10.13. Executing Commands
10.13.1. Methods for executing commands
10.14. Lifecycle Events
10.15. Entity Callbacks
10.15.1. Implementing Entity Callbacks
10.15.2. Registering Entity Callbacks
10.15.3. Store specific EntityCallbacks
10.16. Exception Translation
10.17. Execution Callbacks
10.18. GridFS Support
10.19. Infinite Streams with Tailable Cursors
10.19.1. Tailable Cursors with MessageListener
10.19.2. Reactive Tailable Cursors
10.20. Change Streams
10.20.1. Change Streams with MessageListener
10.20.2. Reactive Change Streams
10.20.3. Resuming Change Streams
11. MongoDB Sessions
11.1. Synchronous ClientSession support.
11.2. Reactive ClientSession support
12. MongoDB Transactions
12.1. Transactions with TransactionTemplate
12.2. Transactions with MongoTransactionManager
12.3. Reactive Transactions
12.4. Transactions with TransactionalOperator
12.5. Transactions with ReactiveMongoTransactionManager
12.6. Special behavior inside transactions
13. Reactive MongoDB support
13.1. Getting Started
13.2. Connecting to MongoDB with Spring and the Reactive Streams Driver
13.2.1. Registering a MongoClient Instance Using Java-based Metadata
13.2.2. The ReactiveMongoDatabaseFactory Interface
13.2.3. Registering a ReactiveMongoDatabaseFactory Instance by Using Java-based Metadata
13.3. Introduction to ReactiveMongoTemplate
13.3.1. Instantiating ReactiveMongoTemplate
13.3.2. WriteResultChecking Policy
13.3.3. WriteConcern
13.3.4. WriteConcernResolver
13.4. Saving, Updating, and Removing Documents
13.5. Execution Callbacks
13.6. GridFS Support
14. MongoDB Repositories
14.1. Introduction
14.2. Usage
14.3. Query Methods
14.3.1. Repository Delete Queries
14.3.2. Geo-spatial Repository Queries
Geo-near Queries
14.3.3. MongoDB JSON-based Query Methods and Field Restriction
14.3.4. Sorting Query Method results
14.3.5. JSON-based Queries with SpEL Expressions
14.3.6. Type-safe Query Methods
14.3.7. Full-text Search Queries
14.3.8. Projections
Interface-based Projections
Class-based Projections (DTOs)
Dynamic Projections
14.3.9. Aggregation Repository Methods
14.4. CDI Integration
15. Reactive MongoDB repositories
15.1. Reactive Composition Libraries
15.2. Usage
15.3. Features
15.3.1. Geo-spatial Repository Queries
Geo-near Queries
15.3.2. Type-safe Query Methods
16. Auditing
16.1. Basics
16.1.1. Annotation-based Auditing Metadata
16.1.2. Interface-based Auditing Metadata
16.1.3. AuditorAware
16.2. General Auditing Configuration for MongoDB
17. Mapping
17.1. Object Mapping Fundamentals
17.1.1. Object creation
17.1.2. Property population
17.1.3. General recommendations
17.1.4. Kotlin support
Kotlin object creation
Property population of Kotlin data classes
17.2. Convention-based Mapping
17.2.1. How the _id field is handled in the mapping layer.
17.3. Data Mapping and Type Conversion
17.4. Mapping Configuration
17.5. Metadata-based Mapping
17.5.1. Mapping Annotation Overview
17.5.2. Customized Object Construction
17.5.3. Compound Indexes
17.5.4. Hashed Indexes
17.5.5. Text Indexes
17.5.6. Using DBRefs
17.5.7. Mapping Framework Events
17.5.8. Overriding Mapping with Explicit Converters
18. Kotlin Support
18.1. Requirements
18.2. Null Safety
18.3. Object Mapping
18.4. Extensions
18.5. Coroutines
18.5.1. Dependencies
18.5.2. How Reactive translates to Coroutines?
19. Cross Store Support
19.1. Cross Store Configuration
19.2. Writing the Cross Store Application
20. JMX support
20.1. MongoDB JMX Configuration
21. MongoDB 3.0 Support
21.1. Using Spring Data MongoDB with MongoDB 3.0
21.1.1. Configuration Options
21.1.2. WriteConcern and WriteConcernChecking
21.1.3. Authentication
21.1.4. Server-side Validation
JSON Schema Validation
Query Expression Validation
21.1.5. Miscellaneous Details
Appendix
Appendix A: Namespace reference
The <repositories /> Element
Appendix B: Populators namespace reference
The <populator /> element
Appendix C: Repository query keywords
Supported query keywords
Appendix D: Repository query return types
Supported Query Return Types
中文
English
A
A
Serif
Sans
White
Sepia
Night
首页
API Docs
工具
首页
API Docs
工具
Name
Spring Data MongoDB
Version
2.2.1.RELEASE
Language
English
中文
Badge
Last Updated
2021-07-03T12:24:36