Spring boot does not take effect when using @ size to verify a single set parameter of the control layer
1. Problem description
In the figure below, there is a type of
List & lt; String> Code> method parameter, when using
@ size
to mark the verification quantity, it is found that no exception is thrown
2. Solution
You need to add the @ validated
annotation on the control class, and restart the project
Read More:
- Copying a param with shape torch. Size ([262, 2048]), parameter size does not match
- Spring boot problem 1: error reporting life processing instructions for building a spring boot project
- Spring boot prompt could not resolve placeholder in string value
- Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0:repackage failed
- Using code to create control objects, set the event listening method does not execute
- Latex bracket size control
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- spring boot Whitelabel Error Page
- Spring boot can’t scan XML (invalid bound statement (not found))
- Spring boot thymeleaf crud implements simple functions of adding, deleting, modifying and querying
- Solution to the problem of spring boot running test class error creating bean with name ‘serverendpoint exporter’ defined
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- When using CSS to write the registration page, we found that the editing effect is not effective
- Spring boot integrates Mongo to solve some common connection and permission problems. Docker compose installs Mongo
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- The spring boot project directly replaces the referenced jar package
- Centos-7 set boot to enter the text interface (not enter the graphical interface)
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- How do you set, clear and toggle a single bit in C?
- spring boot-beans in application context form a cycle