Last modified by Ken McWilliams on 2012/03/11 06:21

From version Icon 5.1 Icon
edited by Ken McWilliams
on 2012/03/10 21:42
Change comment: There is no comment for this version
To version Icon 6.1
edited by Ken McWilliams
on 2012/03/11 06:21
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -77,11 +77,35 @@
77 77  
78 78  **Note**: We will add our beans on the blank line preceding </beans>
79 79  
80 -== 3) Create a basic DI example ==
80 +== 3) [optional] Upgrade Spring to Latest Version ==
81 81  
82 +After adding the struts2-spring-plugin you'll see that the following jars were added to support it:
83 +
84 +spring-aop-3.0.5.RELEASE.jar
85 +
86 +spring-asm-3.0.5.RELEASE.jar
87 +
88 +spring-beans-3.0.5.RELEASE.jar
89 +
90 +spring-context-3.0.5.RELEASE.jar
91 +
92 +spring-core-3.0.5.RELEASE.jar
93 +
94 +spring-expression-3.0.5.RELEASE.jar
95 +
96 +In netbeans 7.1, it is as simple as right clicking the dependancy node and adding the most current dependancy for each of the above a list of availible versions should be provided and you simply select the most current one.
97 +
98 +You should be able to determine the coordinates:
99 +
100 +**Groupd Id **for all the above is: org.springframework
101 +
102 +Artifact Id for all the above is the first two words including the hypen, for example spring-aop-3.0.5.RELEASE.jar is spring-aop, then as previously stated pick the most recent version.
103 +
104 +== 4) [optional] Basic DI example ==
105 +
82 82  The following assumes the use of the conventions plugin. For explanation of this plugin see: [[using the convention plugin>>doc:Adding and Using the Conventions Plugin]].
83 83  
84 -Our example will require the following things: 1) A service, 2) an implementation of the service, 3) configure spring to inject our service where we need it, 4) an action to use the service and 5) a view.
108 +Our example will require the following things: 1) A service, 2) an implementation of the service, 3) configure spring to inject our service where we need it, 4) an action to use the service and 5) a view.
85 85  
86 86  === Create Service ===
87 87