How to assign custom document IDs in Spring Data MongoDB

April 14, 2017 · 4 min read – Last updated on March 9, 2019
When using Spring Data MongoDB IDs can be automatically generated for documents provided that you’re using an ObjectId, String or BigInteger as the underlying type.

How to avoid slowdown when using Groovy-based @Transactional components

April 7, 2017 · 5 min read – Last updated on October 27, 2019
During the investigation of a slowdown in a back-end Spring application, I found an interesting side-effect of using class-level @Transactional annotations on Groovy-based services.

How to post JSON-serialized form data with RestTemplate

March 31, 2017 · 4 min read – Last updated on December 8, 2018
RestTemplate is often used for consuming RESTful web services from Spring applications.
← Prev
Page 5 of 5
Next →