Commit 892ed4d9 by yangjinjue

Update README.md

parent b228c6a2
......@@ -36,20 +36,19 @@ spring.dubbo.application.name=consumer
spring.dubbo.registry.address=zookeeper://localhost:2181
spring.dubbo.scan=com.zhiwei.demo.client
spring.dubbo.module.default=false
```
`spring.dubbo.scan`表示要扫描的`package`目录。
* 启动入口 `com.zhiwei.demo.client.Client`
```
@SpringBootApplication
public class Client {
private static Logger logger = LoggerFactory.getLogger(Client.class);
public static void main(String[] args) {
ConfigurableApplicationContext run = SpringApplication.run(Client.class, args);
HelloService helloService = run.getBean(HelloService.class);
logger.info(helloService.hello("hello"));
public class Client {
private static Logger logger = LoggerFactory.getLogger(Client.class);
public static void main(String[] args) {
ConfigurableApplicationContext run = SpringApplication.run(Client.class, args);
HelloService helloService = run.getBean(HelloService.class);
logger.info(helloService.hello("hello"));
}
}
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment