Springboot reports an error After adding the import annotation: application failed to start

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: