ssm整合配置

配置内容

■ 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 

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容