170 lines
5.7 KiB
XML
170 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3.1.xsd"
|
|
version="3.1">-->
|
|
<web-app xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" version="3.0">
|
|
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>auth/login.xhtml</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<context-param>
|
|
<param-name>facelets.DEVELOPMENT</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
|
|
|
|
<context-param>
|
|
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
|
<param-value>server</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>javax.faces.PROJECT_STAGE</param-name>
|
|
<param-value>Development</param-value>
|
|
</context-param>
|
|
|
|
<context-param>
|
|
<param-name>primefaces.FONT_AWESOME</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>primefaces.THEME</param-name>
|
|
<param-value>ultima-indigo</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>primefaces.DIR</param-name>
|
|
<param-value>#{app.rtl ? rtl : ltr}</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
|
|
<param-value>/WEB-INF/springsecurity.taglib.xml</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>/WEB-INF/applicationContext.xml, /WEB-INF/spring-hibernate-config.xml</param-value>
|
|
</context-param>
|
|
|
|
|
|
<!-- <error-page>
|
|
<exception-type>java.lang.Throwable</exception-type>
|
|
<location>/auth/error.xhtml</location>
|
|
</error-page>-->
|
|
<error-page>
|
|
<error-code>404</error-code>
|
|
<location>/notfound/notfound.xhtml</location>
|
|
</error-page>
|
|
|
|
|
|
<filter>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
</filter>
|
|
|
|
<filter-mapping>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>ERROR</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<servlet>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<url-pattern>*.jsf</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<url-pattern>*.xhtml</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet>
|
|
<servlet-name>springDispatcher</servlet-name>
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
<init-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>/WEB-INF/spring-servlet.xml</param-value>
|
|
</init-param>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>springDispatcher</servlet-name>
|
|
<url-pattern>/api/*</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<session-config>
|
|
<session-timeout>
|
|
30
|
|
</session-timeout>
|
|
</session-config>
|
|
|
|
<!-- File(s) appended to a request for a URL that is not mapped to a web component -->
|
|
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
<listener>
|
|
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
|
|
</listener>
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
|
|
</listener>
|
|
<listener>
|
|
<listener-class>
|
|
com.triz.trizservice.security.impl.SessionListener
|
|
</listener-class>
|
|
</listener>
|
|
<mime-mapping>
|
|
<extension>ttf</extension>
|
|
<mime-type>application/font-sfnt</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>woff</extension>
|
|
<mime-type>application/font-woff</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>woff2</extension>
|
|
<mime-type>application/font-woff2</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>eot</extension>
|
|
<mime-type>application/vnd.ms-fontobject</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>eot?#iefix</extension>
|
|
<mime-type>application/vnd.ms-fontobject</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg#exosemibold</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg#exobolditalic</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg#exomedium</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg#exoregular</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>svg#fontawesomeregular</extension>
|
|
<mime-type>image/svg+xml</mime-type>
|
|
</mime-mapping>
|
|
</web-app> |