|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Why Spring, Benefits using spring framework? Hello Programming gurus, I have heard about Spring Framework, but unaware about its structure as well as its benefits so can anyone here suggest me why do I prefer Spring and what are the advantage using Spring Framework,. I will appreciate your help. Thanks |
#2
| |||
| |||
Re: Why Spring, Benefits using Spring Framework? Following are the several reasons why I prefer Spring Framework:
|
#3
| |||
| |||
Re: Why Spring, Benefits using spring framework? Architectural benefits of Spring
|
#4
| |||
| |||
Re: Why Spring, Benefits using spring framework? If you use Spring you can scale up in power a bit. Some of the benefits are:
Spring MVC also has advantages over Stuts: - No ActionForms. Bind directly to domain objects - More testable code (validation has no dependency on Servlet API) - Well defined interface to business layer For example of Spring reducing the boilerplate code, it can turn: Code: public List findAllEmployees() { SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); Session session = sessionFactory.getSession(); try { return session.find("from Employee order by surname, firstname"); } finally { try { session.close() } catch(HibernateException he) { throw new CustomRuntimeDAOException(he); } } } into public List findAllEmployees() { return getHibernateTemplate().find("from Employee order by surname, firstname"); } |
![]() |
|
Tags: spring, spring framework |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with spring mvc project | Aninch | Software Development | 9 | 10-01-2012 07:02 PM |
spring framework | ajnabi81 | Software Development | 1 | 09-07-2010 04:29 AM |
JSF Framework Vs Spring Framework | Bottlenecked | Software Development | 5 | 30-01-2010 10:11 AM |
What is Spring? | Adrina_g | Software Development | 3 | 10-12-2009 01:56 PM |
Need Help on Spring Framework: Learning | dhamayanthik | Software Development | 1 | 15-06-2009 01:02 PM |