SPRING CONCEPTS

Connect Spring to familiar Java concepts

Spring Concepts / Detailed guide

What you already knowSpring equivalentWhat changes
new Service() inside a ServletConstructor injection of a Spring beanThe container constructs and supplies the service.
doGet / doPost@GetMapping / @PostMappingMethods declare the HTTP routes they handle.
request.getParameter@ModelAttribute / @RequestParamSpring binds request inputs into Java values.
request.setAttribute + RequestDispatcher.forwardModel attributes + view nameThe view resolver finds the template.
JSP + JSTLThymeleaf templates + th:* attributesHTML templates are rendered on the server.
Servlet filtersSpring Security filter chainSecurity runs before controller methods.
Manually configuring TomcatBoot embedded TomcatThe web server starts with main().
JDBC DAOMongoRepositoryThe Spring Data proxy supplies document CRUD.

← All Spring Concepts · Learning path

Java 21 · Spring Boot 4.1.1 · Edupoly