how to update existing data as well insert new data in mongodb using spring booot api code example
Example: spring boot mongo crud repository application properties
# Application configuration.
server.port=8102
# Local mongodb configuration.
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=ducat-assignment