Thoughts, stories and ideas.
aldora
  • Home
  • Converter
  • About
  • Archive
Subscribe
Java

@Async Exception Handling in Spring

Aldora Lee

Dec 28, 2022

Override method getAsyncUncaughtExceptionHandler in AsyncConfigurer could custom exception handling for @Async.

Source: @Async Exception handling Spring Boot

Read next

Maven Private/Multiple Repository Setup

If your Java project has a private Maven repository, or you have multiple Maven repositories, you need to additionally set up the repository info, otherwise you won't successfully get the dependencies or plugins, and see the following error message: Could not find artifact xxxx in central(https://repo.maven.apache.
Aldora Lee Dec 28, 2022

Spring Annotation @Validated and @Valid

@Validated @Valid mark a member attribute for validation ✖️ ✅ group-level validation ✅ ️ ✖️ mark request parameter for validation ✅ ✅ Example 1 Example 2 This note borrows code from Differences in @Valid and @Validated Annotations in Spring
Aldora Lee Oct 25, 2022

Java: Why You See the "Unhandled exception" Warning

Sometimes you would see such warning msg like the above in your Intellij, this means you need to handle the exception: add exception to method signature, or surround with try/catch. But why you can throw some exceptions without these handling, and why you can't throw some? The key is
Aldora Lee Oct 23, 2022

Subscribe to aldora

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
aldora © 2023. Powered by Ghost