# validator **Repository Path**: fvck_u_admin/validator ## Basic Information - **Project Name**: validator - **Description**: Springboot 实体校验框架 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-06-24 - **Last Updated**: 2024-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # validator #### 介绍 Springboot 实体校验框架 #### 软件架构 软件架构说明 #### 使用说明 可将代码打包到本地私有maven仓库 ``` class Demo{ public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public String getZdd() { return zdd; } public void setZdd(String zdd) { this.zdd = zdd; } @StrNotNullSize(min=1,max=3,message = "名称不在{min}-{max}字符数之间") private String customerName; @StrNotNullSize(min=1,max=3,message = "名称不在{min}-{max}字符数之间") private String zdd; } public class Main { public static void main(String[] args) { Demo demo=new Demo(); demo.setCustomerName("3345"); demo.setZdd("zxcxzc"); Map validate = ValidatorUtils.validate(demo); System.out.println(validate); } } ```