Validator

Perform unified verification on POJO based on AOP, and provide common field verification annotations.

<dependency>
    <groupId>com.lodsve.boot</groupId>
    <artifactId>lodsve-boot-starter-validator</artifactId>
</dependency>
@ValidateEntity
public class CreateUserForm {
    @Mobile
    private String mobile;
}

When validation fails, it should be converted into a unified error response at the web layer to avoid exposing the internal stack to the client.

Architecture diagram