【问题标题】:gRPC Spring Boot Starter Maven Not Found未找到 gRPC Spring Boot Starter Maven
【发布时间】:2017-08-10 18:54:09
【问题描述】:

我在 Spring initilizr 网站的帮助下创建了一个简单的 maven spring boot 1.5.2.RELEASE 应用程序,以使用 spring boot 应用程序测试 gRPC。正如任何人都会做的那样,我为gRPC 循环使用spring boot starter 来帮助配置复杂性。

    <dependency>
        <groupId>org.lognet</groupId>
        <artifactId>grpc-spring-boot-starter</artifactId>
        <version>2.0.0</version>
    </dependency>

问题是 Maven 似乎没有得到这种依赖。错误是Dependency '''org.lognet:grpc-spring-boot-starter:2.0.0''' not found

有什么简单的方法可以在spring boot中使用gRPC吗?

【问题讨论】:

标签: java maven spring-mvc spring-boot grpc-java


【解决方案1】:

你必须像这样添加 jcenter repo:

buildscript {
    repositories {
       mavenCentral()
       jcenter()
    }
}
repositories {
   mavenCentral()
   jcenter {
       url "http://jcenter.bintray.com/"
   }
}
dependencies {
    compile 'org.lognet:grpc-spring-boot-starter:2.1.4' // change with latest

【讨论】:

    猜你喜欢
    • 2021-05-31
    • 2021-01-12
    • 2018-01-10
    • 1970-01-01
    • 1970-01-01
    • 2019-10-15
    • 2014-04-07
    • 1970-01-01
    • 2021-03-29
    相关资源
    最近更新 更多