在实体类User上添加
@Component
注解
Description:
Field user in com.crab.bookol.controller.UserController required a bean of type 'com.crab.bookol.entity.User' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.crab.bookol.entity.User' in your configuration.
最后一行已经给出提示