As we know that Spring Framework is famous for it's loose coupling architecture. Spring provides a annotation called @Repository, it marks the class, and tells container that this class will be used as a Repository class. This Repository class is used only to do database related operations. Repository class decouples the database related code from the business logic. So Repository class deals with the backend operations and also handles the database related exceptions with more informative information.
Repository Class With Mysql DB : As the title describes, we use mysql database to store the records. You can choose any database to store your data, you just need to put that database's related jar to your application's lib.
To use jdbc or Spring JDBC you need following jars in your project lib:
0 Comment(s)