Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.7.0 release #432

Merged
merged 2 commits into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,4 @@ Apache Dubbo (incubating)
Copyright 2018-2019 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

This product contains code form the Netty Project:

The Netty Project
=================
Please visit the Netty web site for more information:
* http://netty.io/

Copyright 2014 The Netty Project
The Apache Software Foundation (http://www.apache.org/).
59 changes: 22 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can introduce the latest `dubbo-spring-boot-starter` to your project by addi
```xml
<properties>
<spring-boot.version>2.1.1.RELEASE</spring-boot.version>
<dubbo.version>2.7.0-SNAPSHT</dubbo.version>
<dubbo.version>2.7.0</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -72,11 +72,11 @@ You can introduce the latest `dubbo-spring-boot-starter` to your project by addi
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>2.7.0</version>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
</dependency>
</dependencies>
Expand Down Expand Up @@ -137,13 +137,13 @@ public interface DemoService {
```java
@Service(version = "1.0.0")
public class DefaultDemoService implements DemoService {

/**
* The default value of ${dubbo.application.name} is ${spring.application.name}
*/
* The default value of ${dubbo.application.name} is ${spring.application.name}
*/
@Value("${dubbo.application.name}")
private String serviceName;

public String sayHello(String name) {
return String.format("[%s] : Hello, %s", serviceName, name);
}
Expand All @@ -167,7 +167,6 @@ public interface DemoService {
```properties
# Spring boot application
spring.application.name=dubbo-auto-configuration-provider-demo

# Base packages to scan Dubbo Component: @com.alibaba.dubbo.config.annotation.Service
dubbo.scan.base-packages=org.apache.dubbo.spring.boot.demo.provider.service

Expand All @@ -191,44 +190,32 @@ public interface DemoService {

```java
@EnableAutoConfiguration
public class DubboConsumerBootstrap {

public class DubboAutoConfigurationConsumerBootstrap {
private final Logger logger = LoggerFactory.getLogger(getClass());

@Reference(version = "1.0.0", url = "dubbo://localhost:12345")
@Reference(version = "1.0.0", url = "dubbo://127.0.0.1:12345")
private DemoService demoService;


public static void main(String[] args) {
SpringApplication.run(DubboAutoConfigurationConsumerBootstrap.class).close();
}

@Bean
public ApplicationRunner runner() {
return args -> {
logger.info(demoService.sayHello("mercyblitz"));
};
}

public static void main(String[] args) {
SpringApplication.run(DubboConsumerBootstrap.class).close();
}
}
```

2. configures `application.properties`

```properties
# Spring boot application
spring.application.name = dubbo-consumer-demo
server.port = 8080
management.port = 8081


# Dubbo Config properties
## ApplicationConfig Bean
dubbo.application.id = dubbo-consumer-demo
dubbo.application.name = dubbo-consumer-demo
2. configures `application.yml`

## ProtocolConfig Bean
dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
```yaml
spring:
application:
name: dubbo-auto-configure-consumer-sample
```

If `DubboProviderDemo` works well, please mark sure `DubboProviderDemo` is started.
Expand All @@ -242,7 +229,7 @@ More details, please refer to [Samples](dubbo-spring-boot-samples).
Having trouble with Dubbo Spring Boot? We’d like to help!

- If you are upgrading, read the [release notes](https://github.com/dubbo/dubbo-spring-boot-project/releases) for upgrade instructions and "new and noteworthy" features.
- Ask a question - You can join [ours google groups](https://groups.google.com/group/dubbo), or subscribe [Dubbo User Mailling List](mailto:[email protected]).
- Ask a question - You can subscribe [Dubbo User Mailling List](mailto:[email protected]).
- Report bugs at [github.com/dubbo/dubbo-spring-boot-project/issues](https://github.com/dubbo/dubbo-spring-boot-project/issues).


Expand Down Expand Up @@ -295,5 +282,3 @@ The samples project of Dubbo Spring Boot that includes:
- [Auto-Configuaration Samples](dubbo-spring-boot-samples/auto-configure-samples)
- [Externalized Configuration Samples](dubbo-spring-boot-samples/externalized-configuration-samples)
- [Registry Zookeeper Samples](dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples)
- [Registry Nacos Samples](dubbo-spring-boot-samples/dubbo-registry-nacos-samples)
- [Sample API](dubbo-spring-boot-samples/sample-api)
Loading