/MongoDBSpringBootEncryptionDecryptionPOC

This is a simple Spring Boot POC in which we try to understand how to use MongoDB cascading features provided by Spring Boot, to encrypt data before saving to MongoDB and decrypting it after fetching from MongoDB.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

MongoDB Encryption and Decryption with Spring Boot

This is a simple Spring Boot POC in which we try to understand how to use MongoDB cascading features provided by Spring Boot, to encrypt data before saving to MongoDB and decrypting it after fetching from MongoDB.

Configuration

Change MongoDB connection configuration in the resources/application.properties file. The property is spring.data.mongodb.uri. An example:

spring.data.mongodb.uri=mongodb://localhost:27017/test