【魄爺】 发表于 2017-12-18 15:40:58

solr-jd

<?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:mvc="http://www.springframework.org/schema/mvc"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-4.2.xsd
  http://www.springframework.org/schema/aop
  http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  http://www.springframework.org/schema/tx
  http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">      
  

  <!-- 配置扫描 器 -->
  <context:component-scan base-package="com.itheima.jd"/>
  <!-- 配置处理器映射器适配器 -->
  <mvc:annotation-driven/>
  <!-- 配置视图解释器 jsp -->
  <bean>
  <property name="prefix" value="/WEB-INF/jsp/"/>
  <property name="suffix" value=".jsp"/>
  </bean>
  <!-- 配置SolrServer对象 -->
  <bean>
  <constructor-arg index="0" value="http://localhost:8080/solr/collection1"/>
  </bean>
  
</beans>
页: [1]
查看完整版本: solr-jd