I am new to Spring and at my job a new
Java Developer came on my team which is just me (backend web developer) and my boss who is the front end guy. She insisted we switch the framework I was using to Spring as that is all she is good with so my boss agreed. I had from last Monday and still have till the Monday coming up before I am assigned a development task using Spring MVC.
I really need help you guys. If ever, right now is the most important time for me to get where I need to be. I do have some questions and any advice outside of my questions you may be able to give or learning points on topic would be extremely appreciated.
QUESTIONS:
Springs Dependency Injection:
I get how this helps loosely couple my code BUT how do you use it? Specifically, (Class Person and Class Dog) How do I inject the Dog into Person and how will this work and how will this help me? What will I be able to do "in detail" when this happens?
Another DI Question:
The example I have above with the class Person and class Dog --> how can this line of thinking be applied to the MVC model?
Application Context Question:
If I am not using the Main method and am rendering responses through a Controller, will I need to get the Application Context like I would in the Main()? (I am only going of some tutorials I watched)? The Application Context was not retrieved in the Controller.
Spring Framework Class Liibraries:
Where can I find the source code for each class/method in Spring 3.2.0
Constructor and Setter based Injection
How to (with examples and explanations) do Constructor Based Injections AND Setter Based Injections? --> How would I use it when I did it as well?
Last Question
When I was using let's say
Servlets and
JSP's, it was simple via 3 tier development. User fills in form or something, maps to servlet, then servlet validates form, invokes logic and renders response. QUESTION PART: Based on how it works in my explanation of Servlets / JSP's, what will I need to look at differently and work with differently using Spring? This means that if I need to create a DAO object in my servlet and pass it a Registration object to persist by utilizing the NEW key
word and building the construct, HOW would I do this 'same' example in terms of Spring? Could you provide an example maybe and a detailed explanation on this specifically.
You guys (and gals), I really appreciate this more than anything. This could be my job on the line if I can't get where I need to be and fast (with Spring). Thank you to anyone willing to take the time and help me. ALL feedback is open here.