Solrのテスト構成

<?xmlのバージョン= "1.0"エンコード= "UTF-8">
<豆のxmlns = "http://www.springframework.org/schema/beans"
のxmlns:XSI = "http://www.w3.org / 2001 / XMLスキーマ・インスタンス"のxmlns:P = "http://www.springframework.org/schema/p"
のxmlns:コンテキスト= "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の/春-Solrの-1.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org /スキーマ/コンテキスト
のhttp://www.springframework。ORG /スキーマ/コンテキスト/春context.xsd「>
<! -のSolrサーバアドレス- >
<Solrの:SolrのサーバID = "solrServer" URL = "http://192.168.200.128:8080/solr" />

<! - Solrのテンプレートは、テンプレートが使用SolrのインデックスデータベースCRUD操作することができる- >
<ビーンID = "solrTemplate"クラス= "org.springframework.data.solr.core.SolrTemplate">
<コンストラクタREF-Argで= "solrServer" />
</ビーン>
</豆>

おすすめ

転載: www.cnblogs.com/lijun6/p/11902132.html