美文网首页
ssm整合配置

ssm整合配置

作者: 清风_d587 | 来源:发表于2018-08-30 10:17 被阅读9次

配置内容

■ 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 

相关文章

  • JAVA 整合websocket

    SSM整合websocket 一、maven配置 二、ContextXML配置 contextXML添加约束 配置...

  • SSM框架配置之web.xml 1.0

    SSM:SpringMVC+Spring+MyBatis 编写SSM整合的关键配置文件 web.xml,sprin...

  • Maven-SSM整合Thymeleaf模板引擎 Spring5

    Maven-SSM整合Thymeleaf模板引擎 Spring5整合(JavaConfig注解配置) 1. 依赖 ...

  • ssm整合redis

    一、service 二、RedisCacheConfig 三、xml文件配置 maven的配置文件 ssm框架整合...

  • ssm整合

    SSM整合笔记 整合Spring 编写xml配置文件,开启注解扫描(指定Controller注解不扫描)