server/java/renkan-web/src/main/webapp/WEB-INF/mongo-config.xml
author ymh <ymh.work@gmail.com>
Wed, 04 Mar 2015 09:39:11 +0100
changeset 395 2e8c92eb0dfa
parent 316 242510015401
child 457 b38cf3d4cf1f
permissions -rw-r--r--
Added tag V00.08.04 for changeset 95d6545c79e5
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>