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:
- After asynchronous file import and springboot multipartfile upload, the @async asynchronous processing reports an error: nosuchfileexception
- Spring project import @Resource Annotation Error [How to Solve]
- Springboot reports an error whitelabel error page
- [Solved] Springboot Project Start Error: An attempt was made to call the method com.google.common.collect.Multimaps.asMap
- The @value annotation of springboot adds the default value to solve the startup error caused by the non-existent key
- SpringBoot Startup Error: Failed to start component [Connector[HTTP/1.1-8080]]
- [Solved] Springboot integrate swagger error: failed to start bean ‘documentationpluginsbootstrapper‘
- Springboot Integrate Swagger2 Error: Failed to start bean ‘documentationPluginsBootstrapper‘;
- [Solved] Springboot integrate swagger error: Failed to start bean ‘documentationPluginsBootstrapper‘
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- [Solved] SpringBoot Startup Error: Description:Web server failed to start. Port 9090 was already in use.(win10)
- Springboot integrates Redis annotation and access error: java.io.NotSerializableException: com.demo.entity.MemberEntity
- SpringBoot Project Run Page Error: Whitelabel Error Page This application has no explicit mapping for /error
- [Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil
- [Solved] SpringBoot Startup Error: Unable to start LiveReload server
- [Solved] SpringBoot Error: This application has no explicit mapping for /error,so you are seeing this as a fallback
- Zuul Gateway Failed to Import Dependency [How to Solve]
- [Solved] Annotation Customize Error: ElementType cannot be resolved to a variable
- [Solved] Tomcat Startup Error: A child container failed during start、LifecycleException: Failed to start component
- Mybatis reports an error (error building sqlsession.) when using annotations without deleting redundant files