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.x #691

Merged
merged 14 commits into from
Apr 6, 2020
Merged

2.7.x #691

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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
![license](https://img.shields.io/github/license/apache/dubbo-spring-boot-project.svg)

[Apache Dubbo](https://github.com/apache/dubbo) Spring Boot Project makes it easy to create [Spring Boot](https://github.com/spring-projects/spring-boot/) application using Dubbo as RPC Framework. What's more, it also provides:

* [auto-configure features](dubbo-spring-boot-autoconfigure) (e.g., annotation-driven, auto configuration, externalized configuration).
* [production-ready features](dubbo-spring-boot-actuator) (e.g., security, health checks, externalized configuration).

Expand All @@ -19,8 +18,8 @@
You can introduce the latest `dubbo-spring-boot-starter` to your project by adding the following dependency to your pom.xml
```xml
<properties>
<spring-boot.version>2.2.2.RELEASE</spring-boot.version>
<dubbo.version>2.7.5</dubbo.version>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<dubbo.version>2.7.6</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -51,7 +50,7 @@ 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>2.7.5</version>
<version>2.7.6</version>
</dependency>
</dependencies>
```
Expand Down
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
您可以为您的工程引入最新 `dubbo-spring-boot-starter` 的发布,增加以下依赖到工程的 `pom.xml` 文件中:
```xml
<properties>
<spring-boot.version>2.2.2.RELEASE</spring-boot.version>
<dubbo.version>2.7.5</dubbo.version>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<dubbo.version>2.7.6</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -72,7 +72,7 @@
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions dubbo-spring-boot-actuator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ Actuator endpoint `dubbo` supports Actuator Endpoints :
{
"timestamp": 1516623290166,
"versions": {
"dubbo-spring-boot": "2.7.3",
"dubbo": "2.7.3"
"dubbo-spring-boot": "2.7.5",
"dubbo": "2.7.5"
},
"urls": {
"dubbo": "https://github.com/apache/dubbo/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -78,6 +79,7 @@
"endpoints.dubboproperties.enabled = true",
})
@EnableAutoConfiguration
@Ignore
public class DubboEndpointAutoConfigurationTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.dubbo.spring.boot.actuate.health;

import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -38,6 +39,8 @@
*/
@RunWith(SpringRunner.class)
@TestPropertySource(properties = {
"dubbo.application.id = my-application-1",
"dubbo.application.name = dubbo-demo-application-1",
"dubbo.protocol.id = dubbo-protocol",
"dubbo.protocol.name = dubbo",
"dubbo.protocol.port = 12345",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.apache.dubbo.config.ApplicationConfig;
import org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfigBinding;
import org.apache.dubbo.config.spring.context.properties.DubboConfigBinder;

import org.springframework.boot.context.ContextIdApplicationContextInitializer;
Expand Down Expand Up @@ -143,7 +142,6 @@ public abstract class DubboUtils {
* The property id of {@link ApplicationConfig} Bean
*
* @see EnableDubboConfig
* @see EnableDubboConfigBinding
* @since 2.7.1
*/
public static final String DUBBO_APPLICATION_ID_PROPERTY = "dubbo.application.id";
Expand All @@ -152,7 +150,6 @@ public abstract class DubboUtils {
* The property name of {@link ApplicationConfig}
*
* @see EnableDubboConfig
* @see EnableDubboConfigBinding
* @since 2.7.1
*/
public static final String DUBBO_APPLICATION_NAME_PROPERTY = "dubbo.application.name";
Expand Down
4 changes: 2 additions & 2 deletions dubbo-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<java.target.version>1.8</java.target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.2.2.RELEASE</spring-boot.version>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<dubbo.version>${revision}</dubbo.version>
<!-- Build args -->
<argline>-server -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true
Expand Down Expand Up @@ -443,7 +443,7 @@
<!-- Spring Boot 2.1 -->
<id>spring-boot-2.1</id>
<properties>
<spring-boot.version>2.1.11.RELEASE</spring-boot.version>
<spring-boot.version>2.1.13.RELEASE</spring-boot.version>
</properties>
</profile>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<name>Apache Dubbo Spring Boot :: Samples : Registry Nacos :: Consumer Sample</name>

<properties>
<nacos.version>1.1.1</nacos.version>
<nacos.version>1.2.1</nacos.version>
</properties>

<dependencies>
Expand All @@ -48,9 +48,9 @@

<!-- Dubbo Registry Nacos -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
<version>${revision}</version>
<version>2.7.6</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ demo:
nacos:
host: 127.0.0.1
port: 8848
username: nacos
password: nacos

dubbo:
registry:
address: nacos://${nacos.host}:${nacos.port}
address: nacos://${nacos.host}:${nacos.port}/?username=${nacos.username}&password=${nacos.password}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<name>Apache Dubbo Spring Boot :: Samples : Registry Nacos :: Provider Sample</name>

<properties>
<nacos.version>1.1.1</nacos.version>
<nacos.version>1.2.1</nacos.version>
</properties>

<dependencies>
Expand All @@ -48,9 +48,9 @@

<!-- Dubbo Registry Nacos -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
<version>${revision}</version>
<version>2.7.6</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ dubbo.scan.base-packages=org.apache.dubbo.spring.boot.demo.provider.service
## dubbo.application.name=${spring.application.name}
nacos.server-address = 127.0.0.1
nacos.port = 8848
nacos.username=nacos
nacos.password=nacos

# Dubbo Protocol
dubbo.protocol.name=dubbo
## Random port
dubbo.protocol.port=-1

## Dubbo Registry
dubbo.registry.address=nacos://${nacos.server-address}:${nacos.port}
dubbo.registry.address=nacos://${nacos.server-address}:${nacos.port}/?username=${nacos.username}&password=${nacos.password}

## DemoService version
demo.service.version=1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
package org.apache.dubbo.spring.boot.demo.provider.bootstrap;

import org.apache.dubbo.spring.boot.demo.provider.service.DefaultDemoService;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.env.Environment;

/**
* Dubbo Registry ZooKeeper Provider Bootstrap
Expand All @@ -33,12 +31,6 @@
public class DubboRegistryZooKeeperProviderBootstrap {

public static void main(String[] args) {
new SpringApplicationBuilder(DubboRegistryZooKeeperProviderBootstrap.class)
.listeners((ApplicationListener<ApplicationEnvironmentPreparedEvent>) event -> {
Environment environment = event.getEnvironment();
int port = environment.getProperty("embedded.zookeeper.port", int.class);
new EmbeddedZooKeeper(port, false).start();
})
.run(args);
new SpringApplicationBuilder(DubboRegistryZooKeeperProviderBootstrap.class).run(args);
}
}
Loading