Spring 2.5 or 3.0 - spring

I have a book called "Spring Recipes" which seems very good so far, but does not cover Spring 3.0. Should I continue with this book or hunt down a resource/s which covers Spring 3.0 and start from there?

I think for the big picture you don't necessarily need a book on Spring 3.0. If you are happy with your current book, keep using it. Once you've read through one book on Spring and have the basic concepts, you'll be ready to take on the reference documentation on the springframework.org website. You can get the descriptions of what changed with 3.0 and get more in-depth details about how Spring works.

Related

Starting with Spring framework

I'm planning to start learning Spring but when I open any spring tutorial, I find many modules like Spring REST, spring MVC etc.
I'm really confused on how to start with spring, from which module to start, how are these modules related to each other, should I go through all the modules??
I tried searching many sites to answer my questions but couldn't find satisfactory ans, so thought of posting here. It would be great if somebody can guide me in this regard.
Spring is a java framework which provides solutions to several problems. So i guess it really depends on what you are planning to learn. The most important to learn first is understanding what Dependency Injection and inversion of control means. When you understand this you will understand why the rest of the frameworks are designed as it is. i suppose learn Spring IoC first since this is basically the core component of Spring Framework. Link: http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/beans.html
After learning Spring IoC, you can go on learning each specific Spring frameworks which address specific problems. For example:
Are you interested in Web development? --> Spring MVC
Are you interested in storing data to database? --> Spring Data
Are you interested in developing web services / web apis --> Spring REST
http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/overview.html
Start with Spring Core Module, which is the heart of entire Spring.
Spring Core Module helps in Injecting Dependencies (java objects) into
the Application at Runtime.
Please refer below URL for more details:
http://www.springbyexample.org/examples/core-concepts.html
A good knowledge of design patterns is essential for learning any framework in Java.
These Youtube videos can give you a good understanding of basic Spring.
As explained in the previous answers, start learning with the Spring core. You need to have a sound knowledge of servlets, JSP, Hibernate (ORM's) to understand the advanced topics.

Create sample application using spring version 2.5

I want to start with new scratch application using spring 2.5, I want to integrate hibernate also in same project, can anyone suggest ideas?
If you want to go down the Spring Boot road, there is plenty of documentation available:
First of all, check out this part of the documentation.
Next you can check out this sample application, as well as this sample application. Note that the aforementioned samples use Hibernate implicitly though the use of JPA.
You can also take a look at this blog post.

Spring information about start and video references

I am very very new to Spring and I don't even know Java EE. Can I proceed with Spring? If not , then how and what things do I have to gain before moving to Spring?
Please also guide me spring flavour and the best books for the specified flavours.
Please also give brief about each flavor so that I can gain knowledge about what is used for what.
You don't need to learn Java EE for learning Spring. Spring is not Java EE and Java EE is not spring. You can develop Java EE application using spring and without spring.
From the wikipedia : The Spring Framework is an open source application framework and inversion of control container for the Java platform.
Before moving to spring, you should be acquinted with design patterns. Effective Java and Head First Design Pattern is a good book to start. You can also find multiple source online.
Once you through about design pattern. You can find the Spring very much easy and its uses.
Start with Spring core. Then move to the other sub-projects of spring.
Documentation in Spring Source is best place to start..
You have to first learn Java EE especially JSP and Servlets. Get some detailed information on MVC pattern. You also require some hands-on knowledge on Web servers. Then you can move on to learn Spring.
This is a very subjective question; what teaching aides work best depend on the individual. As far as videos go, I would start with youtube with the springsource channel for Spring related information, and even some Java EE 101 type stuff. Also have a look at slideshare.net for presentations on various Java EE and Spring topics. good luck!

I need guidance to learn spring and hibernate

I have been working on mobile platforms j2me , android , etc. I have sound knowledge of core java and android. but now the situation is like I need to take on projects on spring and hibernate framework.
Can someone suggest me how should I start my preparation. What all technologies I need to understand before starting spring and hibernate?
Here is a Step-By-Step Spring tutorial. It's a little outdated but it should help you get started with Spring.
This blog has some good examples of Spring/hibernate which I have found very helpful.
Here is another tutorial/sample application. At the bottom of the page you will find some more links that could help you.
Good Luck!

Confused about rich framework to be used with spring

my requirement is to develop rich web applications quickly and easily, and the framework must be easy/compatible with spring something like IceFaces
i am confused about IceFaces/PrimeFaces, or use jsp with YUI/DWR
please advise me.
I wrote Spring integration with JSF 2.1 + RichFaces 4. it works not bad, if you are searching for rapid rich client implementation it might be good choice though.
You can see basic tutorial how it works:
http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/
SpringSource suggests PrimeFaces officially.
http://forum.springsource.org/showthread.php?98040-Which-jsf-2-component-library-to-use
ZK is a good solution and has good integration with spring
Since the question is not really PrimeFaces vs IceFaces (both JSF), but JSF vs YUI (or any other rich client framework), then the question comes down to: whatever makes sense for you. See my answer here: Spring MVC, what view components to use?.
Incase you are open to options other than "IceFaces/PrimeFaces, or use jsp with YUI/DWR"
Take a look at Spring Roo and GWT combination
It is geared for rapid development, with a lot of emphasis on template based code generation. GWT is a very powerful framework when it comes to developing Rich Applications.

Resources