I've been working on a greenfield project lately and noticing how tedious it is to create entities, domain models, request/response objects, dtos, when they're all really just pojos. There are also other things that are redundant/boilerplate like.
I'm wondering what new language features, libraries, and other things you add into your coding to reduce time spent on writing boilerplate?