Skip to main content

MVC + JDBC

Learn MVC + JDBC (Spring MVC + Database, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Spring MVC + JDBC means a controller calls a service, and the service uses JdbcTemplate to run plain SQL against a relational database. JdbcTemplate opens the connection, runs the statement, maps the rows and closes everything, so you write only the SQL and the mapping. Layers : controller handles HTTP, service holds business rules and transactions, repository holds the SQL.

More lessons in Spring MVC + Database