Enhance tutorial to also demonstrate Spring Security method

authorization, and add a services layer accordingly.
This commit is contained in:
Ben Alex
2007-12-14 02:26:27 +00:00
parent fa510b3187
commit 77d286c36f
4 changed files with 46 additions and 12 deletions

View File

@@ -11,7 +11,7 @@
<web-app>
<display-name>Acegi Security Tutorial Application</display-name>
<display-name>Spring Security Tutorial Application</display-name>
<!--
- Location of the XML file that defines the root application context
@@ -20,6 +20,7 @@
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext-business.xml
/WEB-INF/applicationContext-security-ns.xml
</param-value>
</context-param>
@@ -50,6 +51,20 @@
<listener>
<listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
</listener>
<!--
- Provides core MVC application controller. See contacts-servlet.xml.
-->
<servlet>
<servlet-name>bank</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>bank</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>