Spring Data MongoDB 3.0.0.RELEASE (by @christophstrobl) introduced a programmatic way to configure the MongoDB UUID representation . See chapter 7.4.2 at https://docs.spring.io/spring-data/mongodb/docs/3.0.0.RELEASE/reference/html/#upgrading.2-3. It would be much more convenient to have a property for this configuration.
Comment From: juergenzimmermann
spring.data.mongodb.uuid-representation
is already available.
Comment From: wilkinsona
Duplicate of #19960.