When working on client-server applications using spring-boot and angular, I often come across resources that explain the process of exposing REST endpoints in spring boot and consuming them in angular with an http client.
The usual approach involves communication in JSON format, requiring the maintenance of DTOs (DataTransferObjects) on both the angular and spring boot sides.
I am curious if those experienced in full-stack development are aware of any alternatives to avoid maintaining separate DTOs on both ends, such as sharing models between the front and backend of the application?