userService没有初始化,肯定为空public void setUserService(UserService userService) { this.userService=userService; }这句话在外边调用过不?没有吧