The reason is that the import annotation calls a parameterless constructor, while my user class does not have a parameterless constructor, so an error is reported.
Problem solved after adding.
Read More:
- How to Solve the Primary Key of mybatisPlus Inserted Data is too Large Issue
- [Solved] IDEA JPA Custome Query Error: Can‘t resolve symbol ‘Type‘
- JAXBContext.newInstance ERROR 1 counts of IllegalAnnotationException [How to Solve]
- [Solved] Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments
- SpringBoot Project Run Page Error: Whitelabel Error Page This application has no explicit mapping for /error
- Spring Error: Transaction synchronization is not active
- SpringCloud Use openFeign Multipartfile to Upload Files Error: Current request is not a multipart request
- Spring project import @Resource Annotation Error [How to Solve]
- Springboot controls the startup of rabbitmq through configuration files
- [How to Fix]Spring 3.0 could not find acceptable representation
- How to convert a Java string into a number (stringtonumber)
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx‘
- [Solved] JSON parse error: Cannot construct instance of
- Asynchronous processing of HTTP request by Java_ Method 1: through callable
- Springboot uses Oracle database to report property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required
- [Solved] Idea Build error. The symbol — Lombok cannot be found
- [Solved] Annotation Customize Error: ElementType cannot be resolved to a variable
- [Solved] BeanCreationNotAllowedException:Error creating bean with name ‘rabbitConnectionFactory‘:
- How to Solve Junit Unit Test Error: “No runnable methods“
- Code case of XXL job executor