The issue with calling jakarta.validation.Validation#buildDefaultValidatorFactory
is that it creates a new instance of ValidatorFactory
every time it is called. This can be inefficient and slow down the application, especially if the method is called frequently. It is better to create a single instance of ValidatorFactory
and reuse it throughout the application.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-11-08 11:00:00 +0000
Seen: 20 times
Last updated: Apr 14 '22
What is the issue with using npm start to launch the node application in Docker?
How can the connectivity issue between Quarkus application and Snowflake be resolved?
Is it possible to globally install System.Data.OleDb?
How to debug NextJS application in VSCode?
Why does the app shut down when switching to the Google Maps section in a Flutter application?
How can an application Manager be put in place to manage the system?
How can a Qt application detect a trigger triggered by a batch script?
How can I execute a React Native application on my Android device?