Does anyone have a very simple example (no more than 2 or 3 .java files)
on how to use Spring 2.5 with annotation based configuration?
I can not find a very simple example anywhere that only has the following:
=> Proper Spring 2.5 init & Setup
=> POJO A that is injected into POJO B
=> POJO B that has POJO A injected (annotation example)
* I am not using a database, so no dao layer
* I am not building a web application so do not have a WEB-INF/
* There are no controller or service objects
(just a static main in one class that depends on another class)
What I am looking for is the simplest example to get started.
All code out there I see are code snippets and not fully compilable examples and assume that the Spring setup/init has already been done.
I looked through the 2.5 manual, but most all the
code snippets use xml based configuration and are not annotation based.
There is no fully compilable example of what I am looking for in the manual that shows Spring setup from beginning to end that I can paste into an IDE and get started.
---
All the code snippets on the web are not fully compilable examples
and use a database layer or have a lot of web based code there
(WEB-INF/ configuration files.
What I am seeking is a zip file with the simplest example so I can
see how this works first. I am looking for a minimal example to
get started on IOC.
If there is a minimal example out on the web (no dao's, no web app, no xml config), please send me a link and that will get things rolling.
thanks
jgr


Reply With Quote
