Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource" id="dataSource">
- <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
- <property name="url" value="jdbc:mysql://111.xxx.xxx:3306/test"></property>
- <property name="username" value="root"></property>
- <property name="password" value="xxxx"></property>
- </bean>
- <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
- <property name="peerClassLoadingEnabled" value="true"/>
- <property name="cacheConfiguration">
- <list>
- <bean class="org.apache.ignite.configuration.CacheConfiguration">
- <property name="name" value="personCache"></property>
- <!-- Enable readThrough-->
- <property name="readThrough" value="true"></property>
- <property name="writeThrough" value="true"></property>
- <!-- Set cacheStoreFactory-->
- <property name="cacheStoreFactory">
- <bean class="javax.cache.configuration.FactoryBuilder" factory-method="factoryOf">
- <constructor-arg value="com.jguo.ignitepersistentstoredemo.PersonStore"></constructor-arg>
- </bean>
- </property>
- <property name="queryEntities">
- <list>
- <bean class="org.apache.ignite.cache.QueryEntity">
- <property name="keyType" value="java.lang.Long"></property>
- <property name="valueType" value="com.jguo.ignitepersistentstoredemo.model.Person"></property>
- <property name="fields">
- <map>
- <entry key="id" value="java.lang.Long"></entry>
- <entry key="name" value="java.lang.String"></entry>
- <entry key="orgId" value="java.lang.Long"></entry>
- <entry key="salary" value="java.lang.Integer"></entry>
- </map>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource" id="dataSource">
- <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
- <property name="url" value="jdbc:mysql://222.xxx.xxx:3306/test"></property>
- <property name="username" value="root"></property>
- <property name="password" value="xxxx"></property>
- </bean>
Add Comment
Please, Sign In to add comment