一. solrj简介:

  solrj可以使Java应用程序很方便的访问与操作solr。solrj有几个核心类,分别为:1.SolrClient 2.SolrRequests 3.SolrQuerys 4.SolrReponses

    tips:该jar包可以在${solr.home}/dist/solrj-lib 找到

  gralde配置:

  

buildscript {
    ext {
        springBootVersion = '1.5.8.RELEASE'
    }
    repositories {
        maven { url = "http://maven.aliyun.com/nexus/content/groups/public" }
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'

group = 'com.bdqn.lyrk.study'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
    maven { url = "http://maven.aliyun.com/nexus/content/groups/public" }
}


dependencies {
    compile('org.springframework.boot:spring-boot-starter-data-solr')
    compile('org.springframework.boot:spring-boot-starter-web')
    compileOnly('org.projectlombok:lombok')
    testCompile('org.springframework.boot:spring-boot-starter-test')
}
View Code

相关文章:

  • 2022-02-01
  • 2021-04-14
  • 2022-01-10
  • 2022-02-09
  • 2021-08-13
  • 2022-02-12
  • 2021-04-12
  • 2022-02-14
猜你喜欢
  • 2021-11-29
  • 2021-11-24
  • 2021-12-26
  • 2021-12-27
相关资源
相似解决方案