#18 Spring MVC JDBC Tutorial in Hindi | Example of Spring with JDBC (Insert)

Công Nghệ



How to use Spring_mvc with Jdbc?
How to insert data in database using spring_mvc ?
………………………………………………………………………………….
If you want its code, then give your email address in the comment box.
………………………………………………………………………………………………………………
Spring JdbcTemplate is a powerful mechanism to connect to the database and execute SQL queries. It internally uses JDBC api, but eliminates a lot of problems of JDBC API.
………………………………………………………………
Problems of JDBC API :-
-The problems of JDBC API are as follows:-

1. We need to write a lot of code before and after executing the query, such as creating connection, statement, closing resultset, connection etc.
2. We need to perform exception handling code on the database logic.
3. We need to handle transaction.
4. Repetition of all these codes from one to another database logic is a time consuming task.
……………………………………………………………..
Advantage of Spring JdbcTemplate
-Spring JdbcTemplate eliminates all the above mentioned problems of JDBC API. It provides you methods to write the queries directly, so it saves a lot of work and time.

#programminggalaxy #springjdbc
#springjdbctutorial #springmvc
#springmvctutorial #springframework
#springframeworktutorial
#springframeworkinjava #springframeworkinhindi

Nguồn: https://bus-rush.info/

Xem thêm bài viết khác: https://bus-rush.info/cong-nghe/

Leave a Reply

Your email address will not be published. Required fields are marked *