1. DTOs are the data structures used to transform the background data structure (JavaBean) into a user-friendly representation, while at the same time preventing the potential danger of back-office traffic being delivered directly to the foreground.
2. The converter interface provided by the Springbot framework can be used: Org.springframework.core.convert.converter.Converter, to implement conversion of entity classes and DTOs
3. DTOs are reasonable allocations should be: an entity corresponds to two dtos, 01. The DTO for the list listing page is for display only, and the DTO for the 02 newly edited page has a more complete and entity-like data structure used to store the foreground
4. When you need to use another entity for the current page, first use the other person's existing DTO
5. The conveter of DTOs should include 2, dto-entity, entity-dto
How to use DTOs in spring, and the relationship between DTOs and entity