Newsletter

What Is Spring Framework, Spring Introduction

Spring » on Aug 3, 2011 { 97 Comments } By Sivateja

Let us see what is Spring Framework, and why we need to work with this Spring

  • Spring is a light weight and open source framework created by Rod Johnson in 2003. Spring is a complete and a modular framework, i mean spring framework can be used for all layer implementations for a real time application or spring can be used for the development of particular layer of a real time application unlike struts [ only for front end related ] and hibernate [ only for database related ], but with spring we can develop all layers
  • Spring framework is said to be a non-invasive means it doesn’t force a programmer to extend or implement their class from any predefined class or interface given by Spring API, in struts we used to extend Action Class right that’s why struts is said to be invasive
  • In case of struts framework, it will forces the programmer that, the programmer class must extend from the base class provided by struts API
  • Spring is light weight framework because of its POJO model
  • Spring Framework made J2EE application development little easier, by introducing POJO model

Spring having this much of demand because of the following 3 reasons….

  • Simplicity
  • Testability
  • Loose Coupling

 

Simplicity

Spring framework is simple because as it is non-invasive, POJO and POJI model

 

Testability

Actually for writing the spring application, server [Container] is not mandatory, but for  struts applications we need a server, and for EJB too.  If we want to test the application it may need lot of changes in the source and each time we must restart the server to view the changes, which is little tedious and time taking but we can over come this in Spring, for testing spring application server is not mandatory spring has it own container to run the applications.

Spring can be used to develop any kind of java application, means we can develop starting from console application to enterprise level application

 

Loose Coupling

In spring objects are loosely coupled,  this is the core concept of spring framework we will see in depth about this loose coupling and how its differ from tight coupling

 

​​

You Might Also Like

  ::. About the Author .::

Java4s_Author
Sivateja Kandula - Java/J2EE Full Stack Developer
Founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog, Love Java and UI frameworks.
You can sign-up for the Email Newsletter for your daily dose of Java tutorials.

Comments

97 Responses to “What Is Spring Framework, Spring Introduction”
  1. Anwar says:

    Hi,
    This is very helpfull for java people but can you add spring MVC and spring AOP these concepts are more helpfull for all.

  2. Java4s says:

    @Anwar

    Sure we are working, we will update the remaining topics very soon.

  3. Bikash says:

    Hi,
    this is excellent website to learn spring,hibernate.please add spring MVC and spring AOP and Spring Context.we are waiting….
    thanks
    Bikash

  4. Java4s says:

    @Bikash

    Thank you bikash, we are working on these modules and will post as soon as possible.

  5. Ravi Gaddam says:

    Excellent…try to think about from basic java,servlets and Jsp also…all the best…good luck

  6. Java4s says:

    @Ravi Gaddam

    Thank you Ravi, yeah next articles will be on Servlets and Jsps only 🙂

  7. suresh says:

    this is excellent website to learn spring,hibernate.
    please add AOP,SPRING MVC AND SPRING WITH JDBC

  8. arunkumar says:

    Thanks for such nice post!

  9. java4s says:

    @Arunkumar

    You welcome…!

  10. java4s says:

    @Suresh

    Articles related to Spring JDBC are already posted, pls check once 🙂

    We are working to complete AOP ,MVC

  11. arjun says:

    the best site i have ever seen for spring hibernate.
    thanks java4s.com

  12. Java4s says:

    @arjun

    You welcome, and thanks for your feedback.

  13. radhakrishna says:

    Very good explanation,you know in hyderabad(india) so many tutorials are there for tech java they are fallowig your tutorial.

    all the best.

    Thanks,
    Radhakrishna mulpuri.

  14. Suresh P says:

    Excellent tutorial to learn…. 🙂

  15. Nagachandra Mouli says:

    i read many books..but i get the clarity through this material…very help full to all…but add spring mvc and Aop also..

    thanks
    …………..
    mouli

  16. Java4s says:

    @Radhakrishna,@Suresh,@Nagachandra Mouli

    Thanks for your lovely feedback 🙂
    Yeah we are in a way to complete spring AOP, and then MVC soon.

  17. Utkal says:

    Thanks a lot for you ,because your website helps me,i was not clear anout the Spring,now i got so much of IDEA………………

  18. Java4s says:

    @Utkal

    Got you 🙂 happy to hear that its helped you.

  19. Basker Rao says:

    Hi,
    this is excellent website to learn spring,hibernate.please add spring MVC and spring AOP and Spring Context.
    thanks
    Basker Rao

  20. vijay says:

    nice tutorial…learnt hibernate from this site…cool stuff

  21. Simple and understandable terminology,this is one of the best site for java people i believe. We are looking for spring WEB MVC and remaining modules and WEBSERVICES also.

    Thank you,
    Dhananjay G

  22. chandu says:

    Hi, i am chandra sekhar
    This is very helpfull for java people. but can you add spring MVC and spring AOP these concepts are more helpfull for all. pls add pls

  23. subhash says:

    Hi,
    this is excellent website to learn spring,hibernate.
    thanks
    subhash khot

  24. Satheesh N says:

    Hi,

    Great job!!! This are all very Useful to learn. Keep it up always. Thanks. Very Excellent!.

  25. ganesh says:

    Hi ,
    Its very usefull to learn

  26. preeti says:

    its very good site to learn and more earn…

  27. Veerraju says:

    Hi this is Veerraju, your interduction of Spring is simply Good Who people wants to learn Spring without attending class.

  28. pavan says:

    Hi sir tanq for ur nice posts i have a doubt u said in this post that spring is good support for testing applications because it doesn,t need a server(Actually for writing the spring application, server [Container] is not mandatory) but with out server how a web application can work?

  29. sudheer says:

    Excellent Work ….!!

  30. Dushyant says:

    Excellent work!!!…Keep it up

  31. very good explanation… thanks, keep post new topics.

  32. Bala says:

    Hi,
    this is excellent website to learn spring,hibernate.please add spring MVC

    thanks
    Bala

  33. santhakumar says:

    I got a job by saying this answer in my last interview. thanks for awesome help.

  34. Thank u for giving such a woderful explanation
    You are doing a great job….
    once again thanks alot

  35. Smithc726 says:

    reverse phone lookup cell free I wish to voice my gratitude for your generosity giving support to individuals ggcdggdkfddgekgg

  36. ravi kumar says:

    This is excellent website to learn spring,hibernate.please add spring MVC

  37. pradeeep palai says:

    Good one ..I learn so many thing from this site

  38. awesome website for java developers,,keep on,rock the way,,thanks for providing this site

  39. Ashok says:

    i would like to say thanks to Mr. Sivateja for providing such a kind of easy tutorials even my faculty also explained same example in the class room

  40. Jagadish says:

    Hi

    This is excellent website to learn spring,hibernate and web services. Please add OOPS also.

  41. Pramod kumar says:

    Hi,
    This is very good for beginner,thanku for giving such a beautiful story about spring.

  42. Sarab says:

    Thanks for ur nice post.I have a doubt u said in this post that spring is good support for testing applications because it doesn’t need a server(Actually for writing the spring application, server [Container] is not mandatory) but with out server how a web application can work?

  43. kamal says:

    Great work man Sivateja Kandula.I got some good knowledge about Spring.Thanks for helping me and saving my time a lot.Again Thank you for your wonderful job yaar.

  44. prasad says:

    Hi,

    I have one doubt in spring.Spring is invasive because of it does not force the programmer to extend class or implement interface.But to write our class we need to use controllers(like simple form controller,AWForm Controller….like).Then how spring is invasive?

  45. vinay says:

    Hi Java4s team,

    First of all i would like to say thanks for providing this topics in very easy way to understandable language with diagrams. My question is why did you make this website as android app ?
    If you provide this as an app we will learn more concepts at any time with offline also.

    Thank you

  46. vinay says:

    Hi,

    First of all i would like to say thanks for providing this topics in very easy way to understandable language with diagrams. My question is why did you make this website as android app ?
    If you provide this as an app we will learn more concepts at any time with offline also.

    Thank you

  47. Hema Kadam says:

    Thank you very much it is very useful to understand difference between strut,spring and hibernate……..thanks…!!

  48. Hema+Kadam says:

    Thanks…!!

  49. pandian says:

    its really nice website. all the best…………..
    thanks……………

  50. hai gud afternoon i need java basics and spring notes and interview questionswith good examples and programs if yu donot mine can yu send me mail sivanagendrababu535@gmail.com….java material…

  51. azeem says:

    good website…………….

  52. Hari says:

    Since I read this , I got the job……..
    Thanks…

  53. Sudha says:

    What is POJO model??

  54. Puja says:

    Hello Sivateja Sir,Could you please provide the tutorials for jsp as well ?

  55. kiranmayee says:

    HI this website is very useful for beginners

  56. veeru says:

    Thanks for ur nice post.I have a doubt u said in this post that spring is good support for testing applications because it doesn’t need a server(Actually for writing the spring application, server [Container] is not mandatory) but with out server how a web application can work?

  57. Alankritka Verma says:

    if spring is fullfilling the need of both database and front end.Then,y v need to learn hibernate and struts??

  58. naresh says:

    @veeru
    we have a concept called serveless setup where we can test our spring related applications with out the server.
    that is one of the biggest advantage of spring
    in this tutorial SIVATEJA mentioned spring container will start in order to test the application.once testing completed it will close automatically.

    if need more clarity search for serverless setup using spring.

    Admin please correct me if i am wrong.

  59. Vamsi says:

    Hello Siva, your website is very very helpful to learn the subject. Please provide a project with the scenarios which cover all concepts. By that so many people get exposure to the real world scenarios……

  60. surya dk says:

    hi sivateja it is a great site u build …and can u group topics which are updated and removed from previous versions in java & j2ee

  61. dinesh says:

    Hai sir when will you finish all spring modules,that is context,ORM and web-mvc are missing, so please made it soon.

  62. Manoj Soni says:

    Thank u so much beacause your website very help full for spring………….

  63. Bhujatha Reddy says:

    what is the purpose of different ViewResolvers in Spring MVC ,when we use what?

  64. Venkat says:

    Hi Siva Garu,

    Really this site is Fantastic site. I have learnt Spring and Hibernate from this site only. Its very neat and clear every topic…Hats of to your Efforts ….. I have recommended about this site to 50 of my friends.

    Keep going and Rock it……..

  65. Siva says:

    @Venkat

    Thank you 🙂

  66. Naveen says:

    Your Spring tutorials very useful to learn for me thanks..

  67. Saravanan says:

    Happy New Year for all… This site is very clear view all topics.Great Job

  68. varun says:

    excellent introduction i have ever been seen

  69. Zahirul Israth says:

    Hi Sir,

    Your website is very useful for me to improve my knowledge. I have basic knowledge on Spring now. I’m implementing a java swing application for my mini-project. How can I integrate my application with Spring and Hibernate frameworks instead of using pure JDBC.

    Thank you.

  70. M.B .krishna says:

    Hi sir,
    Balu saying that, this will be helpful to any java student, concept is easy to understand, thank you sir. (*)

  71. Ramesh Golkonda says:

    hi i have dought what is the exact mean of cyclic dependencies can you explain me.

  72. Vanisha says:

    Its wonderful site I hv ever found. Thank-you for spring tutorial.
    I request java4s to add spring dao and more on spring bean scope n last but not the least spring hibernate real time application tutorial.

  73. Ram says:

    Nice Article

  74. venkat says:

    Hi,

    your website very useful for me.

    much thanks to provide this website.

  75. vijay says:

    Hi Sir, your helping for self learners in easy way, thanks for that,I am following this site since last 15 days continuous for every topic. I tried to access at 5 o clock today ,site is not working I felt very bad, I thaught I missed site, but again its up. pls don’t remove site. we all are preparing. Namaste.

  76. Nikhil Chaudhari says:

    Nice Clarification Shivateja.. you can add some more reasons to use spring.. Spring is much more than there 3 reasons..

  77. Narendar Reddy says:

    Nice, it helps for beginers

  78. Ankit says:

    Could you please provide the broader meaning for the below phrase with example?
    {spring framework can be used for all layer implementations for a real time application}

    Thanks for the great tutorial.

    • Harika says:

      Hello, The meaning of Spring can be used for all layer implementations means you can design any kind of applications like console applications,Enterprise applications,Database applications,web applications with spring.

  79. harvies says:

    This is the first article I read technical articles in English, thank author.

  80. vamsi says:

    Hi sir,
    Tell me some example projects of developing SPRING framework….

  81. Bikash Mishra says:

    Why Spring is light-weight ? I ask this qus many times but i get the answer today form your article, Thanks for this one.

  82. Neeta Mamgain says:

    Hi Sir,
    I have learned a lot through your tutorials.You have made hibernate,spring very easy to understand.All the contents are clear and it is useful for freshers as well as experienced.Thanks a lot sir!!!

  83. shadhu says:

    HI,
    Thanks for writing the very useful concept.

    How spring application would work without server ?

    could you please clarifiy…

    thanks

  84. Rohan says:

    Hi,

    Its very easy way to understand concept of Spring framework.

    Thanks,

    Rohan

  85. SHARMILA says:

    Hi
    Its really good site for understanding technologies ,please provide tutorial for JSF also.

  86. Priya says:

    Hii,

    Spring is very important in java. Many thanks for sharing.

  87. darsh says:

    Its very easy way to understand concept of Spring framework.

    for learning Spring framework jsp and Servelet is needed?

    only core java is sufficient?

  88. darsh says:

    Its very easy way to understand concept of Spring framework.

    for learning Spring framework jsp and Servelet is needed.?

    only core java is sufficient?

  89. mrudula says:

    I Loved your site, only thing is topics should have some flow one after other.
    Like topic names on the left side
    Rest is perfect. keep up the good work.

  90. upendra says:

    Wow.. what a explanation. really loved the way of explaining.

  91. supriya says:

    Hi Sivteja,

    Your site is very simple and easy to understand.i have one request,Please create some detailed documents on SPRING BATCH.it will help me to understand more and i need more clarification on it.

    Looking forward for your response.

    I hope you will create soon as my project get started and need to know more about SPRING BATCH.

    Thanks for site.

  92. Jaydev says:

    Hi,
    java4s is very helpfull for all. If possible please add all database related topics like SQL Server, MySql, Oracle etc. with software setups.

    Thanks.

  93. CHENCHUKUMAR S says:

    Super website and this site is very useful for freshers. its so clarity. thank u so much

  94. pintesh says:

    Super website and this site is very useful for fresher and experienced.it gives more clarity

  95. Pramod says:

    site is very useful

Name*
Mail*
Website



By posting your answer, you agree to our comments policy.
Most Recent Posts from Top Categories
Spring Boot Hibernate Spring
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2024 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.