How to run an alternate Java Class in Spring Boot?
Suppose you want to run a Spring Boot application has some classes with main methods that are not annotated with the @SpringBootApplication annotation.
Suppose you want to run a Spring Boot application has some classes with main methods that are not annotated with the @SpringBootApplication annotation.
By default, Java objects are fast to access, but can easily consume a factor of 2-5x more space than the “raw” data inside their fields. This is due to several…
Generally need for this arises for the tools that do not have a GUI for uninstallation. Basically, the tool needs to be uninstalled from these two locations:- /usr/local/bin/<tool name> /usr/local/share/doc/<tool…
Pro’s:- It’s an add on skill. Can get you more salary. You’ll still be a Java developer and continue to code in Java. Additionally u’ll get to know a tool…
Initialising BigInteger using double value is not a good way to go about it because double is not a precise representation of the actual number like 44.34. Below is the…
In case your sources are not loading in IntelliJ with Mac OS Big Sur, try to Invalidate the IDE caches by the File -> Invalidate Caches option:- Then select Invalidate…
Advice is a piece of extremely high reusable code that you don’t want to write everywhere in your code. Advices are applied at multiple places with the help of regex,…
Since Java has inbuilt garbage collector for memory cleanup. Java has finalize method which gets called before an object is garbage collected pretty much similar to C++ destructor. To prevent…
For every method that you call in your thread, it’s like an additional layer that gets added to your thread’s stack. If the total space occupied by these layers exceeds…