server/java/src/main/webapp/WEB-INF/mongo-config.xml
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 316 242510015401
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<beans xmlns="http://www.springframework.org/schema/beans"
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	xmlns:p="http://www.springframework.org/schema/p" 
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    xmlns:mongo="http://www.springframework.org/schema/data/mongo"
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    xmlns:context="http://www.springframework.org/schema/context"
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    xmlns:jpa="http://www.springframework.org/schema/data/jpa"
83
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
     8
	xsi:schemaLocation="
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
     9
	        http://www.springframework.org/schema/context
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    10
            http://www.springframework.org/schema/context/spring-context.xsd
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    11
	        http://www.springframework.org/schema/beans
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    12
	   		http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
   			http://www.springframework.org/schema/data/mongo
83
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    14
    		http://www.springframework.org/schema/data/mongo/spring-mongo-1.2.xsd
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
            http://www.springframework.org/schema/data/jpa
83
276514e62567 Try to correct xml validation pb.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    16
            http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd">	
87
6c810f746837 Externalize properties
ymh <ymh.work@gmail.com>
parents: 83
diff changeset
    17
	
6c810f746837 Externalize properties
ymh <ymh.work@gmail.com>
parents: 83
diff changeset
    18
	<context:property-placeholder order="1000" ignore-unresolvable="true" ignore-resource-not-found="false" location="WEB-INF/renkan.properties"/>
6c810f746837 Externalize properties
ymh <ymh.work@gmail.com>
parents: 83
diff changeset
    19
	<context:property-placeholder  order="1" ignore-unresolvable="true" ignore-resource-not-found="true" location="classpath:renkan_run.properties"/>
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
	<!-- Default bean name is 'mongo' -->
87
6c810f746837 Externalize properties
ymh <ymh.work@gmail.com>
parents: 83
diff changeset
    21
	<mongo:mongo host="${mongodb.host.name}" port="${mongodb.host.port}" />
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
		
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
	<!-- Offers convenience methods and automatic mapping between MongoDB JSON documents and your domain classes. -->
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
  	<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
  	    <constructor-arg ref="mongo"/>
87
6c810f746837 Externalize properties
ymh <ymh.work@gmail.com>
parents: 83
diff changeset
    26
  		<constructor-arg value="${mongodb.db.name}"/>
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
  		<property name="writeResultChecking" value="EXCEPTION"/>
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
  	</bean>
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
  	
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
  	<mongo:repositories base-package="org.iri_research.renkan" factory-class="org.iri_research.renkan.repositories.RenkanRepositoryFactoryBean" />
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: 45
diff changeset
    31
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
</beans>