-
#### 启动错误如下图所示
#### 根本原因:com.google.guava 包版本不兼容,当前系统中为24.0-jre版本,亲测换为27.0.1-jre有效
[
![image](https://user-images.githubusercontent.com/27068235/51309268-f7f8f400-1a7e-11e9-838c-864c1cc4b2a7.png)…
-
### 配置如下
```
dubbo:
application: #------------------------------------------------------ dubbo应用配置
id: SpringDubboProvider
name: SpringDubboProvider
registry: #--------------------…
-
测试版本:(注:2.8.4的版本一样存在)
2.5.5
其他依赖版本:
4.3.10.RELEASE
1.7.4
3.4.6
问题简述:
同样写法下,用注解配置的服务,部分类会走SpringCGLib代理,而部分却跳过了代理,导致事务失效。
我认真比对了所有的写法,都一模一样,却出现了两种效果
备用解决方案:
出问题的类改…
-
`DemoService` is a dubbo proxy 。
expected: inject and worked fine
actually: Field demoService in XXX.ConsumerCommandLineRunner required a bean of type 'XXX.api.DemoService' that could not be f…
-
`
@Reference(
version = "1.0.0",
application = "${dubbo.application.id}",
url="${dubbo.service.id-service-url}")
`
dubbo.service.id-service-url 这个配置官方是不支持的,所以想自己配置,不知道是否支持
开发测试的时候无法直连到集群的服务…
-
尝试如下修改了配置:
dubbo:
protocol:
id: hessian
name: hessian
port: 22426
status: server
启动时候可以看见日志:
[DUBBO] Register dubbo service com.demo.service.IService url hessian://xxxxxx…
-
我在开发以外的环境是这样启动spring boot 项目的
java -jar ./paymentPlatform.jar --spring.config.location= ./paymentPlatform.properties
以此在不同环境下使用不同配置,换上dubbo-spring-boot-starter(0.1.1)后发现
测试环境中,始终读取的都是jar包内的配置,并没有…
iamtt updated
5 years ago
-
近期在项目中集成apollo发现其中一些dubbo配置项都没生效,而其他诸如jdbc等都是正常的,不过动态获取是能拿到dubbo配置项的,但是由于启动时dubbo加载先于apollo拉取去配置中心配置,日志如下:
[10-22 20:39:34,930] INFO [main] LoggerFactory[?] - using logger: com.alibaba.dubbo.common.l…
-
I want to config as follow:
```
dubbo.registry.address=zookeeper://${ZOOKEEPER_ADDRESS:192.168.199.202}:2181?client=curator
```
when start I get follow error:
```
java.lang.NumberFormatException…
ghost updated
5 years ago
-
application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值,例如我把zookeeper的地址写成环境变量的引用( ${DUBBO_REGISTRY_ADDRESS} )时启动报错:
failed to connect to server ${DUBBO_REGISTRY_ADDRESS}:9090
应该这个时候springboo…