|
45
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
|
2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
|
4 |
xmlns:p="http://www.springframework.org/schema/p" |
|
|
5 |
xmlns:mongo="http://www.springframework.org/schema/data/mongo" |
|
|
6 |
xmlns:context="http://www.springframework.org/schema/context" |
|
|
7 |
xmlns:jpa="http://www.springframework.org/schema/data/jpa" |
|
|
8 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
|
9 |
http://www.springframework.org/schema/beans/spring-beans.xsd |
|
|
10 |
http://www.springframework.org/schema/data/mongo |
|
|
11 |
http://www.springframework.org/schema/data/mongo/spring-mongo.xsd |
|
|
12 |
http://www.springframework.org/schema/context |
|
|
13 |
http://www.springframework.org/schema/context/spring-context.xsd |
|
|
14 |
http://www.springframework.org/schema/data/jpa |
|
|
15 |
http://www.springframework.org/schema/data/jpa/spring-jpa.xsd"> |
|
|
16 |
<!-- Default bean name is 'mongo' --> |
|
|
17 |
<mongo:mongo host="localhost" port="27017"/> |
|
|
18 |
|
|
|
19 |
<!-- Offers convenience methods and automatic mapping between MongoDB JSON documents and your domain classes. --> |
|
|
20 |
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate"> |
|
|
21 |
<constructor-arg ref="mongo"/> |
|
|
22 |
<constructor-arg value="renkan"/> |
|
|
23 |
<property name="writeResultChecking" value="EXCEPTION"/> |
|
|
24 |
</bean> |
|
|
25 |
|
|
|
26 |
<mongo:repositories base-package="org.iri_research.renkan" factory-class="org.iri_research.renkan.repositories.RenkanRepositoryFactoryBean" /> |
|
|
27 |
|
|
|
28 |
</beans> |