server/java/renkan-web/src/main/webapp/WEB-INF/spring-servlet.xml
author rougeronj
Wed, 03 Jun 2015 17:27:46 +0200
changeset 471 e0c7be5dc02c
parent 316 242510015401
permissions -rw-r--r--
Add a router to handle fragment identifier Set up a listener of the router in the scene to update it Start Backbone.history (eventlistener of the router) when all the project is loaded Include router.js to all the test file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<beans xmlns="http://www.springframework.org/schema/beans"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    xmlns:p="http://www.springframework.org/schema/p"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    xmlns:context="http://www.springframework.org/schema/context"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    xmlns:mvc="http://www.springframework.org/schema/mvc"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    xsi:schemaLocation="http://www.springframework.org/schema/beans
76
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
     8
                        http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
                        http://www.springframework.org/schema/context
76
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    10
                        http://www.springframework.org/schema/context/spring-context-3.2.xsd
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
                        http://www.springframework.org/schema/mvc
76
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    12
                        http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    <!-- **************************************************************** -->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    <!-- RESOURCE FOLDERS CONFIGURATION -->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
    <!-- Dispatcher configuration for serving static resources -->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    <!-- **************************************************************** -->
51
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
    18
    <mvc:resources location="/static/" mapping="/static/**" />
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
    19
    <mvc:resources location="/lib/" mapping="/lib/**" />
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
    20
    <mvc:resources location="/_firebug/" mapping="/_firebug/**" />
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
    21
    <!--mvc:resources location="/css/" mapping="/css/**" /-->
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    <!-- **************************************************************** -->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    <!-- SPRING ANNOTATION PROCESSING -->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    <!-- **************************************************************** -->
76
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    26
    <mvc:annotation-driven>
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    27
	    <mvc:argument-resolvers>
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    28
	        <bean class="org.springframework.data.web.PageableArgumentResolver">
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    29
	           <property name="prefix" value="p"/>
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    30
	        </bean>
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    31
	    </mvc:argument-resolvers>
523f0647513e add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    32
    </mvc:annotation-driven>
258
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    33
    <mvc:interceptors>
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    34
        <bean class="org.iri_research.renkan.controller.VersionHandlerInterceptor"/>
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    35
    </mvc:interceptors>
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    36
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
    <context:component-scan
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
        base-package="org.iri_research.renkan.controller" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
         
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
    <bean id="viewResolver"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
        class="org.springframework.web.servlet.view.UrlBasedViewResolver">
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
        <property name="viewClass"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
            value="org.springframework.web.servlet.view.JstlView" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
        <property name="prefix" value="/WEB-INF/jsp/" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
        <property name="suffix" value=".jsp" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
        <property name="order" value="2" />
129
01c862ada33c Add delete for spaces, check that there is no linked projects
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    47
        <property name="redirectHttp10Compatible" value="false" />
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
    </bean>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
    
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
    <bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
        <property name="prefix" value="/WEB-INF/templates/" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
        <property name="suffix" value=".html" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
        <property name="templateMode" value="HTML5" />
51
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
    54
        <property name="characterEncoding" value="UTF-8" />
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
        <property name="cacheable" value="false"/>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
    </bean>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
    
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
    <bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine">
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
        <property name="templateResolver" ref="templateResolver" />
150
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 129
diff changeset
    60
        <property name="additionalDialects">
258
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    61
            <set>
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    62
              <bean class="org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect"/>
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    63
            </set>
150
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 129
diff changeset
    64
      </property>
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
    </bean>
258
c14725cb24ae take version from manifest
ymh <ymh.work@gmail.com>
parents: 231
diff changeset
    66
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
    <bean class="org.thymeleaf.spring3.view.ThymeleafViewResolver">
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
        <property name="templateEngine" ref="templateEngine" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
        <property name="order" value="1" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
        <!--property name="viewNames" value="*.html,*.xhtml" /-->
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
        <property name="characterEncoding" value="UTF-8"/>
129
01c862ada33c Add delete for spaces, check that there is no linked projects
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    72
        <property name="redirectHttp10Compatible" value="false" />
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
    </bean>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
</beans>