Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Spring MVC and MySql

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 22
    Comment on it

    Repository Class using Spring MVC

    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:

    1. mysql-connector-java-5.0.5.jar
    2. spring-core.xxx.jar
    3. spring-aop.xxx.jar
    4. spring-jdbc.xxx.jar

      OR you can use the following POM.XML -

    Spring-MVC and mysql

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: