解决未使用groups报错
parent
2b4c187dc3
commit
85d62e2f13
11
pom.xml
11
pom.xml
|
@ -172,6 +172,17 @@
|
||||||
<artifactId>swagger-annotations-jakarta</artifactId>
|
<artifactId>swagger-annotations-jakarta</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.dtflys.forest</groupId>
|
||||||
|
<artifactId>forest-spring-boot3-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.muyu</groupId>
|
||||||
|
<artifactId>cloud-common-nacos-remote</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.common.core.text;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.muyu.common.core.utils.StringUtils;
|
||||||
|
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
|
@ -11,10 +12,10 @@ import java.nio.charset.StandardCharsets;
|
||||||
* @author muyu
|
* @author muyu
|
||||||
*/
|
*/
|
||||||
public class CharsetKit {
|
public class CharsetKit {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ISO-8859-1
|
* ISO-8859-1
|
||||||
*/
|
*/ public static final String ISO_8859_1 = "ISO-8859-1";
|
||||||
public static final String ISO_8859_1 = "ISO-8859-1";
|
|
||||||
/**
|
/**
|
||||||
* UTF-8
|
* UTF-8
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.muyu.common.core.validation.custom;
|
||||||
import jakarta.validation.Constraint;
|
import jakarta.validation.Constraint;
|
||||||
import jakarta.validation.Payload;
|
import jakarta.validation.Payload;
|
||||||
|
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
@ -12,6 +13,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
@Documented
|
@Documented
|
||||||
@Constraint(validatedBy = {SystemYesNoValidator.class})
|
@Constraint(validatedBy = {SystemYesNoValidator.class})
|
||||||
public @interface IsSystemYesNo {
|
public @interface IsSystemYesNo {
|
||||||
|
|
||||||
String message() default "数据字典:[系统是否] - 参数不合法";
|
String message() default "数据字典:[系统是否] - 参数不合法";
|
||||||
Class<?>[] groups() default { };
|
Class<?>[] groups() default { };
|
||||||
Class<? extends Payload>[] payload() default { };
|
Class<? extends Payload>[] payload() default { };
|
||||||
|
|
Loading…
Reference in New Issue