Maven and Spring Client Application using setter injection

Client/Standalone applications are possible with Spring framework and maven build tool. After this article you are getting knowledge about, how to integrate Spring IOC module with maven and use of Spring IOC framework in standalone applications.
If you are new for Maven build tool, please refer my previous article and create a java standalone project.

        Step-1: Creating my-beans.xml file in src/main/resources directory.
        Step-2: Creating Bean class in com.gurugubellitech.bean directory.
        Step-3: Creating TestApp class in com.gurugubellitech.client directory.
        Step-4: Adding required maven dependencies in pom.xml.
        Step-5: Output of the Application.

Step-1: Creating my-beans.xml file in src/main/resources directory:

my-beans.xml:

Step-2: Creating Bean class in com.gurugubellitech.bean directory:

Employee.java:

Step-3: Creating TestApp class in com.gurugubellitech.client directory:

TestApp.java:

Step-4: Adding required maven dependencies in pom.xml:

pom.xml:

Step-5: Output of the Application:

======= Tech Developer Details =======
Employee ID :  Emp1234
First Name :  Gurugubelli
Last Name :  Technologies
Dept NO :  Tech Developer
Dept Name :  Tech Developer

=======  Tech Tester Details   =======
Employee ID :  Emp1235
First Name :  Technologies
Last Name :  Gurugubelli
Dept NO :  Dept02
Dept Name :  Tech Tester




Maven and Spring Client Application using setter injection Maven and Spring Client Application using setter injection Reviewed by Gurugubelli Technologies on November 30, 2017 Rating: 5

4 comments:

  1. Thanks for sharing i would you like to more updates.
    DevOps Online Training

    ReplyDelete
  2. After reading this web site I am very satisfied simply because this site is providing comprehensive knowledge for you to audience.Really very happy to say, your post is very interesting to read.
    DevOps Training in Chennai

    DevOps Online Training in Chennai

    DevOps Training in Bangalore

    DevOps Training in Hyderabad

    DevOps Training in Coimbatore

    DevOps Training

    DevOps Online Training

    ReplyDelete
  3. Good post and informative. Thank you very much for sharing this good article, it was so good to read and useful to improve my knowledge as updated, keep blogging. This article is very much helpful and i hope this will be an useful information for the needed one.Keep on updating these kinds of informative things.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore

    ReplyDelete

Powered by Blogger.