programmer group

Validation in javax

Today, I studied how @ Size @NotNull is used. Use simple summary Use @ Size, etc. on properties If the attribute is encapsulated again, you need to add @ Valid annotation before the encapsulated class (when it is a parameter in the method). Use the @ Validated annotation on the method class of the way you want to validate. If the validation requirements are not met, a ConstraintViolationException exception is thrown. We can...

programmer group

Analysis and use of the log related parameters of OpenJDK 11 JVM

OpenJDK 11 is the first long-term support version after OpenJDK 8. This version has changed a lot in JVM log configuration, mainly standardization and unification. In OpenJDK 8, there are many status bits in the log configuration, which is confusing and difficult to maintain and further iterate. In OpenJDK 11, the JVM log related configuration is finally standardized and unified. This article will make a basic explanation and analysis...