github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example_osv_java_servlet/src/main/webapp/WEB-INF/web.xml (about)

     1  <?xml version="1.0" encoding="ISO-8859-1"?>
     2  <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     3           xmlns="http://java.sun.com/xml/ns/javaee"
     4           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
     5  	      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
     6           version="3.0" metadata-complete="true">
     7  
     8      <display-name>Spring PetClinic</display-name>
     9      <description>Spring PetClinic sample application</description>
    10  
    11      <!-- When using Spring jpa, use the following: -->
    12      <context-param>
    13          <param-name>spring.profiles.active</param-name>
    14          <param-value>jpa</param-value>
    15      </context-param>
    16  
    17      <!-- When using Spring JDBC, use the following: -->
    18      <!--  <context-param>
    19           <param-name>spring.profiles.active</param-name>
    20           <param-value>jdbc</param-value>
    21       </context-param>  -->
    22  
    23      <!--  the  CallMonitoringAspect counts invocations on classes with @Repository on them. Classes in spring-data-jpa don't have that annotation  -->
    24      <!--  When using Spring Data JPA, uncomment the following: -->
    25      <!--
    26          <context-param>
    27           <param-name>spring.profiles.active</param-name>
    28           <param-value>spring-data-jpa</param-value>
    29       </context-param>
    30       -->
    31  
    32      <!--
    33  		- Location of the XML file that defines the root application context.
    34  		- Applied by ContextLoaderListener.
    35  	-->
    36      <context-param>
    37          <param-name>contextConfigLocation</param-name>
    38          <param-value>classpath:spring/business-config.xml, classpath:spring/tools-config.xml</param-value>
    39      </context-param>
    40  
    41      <listener>
    42          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    43      </listener>
    44  
    45      <!--
    46  - Servlet that dispatches request to registered handlers (Controller implementations).
    47  -->
    48      <servlet>
    49          <servlet-name>petclinic</servlet-name>
    50          <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    51          <init-param>
    52              <param-name>contextConfigLocation</param-name>
    53              <param-value>classpath:spring/mvc-core-config.xml</param-value>
    54          </init-param>
    55          <load-on-startup>1</load-on-startup>
    56      </servlet>
    57  
    58      <servlet-mapping>
    59          <servlet-name>petclinic</servlet-name>
    60          <url-pattern>/</url-pattern>
    61      </servlet-mapping>
    62  
    63      <!-- Dandelion servlet definition and mapping -->
    64      <servlet>
    65          <servlet-name>dandelionServlet</servlet-name>
    66          <servlet-class>com.github.dandelion.core.web.DandelionServlet</servlet-class>
    67          <load-on-startup>2</load-on-startup>
    68      </servlet>
    69      <servlet-mapping>
    70          <servlet-name>dandelionServlet</servlet-name>
    71          <url-pattern>/dandelion-assets/*</url-pattern>
    72      </servlet-mapping>
    73  
    74      <!-- used to provide the ability to enter Chinese characters inside the Owner Form -->
    75      <filter>
    76          <filter-name>encodingFilter</filter-name>
    77          <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    78          <init-param>
    79              <param-name>encoding</param-name>
    80              <param-value>UTF-8</param-value>
    81          </init-param>
    82          <init-param>
    83              <param-name>forceEncoding</param-name>
    84              <param-value>true</param-value>
    85          </init-param>
    86      </filter>
    87  
    88      <filter-mapping>
    89          <filter-name>encodingFilter</filter-name>
    90          <url-pattern>/*</url-pattern>
    91      </filter-mapping>
    92  
    93      <!-- Dandelion filter definition and mapping -->
    94      <filter>
    95          <filter-name>dandelionFilter</filter-name>
    96          <filter-class>com.github.dandelion.core.web.DandelionFilter</filter-class>
    97      </filter>
    98      <filter-mapping>
    99          <filter-name>dandelionFilter</filter-name>
   100          <url-pattern>/*</url-pattern>
   101      </filter-mapping>
   102  
   103      <!-- Dandelion-Datatables filter, used for basic export -->
   104      <filter>
   105          <filter-name>datatables</filter-name>
   106          <filter-class>com.github.dandelion.datatables.core.web.filter.DatatablesFilter</filter-class>
   107      </filter>
   108      <filter-mapping>
   109          <filter-name>datatables</filter-name>
   110          <url-pattern>/*</url-pattern>
   111      </filter-mapping>
   112  
   113      <!--  	No need for welcome-file declaration here.
   114      		See inside spring/mvc-core-config.xml : 
   115      		<mvc:view-controller path="/" view-name="welcome" /> 
   116      -->
   117  
   118  </web-app>