解决方法:问题出在以某种方式修改了代理中的返回值的环绕式方面。对于这个无法回答的问题,很抱歉。也许有人会认识到我的错误。并感谢你的有用的答案!这只是一个例子。SpringApplication.java:1215)
at com....Application.main(..Application.java
根据实体需要保存的时间,由于是在请求处理后删除的,并且jobLauncher.run(...)异步返回,因此AuditorAwareImpl.getCurrentAuditor()方法将抛出一个NullPointerException,原因是getAuthentication()为空。java.lang.NullPointerException: null
at com.example.services.AuditorAwareImpl.getCurrentAuditor(Aud
times, most recent failure: Lost task 0.0 in stage 8.0 (TID 5) (xps-13-9310 executor driver): java.lang.NullPointerExceptionjava.lang.Thread.run(Thread.java:833)[ERROR] Exception in task 0.0 in stage 8.0 (TID 5)[WARN] L