solr test configuration

<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:solr="http://www.springframework.org/schema/data/solr"
xsi:schemaLocation="http://www.springframework.org/schema/data/solr
http://www.springframework.org/schema/data/solr/spring-solr-1.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.ORG / Schema / context / Spring-context.xsd ">
<-! Solr server address ->
<solr:solr-server id="solrServer" url="http://192.168.200.128:8080/solr" />

<-! Solr template, the template can be used solr index database CRUD operations ->
<the bean ID = "solrTemplate" class = "org.springframework.data.solr.core.SolrTemplate">
<constructor REF-Arg = "solrServer" />
</ the bean>
</ Beans>

Guess you like

Origin www.cnblogs.com/lijun6/p/11902132.html