What are some things and language features you use to reduce writing/time spent on boilerplate?

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?
Was this page helpful?