Corrected context file name in petclinic tutorial
This commit is contained in:
parent
e951c42c2b
commit
21eb70c576
|
@ -19,15 +19,15 @@ Tutorial: Adding Security to Spring Petclinic
|
|||
|
||||
You will also need to download:
|
||||
|
||||
* {{{http://www.springframework.org/download}Spring 2.5.4 with dependencies ZIP file}}
|
||||
* {{{http://www.springframework.org/download}Spring 2.5.5 with dependencies ZIP file}}
|
||||
|
||||
* {{{http://www.springframework.org/download}Spring Security 2.0.2}}
|
||||
* {{{http://www.springframework.org/download}Spring Security 2.0.4}}
|
||||
|
||||
|
||||
Unzip both files. After unzipping Spring Security, you'll need to unzip the
|
||||
spring-security-sample-tutorial-2.0.2.war file, because we need some files that are
|
||||
spring-security-sample-tutorial-2.0.4.war file, because we need some files that are
|
||||
included within it. After unzipping the war file, you will see a folder called
|
||||
spring-security-samples-tutorial-2.0.2.
|
||||
spring-security-samples-tutorial-2.0.4.
|
||||
|
||||
In the code below, we'll refer to the respective unzipped
|
||||
locations as %spring% and %spring-sec-tutorial% (with the later variable
|
||||
|
@ -82,10 +82,10 @@ copy dist\petclinic.war %TOMCAT_HOME%\webapps
|
|||
|
||||
+------------------------------------------------------
|
||||
copy %spring-sec-tutorial%\WEB-INF\applicationContext-security-ns.xml %spring%\samples\petclinic\war\WEB-INF
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-core-2.0.2.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-core-tiger-2.0.2.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-acl-2.0.2.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-taglibs-2.0.2.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-core-2.0.4.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-core-tiger-2.0.4.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-acl-2.0.4.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\spring-security-taglibs-2.0.4.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %spring-sec-tutorial%\WEB-INF\lib\commons-codec-1.3.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
+------------------------------------------------------
|
||||
|
||||
|
@ -177,7 +177,7 @@ copy %spring-sec-tutorial%\WEB-INF\lib\commons-codec-1.3.jar %spring%\samples\pe
|
|||
** protect-pointcut
|
||||
|
||||
Finally, we need to declare a protect-pointcut that will hold the security restriction.
|
||||
Inside %spring%\samples\petclinic\war\WEB-INF\applicationContext-security-ns.xml, update
|
||||
Inside %spring%\samples\petclinic\war\WEB-INF\applicationContext-security.xml, update
|
||||
the global-method-security tag as follows:
|
||||
|
||||
+------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue