Skip to content
Permalink
Browse files

check=false test

  • Loading branch information...
javahongxi committed Apr 17, 2019
1 parent 86e94f2 commit 96f8146e77c835377d3825e7a35ec205d5b7549e
@@ -17,7 +17,7 @@
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.hongxi</groupId>
@@ -12,8 +12,8 @@
public class ConsumerApplication {
public static void main(String[] args) {
ConfigurableApplicationContext context = SpringApplication.run(ConsumerApplication.class, args);
DemoRpc demoRpc = context.getBean(DemoRpc.class);
System.out.println(demoRpc.sayHello("Lily"));
System.out.println(demoRpc.sayHello2("Lily"));
// DemoRpc demoRpc = context.getBean(DemoRpc.class);
// System.out.println(demoRpc.sayHello("Lily"));
// System.out.println(demoRpc.sayHello2("Lily"));
}
}
@@ -0,0 +1,21 @@
package org.hongxi.whatsmars.dubbo.demo.consumer.controller;

import org.hongxi.whatsmars.dubbo.demo.consumer.rpc.DemoRpc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* Created by shenhongxi on 2019/4/17.
*/
@RestController
public class DemoController {

@Autowired
private DemoRpc demoRpc;

@GetMapping("/hello")
public String hello() {
return demoRpc.sayHello("hongxi");
}
}
@@ -12,10 +12,10 @@
@Component
public class DemoRpc {

@Reference
@Reference(check = false)
private DemoService demoService;

@Reference(registry = "otherRegistry")
@Reference(registry = "otherRegistry", check = false)
private OtherService otherService;

public String sayHello(String name) {

0 comments on commit 96f8146

Please sign in to comment.
You can’t perform that action at this time.