![Don’t fear the main(). Over the years, we](https://log4dev.com/articles/don-t-fear-the-main-over-the-years-we-61/4d0622fc95fd9aa828a5309155f25b6dbde6d6991c6f83ed46032c90050d26c874c9f087d1e055f14a1effc11e1b41b64232c9e10cf73f2c743b857f7c25dea8.jpeg)
Don’t fear the main(). Over the years, we
Over the years, we — the Java/JVM community — have developed a fear of writing public static void main(...) by hand. We either managed to get rid of it completely by using application servers, or limited it to a crippled form when using Dependency Injection frameworks like Guice or Spring . Is it the right way to go? On the contrary. The main() method — following the dictionary definition — is, or rather should be, the “chief in size, extent, or importance; principal; leading” method of our program (well, maybe not in size!...