用ShiroUtils.getUserId();获取的时候空指针

提问 1 805
嘉轩
嘉轩 2021-04-08
用浏览器输入的时候返回的空指针
回帖
  • 嘉轩
    嘉轩 (楼主)
    2021-04-08
    [pre] 11:00:52 [SimpleAsyncTaskExecutor-1] DEBUG com.jiubang.common.dao.LogDao.save - ==> Parameters: null, null, error(String), null, http://localhost:8060/sys/user/existUser(String), java.lang.NullPointerException(String), null, 2021-04-08 11:00:51.997(Timestamp) 11:00:52 [SimpleAsyncTaskExecutor-1] DEBUG com.jiubang.common.dao.LogDao.save - <== Updates: 1 11:00:55 [http-nio-8060-exec-4] INFO c.jiubang.common.aspect.WebLogAspect - 请求地址 : http://localhost:8060/sys/user/existUser 11:00:55 [http-nio-8060-exec-4] INFO c.jiubang.common.aspect.WebLogAspect - HTTP METHOD : POST 11:00:55 [http-nio-8060-exec-4] INFO c.jiubang.common.aspect.WebLogAspect - CLASS_METHOD : com.jiubang.system.controller.UserController.existUser 11:00:55 [http-nio-8060-exec-4] INFO c.jiubang.common.aspect.WebLogAspect - 参数 : [17635363830, 1, 1] 11:02:27 [MessageBroker-1] INFO o.s.w.s.c.WebSocketMessageBrokerStats - WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 2, active threads = 1, queued tasks = 1, completed tasks = 0] 11:12:38 [http-nio-8060-exec-4] ERROR c.j.c.exception.BDExceptionHandler - null java.lang.NullPointerException: null [/pre]
    1 回复