SpringBoot Project Run Page Error: Whitelabel Error Page This application has no explicit mapping for /error

Record a super speechless error…

The error reported after running the project is as follows:
the reason is that the annotation in the controller class is written as @ controller

but this is automatically generated by mybatis plus for me…

The final solution is to change the @controller annotation to @restcontroller.

Read More: