@GetMapping("/test")
public WebAsyncTask<UserEntity> userMerge(Integer userId) {
......
webAsyncTask.onError(() -> {
System.out.println("test");
});
}
When I use spring-boot-starter-parent 2.2.6.RELEASE, I can call webAsyncTask.onError();
The callback cannot be performed from spring-boot-starter-parent 2.2.7.RELEASE to spring-boot-starter-parent 3.1.9.
Starting with spring-boot-starter-parent 3.1.10, it can be called again.
I looked at the source code and found that the version that does not perform the exception callback is because errorHandlingInProgress in WebAsyncManager.java skips the exception callback when ErrorHandlinginProgress is true.
I can’t change the version of spring-boot-starter-parent right now, is that a bug? Or am I using it wrong?
叶贤慈 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1