I'm trying to understand Spring Boot and building Rest APIs.
I've seen some projects which is creates their own Converter class or which is using modelMapper. But I couldn't clearly get the main idea.
Why do we have to convert entities to DTOs? I could'nt find a lot of docs about it. Can you help me?
I've found two different things for mapping.
mapstruct and modelmapper. Which one should i use?