I need to read the spring doc. I need to specifically read the intro, IoC container, Resources, Validation, Data Binding, Type Conversion, and Testing. I'm reading the IoC section right now and it seems really hard for me to grasp.
I know core java, but I haven't read JEE. What should I know before reading the Spring doc? From my research, I think I need to understand JSP/Servlets before learning Spring. Do I need to read all of the chapters in JEE, or can I skip some sections? Thanks.
Hi Bear, thanks for your help. My goal is to start to contribute code at my internship in a few weeks hopefully. The site will use the Spring container. There is a basic prototype ( i think that is the right term) for the website for me to look at. My manager hasn't started yet. He is transitioning from his old job, so it's a little hard to get help from him. There is no other developers on the team.
I was told to read the Spring doc sections: IoC container, Resources, Validation, Data Binding, Type Conversion, and Testing. I am having a hard time with the material. I have watched some of these videos http://javabrains.koushik.org/p/spring-framework.html on core Spring and they have helped.
I think the material is hard for me to learn from, because I have no experience with JEE. What should I know before learning these parts of the Spring framework? I prefer to see complete examples like what you would see in a beginners Java book. The Spring doc isn't like that.
As Bear mentioned, you don't need much of the JEE spec for what you will likely be doing.
First, you should understand how Spring does dependency injection. Its fundamental to Spring.
Once you understand it, as Bear mentioned, focus on SpringMVC. Again, the samples should help.
As you go along, feel free to ask more specific questions to get you through.
posted 6 years ago
Thank you for your advice. I just wanted to add for posterity, the javabrains videos make it easier for someone learning Spring, because they explained to me what a factory pattern was. It also explains how you would design your java programs to work in this framework. They explain what a container, xml, and a bean are, and how they work with other objects. I think you should know this stuff before reading the documentation for Spring.
Yes, good point. Spring is based heavily on design patterns. If you have not read and know the GoF patterns, as well as many of the patterns from Martin Fowler, its recommended as well before starting Spring.
I had a hard time understanding the basics of Spring from the Spring docs. They are a good reference guide, but I found hard to learn spring from them, and I'm familiar with a lot of JEE technologies and design patterns before I started
I would reccomend reading Spring In Action. Most of the things that you have described (and more) except testing are covered in the first part which is 150+ pages. Covering the first part will give you a good grounding in Core Spring. You can then delve into various other Spring libraries. You don't need to know anything besides Core Java to follow the examples. However, understanding design patterns will give you a richer understanding.
If you only have a few weeks, I would reccomend going through the first part of Spring In Action. It will get you to a point where you won;t be completely lost in a Spring project. You will get to a point where you can learn things on the job.
posted 6 years ago
Thanks for the advice everyone. Besides the factory pattern, what specific design patterns will help me learn Spring better?
If you understand the basics, it won't take time to learn the new things, espescially in Spring Core. Spring core hasn't changed too much after they added support for Java annotations. I have a second edition on my desk and third edition online. I usaully end up using second edition or looking at the spring docs online when I need to find something concrete
Get the latest edition that you can get your hands on