1234567891011121314151617181920212223242526272829303132 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
- xmlns:p="http://www.springframework.org/schema/p" xmlns:mongo="http://www.springframework.org/schema/data/mongo"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/data/mongo
- http://www.springframework.org/schema/data/mongo/spring-mongo.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context.xsd">
- <context:annotation-config />
- <mongo:mongo-client id="mongoClient" host="120.77.221.199" />
- <mongo:db-factory id="mongoDbFactory" dbname="jtxt-dev" mongo-client-ref="mongoClient" />
- <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
- <constructor-arg ref="mongoDbFactory" />
- </bean>
- <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
- <mongo:repositories base-package="com.jtxt.demo" mongo-template-ref="mongoTemplate" />
- <!-- <bean class="com.baeldung.event.CascadeSaveMongoEventListener">-->
- <!-- </bean>-->
- <!-- <mongo:mapping-converter id="mongoConverter" base-package="com.baeldung.converter">-->
- <!-- <mongo:custom-converters base-package="com.baeldung.converter" />-->
- <!-- </mongo:mapping-converter>-->
- </beans>
|