Posts

Showing posts from September, 2025

Call Sequence of Spring Boot when API call is invoked.

 Please note that this is incomplete and not accurate, and I'm merely jotting down anything that I've found out, as I'm short on time while writing this. When the API is called, the call sequence within the spring boot library is shown below: In the org.springframework:spring.webmvc library, specifically in the RequestMappingHandlerAdapter class, the call sequence:  1) handleInternal method, it will check session.  2) invokeHandlerMethod that I think it will handle the passing of parameter. (Note that this is just an assumption)  3) getDataBinderFactory method, which i think will handle the binding of the value from the parameter into the endpoints parameter request.  4)  createInitBinderMethod method, which i think will make the parameter discoverable.  5) getModelFactory method, which I think will get the list of endpoints registered 6) getSessionAttributesHandler, which handles the cases when session is found or not 7) createInvocable...

Failed to apply plugin Intellij Gradle

Image
 Failed to apply plugin in Intellij Gradle is caused by wrong Java version being used in Gradle. To fix it, go to Settings -> Build, Execution, Deployment  -> Build Tools -> Gradle , find Gradle section, and select the correct Gradle JVM version. The version of JVM used should be compatible with the version of Gradle you are using.  If all still can't work, try the following: - Invalidate cache (Go to File -> Invalidate Cache ) - Delete the global .gradle folder (Located in your Users folder), as well as your project .gradle folder, and run ./gradlew.bat --refresh-dependencies - Ensure the JAVA_HOME and PATH is pointing to the right JDK version. For my case, my project is using Java 11, so the values should reflect.  JAVA_HOME = C:\Program Files\Java\jdk-11.0.8 PATH=C:\Program Files\Java\jdk-11.0.8\bin Note: Also, please make sure that the \ bin is added at the back of the path. If you have multiple Java version installed, please make sure the path...