li362692680
li362692680
服务端如何取到request对象??
//父类 public class BaseController{ @Reference private S service; @RequestMapping(value="/delete",produces="application/json;charset=UTF-8",method=RequestMethod.POST) public Result delete(@RequestBody T entity){ return ResultUtil.converter(service.delete(entity)); } } //子类 @RestController @RequestMapping("/questionary") public class QuestionaryController extends BaseController{ } 这种写法消费端不能注入到zk中,也不能调用,启动也不报错,@Reference是否支持这种写法??
如上配置无法扫描接口并注册服务到zk
官方样例中的注解方式样例是使用spring boot方式启动,配置的@DubboComponentScan扫描包,不使用spring boot的时候应该把这个注解写在什么地方?每个提供者和每个消费者类名上都要配置这个注解么??
@DubboComponentScan注解在消费端扫描包时扫描的是 @Service注解??不是@Reference注解?? 启动时报 DubboComponentScanRegistrar-85]-[main]-[INFO] 0 annotated @Service Components { [] }
当spring 配置文件中 设置default-lazy-init="true" 时,不管是注解配置方式还是xml配置文件方式都不起作用。。
com.alibaba.dubbo.container.Main 方法启动jar包报 Duplicate application configs: and 配置方式是在xml文件中 不加这行又报 No such application config! Please add 这个应该怎么配置啊????
使用redis 3.2集群作为注册中心时报 Failed to write provider heartbeat to redis registry. registry: 10.20.13.162:7001, cause: MOVED 6819 10.20.13.162:7000
传入参数是map类型,里面包含pageSize 和 pageNo,会自动分页么?