ssm整合配置

2018-08-30  本文已影响9人  清风_d587

配置内容

■ solr.properties:主要配置solr的core目录、超时时间参数,可根据业务需求进行添加设置。

solr.baseUrl=http://localhost:8081/solr/collection1 

solr.connectionTimeout=3000 

■ applicationContext-shiro.xml:配置solr的bean,可根据业务需求进行添加设置。

有需要的可以联系我

2317384986

yxxy1717

xmlns:context=”http://www.springframework.org/schema/context” 

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” 

xsi:schemaLocation=”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-4.3.xsd“> 

 

 

 

 

 

■ applicationContext-spring.xml:主要将applicationContext-shiro.xml引入,交给Spring进行bean的管理。

 

■ pom.xml:添加整合solr所需要的jar包,具体参照solr\solr-7.4.0\dist目录下的solr-solrj-7.4.0.jar及solrj-lib文件夹下的所有jar包。

 

org.apache.solr 

solr-solrj 

7.4.0 

 

org.apache.commons 

commons-math3 

3.6.1 

 

org.apache.httpcomponents 

httpclient 

4.5.3 

 

org.apache.httpcomponents 

httpcore 

4.4.6 

 

org.apache.httpcomponents 

httpmime 

4.5.3 

 

org.noggit 

noggit 

0.8 

 

org.codehaus.woodstox 

stax2-api 

3.1.4 

 

org.codehaus.woodstox 

woodstox-core-asl 

4.4.1 

 

org.apache.zookeeper 

zookeeper 

3.4.11 

上一篇 下一篇

猜你喜欢

热点阅读