The main class: SimpleWebFrameworkApplication
In any modern framework, there's always a class responsible for starting the entire application lifecycle. In the case of SimpleWebFramework, this responsibility falls to the SimpleWebFrameworkApplication class. It's the starting point, the core that performs the initial configuration, discovery, and registration of the application's components, as well as starting the embedded web server that will serve HTTP requests.
The purpose of this class is to reproduce, in a didactic way, the behavior found in enterprise frameworks like Spring Boot, which uses the embedded server concept – that is, an HTTP server integrated into the project itself, eliminating the need for external configuration and installation. This approach represents a significant departure from the traditional Java EE deployment model, in which applications were packaged in WAR files and deployed to independent servers, such as Tomcat or WildFly. In SimpleWebFramework...