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 #573

Merged
merged 93 commits into from
Aug 6, 2019
Merged

2.7.x #573

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
1494a77
Fix apache/incubator-dubbo-spring-boot-project#169
mercyblitz Jun 8, 2018
0efa7c9
Merge remote-tracking branch 'upstream/master'
mercyblitz Jun 8, 2018
58e2c91
correct some wrongly written chinese characters in the README_CN.md
feichangxinfu Oct 30, 2018
531debd
Merge remote-tracking branch 'upstream/master'
mercyblitz Dec 7, 2018
d01cf26
0.2.1 (#345)
mercyblitz Dec 27, 2018
7021e60
0.2.1 (#346)
mercyblitz Dec 27, 2018
4cadcb6
0.2.1 (#357)
mercyblitz Jan 7, 2019
b5957e5
Remove dubbo-spring-boot-sample-consumer
mercyblitz Jan 7, 2019
dae4913
0.2.1 (#360)
mercyblitz Jan 8, 2019
4530413
Merge branch 'master' into 0.2.1
mercyblitz Jan 8, 2019
84ae184
0.2.1 (#367)
mercyblitz Jan 9, 2019
7ada763
0.2.1 (#372) (#374)
mercyblitz Jan 9, 2019
64095bc
0.2.1 (#378)
mercyblitz Jan 9, 2019
79e9fa8
0.2.1 (#389)
mercyblitz Jan 14, 2019
ef626c8
Merge branch 'master' into 0.2.1-release
mercyblitz Jan 21, 2019
0f93efb
Merge remote-tracking branch 'upstream/master'
mercyblitz Jan 24, 2019
ac98c7b
Remove spring.providers file from starter module (#403) (#404)
zhiwsun Jan 25, 2019
d7ff623
add @Override annotation (#409)
viviennes7 Jan 25, 2019
a02d6f1
to method reference (#410)
viviennes7 Jan 25, 2019
e8f6b8f
Update README.md
mercyblitz Jan 27, 2019
5adb2d8
Update README_CN.md
mercyblitz Jan 27, 2019
b03d006
Update README_CN.md
mercyblitz Jan 27, 2019
9f5024d
Update README.md
mercyblitz Jan 27, 2019
859b7ce
Merge branch '0.2.x' into master
mercyblitz Jan 27, 2019
73ad6b9
Sync master to 0.2.x (#417)
mercyblitz Jan 27, 2019
30154b5
Update README.md
mercyblitz Jan 28, 2019
c98f371
Update README_CN.md
mercyblitz Jan 28, 2019
d89ef99
Replace ${project.version} to ${revision} in the "pom.xml" files
mercyblitz Jan 29, 2019
3de5a51
Update <projectId>
mercyblitz Jan 29, 2019
2dc44c9
Update README.md
mercyblitz Jan 29, 2019
b77a096
Update README_CN.md
mercyblitz Jan 29, 2019
c539646
Merge branch 'master' into 0.2.x
mercyblitz Jan 30, 2019
9729fa6
0.2.x (#422)
mercyblitz Jan 30, 2019
7d102eb
Merge remote-tracking branch 'upstream/master'
mercyblitz Jan 30, 2019
1fea772
Merge remote-tracking branch 'upstream/0.2.x'
mercyblitz Jan 30, 2019
3797561
Merge remote-tracking branch 'upstream/master'
mercyblitz Feb 25, 2019
033421d
Polish apache/incubator-dubbo-spring-boot-project#449
mercyblitz Feb 25, 2019
fa4c06a
Polish apache/incubator-dubbo-spring-boot-project#467 : Set "spring.m…
mercyblitz Mar 19, 2019
f705e64
Polish apache/incubator-dubbo-spring-boot-project#468 : Upgrade Dubbo…
mercyblitz Mar 19, 2019
a18ed48
Polish apache/incubator-dubbo-spring-boot-project#437 : Remove -XX:Pe…
mercyblitz Mar 19, 2019
63d54c1
Fix the issues of test cases
mercyblitz Mar 19, 2019
367d707
Update Samples
mercyblitz Mar 19, 2019
31c6771
Update default version using Dubbo's version
mercyblitz Mar 19, 2019
4c5d205
Polish apache/incubator-dubbo-spring-boot-project#456 : Update the Zo…
mercyblitz Mar 19, 2019
49aef0b
Polish apache/incubator-dubbo-spring-boot-project#458 : dubbo.metadat…
mercyblitz Mar 20, 2019
9429525
Polish apache/incubator-dubbo-spring-boot-project#458 : dubbo.metadat…
mercyblitz Mar 20, 2019
a5815ea
Update 2.7.1
mercyblitz Mar 20, 2019
7bc44d2
Polish apache/incubator-dubbo-spring-boot-project#458 : Add "override…
mercyblitz Mar 20, 2019
709d411
Merge branch 'master' into incubator-dubbo-spring-boot-project-branch
mercyblitz Mar 20, 2019
a14cd34
Merge pull request #1 from feichangxinfu/incubator-dubbo-spring-boot-…
mercyblitz Mar 20, 2019
7e0816c
Polish apache/incubator-dubbo-spring-boot-project#451 : Duplicate app…
mercyblitz Mar 20, 2019
fda8aca
Bugfix
mercyblitz Mar 20, 2019
25f0b03
Update SNAPSHOT
mercyblitz Mar 20, 2019
006cadc
Update 2.7.1
mercyblitz Mar 27, 2019
bf928e2
Merge branch '2.7.x' into 2.7.x
mercyblitz Mar 27, 2019
af590e9
Remove uesless files in source code distribution.
mercyblitz Mar 28, 2019
eb10705
Merge remote-tracking branch 'origin/2.7.x' into 2.7.x
mercyblitz Mar 28, 2019
272331c
Merge 2.7.1 to master (#487)
mercyblitz Apr 8, 2019
4014a9c
Merge pull request #4 from mercyblitz/2.7.x
mercyblitz Apr 11, 2019
a4f21f0
Polish apache/incubator-dubbo-spring-boot-project#488
mercyblitz Apr 11, 2019
2c7b890
Update ASF License
mercyblitz Apr 11, 2019
98bcc53
Merge branch 'master' into master
mercyblitz Apr 11, 2019
6601aae
Add Nacos Samples (#489)
mercyblitz Apr 11, 2019
3320f2b
Update README.md
mercyblitz Apr 11, 2019
43ec541
Update README_CN.md
mercyblitz Apr 11, 2019
23a8c84
Fix build failure (#504)
biyuhao May 6, 2019
58648b7
Update README_CN.md (#483)
DeppWang May 6, 2019
e8b9530
fix #503 (#511)
foreveryang321 May 17, 2019
2960671
2.7.x (#520)
mercyblitz May 28, 2019
d75ba20
Merge branch 'master' into master
mercyblitz May 28, 2019
877c9ef
Merge pull request #5 from apache/master
mercyblitz May 28, 2019
515164e
Merge pull request #6 from mercyblitz/master
mercyblitz May 28, 2019
eb9e8a6
Update revision to be 2.7.2-SNAPSHOT
mercyblitz May 28, 2019
cddcd95
Polish apache/dubbo-spring-boot-project#494 : AwaitingNonWebApplicati…
mercyblitz May 28, 2019
e740196
Polish apache/dubbo-spring-boot-project#496 : Dubbo Spring Boot 2.7.1…
mercyblitz May 28, 2019
ee223ec
Polish apache/dubbo-spring-boot-project#494 : AwaitingNonWebApplicati…
mercyblitz May 28, 2019
0203caf
Polish apache/dubbo-spring-boot-project#496 : Dubbo Spring Boot 2.7.1…
mercyblitz May 28, 2019
bb5f8d9
Polish apache/dubbo-spring-boot-project#553 : Upgrade the dependencie…
mercyblitz Jul 18, 2019
33b8ed8
Polish apache/dubbo-spring-boot-project#553 : Upgrade Spring Boot to …
mercyblitz Jul 18, 2019
24ff965
Polish apache/dubbo-spring-boot-project#554 : To change the Dependenc…
mercyblitz Jul 18, 2019
7095840
Polish apache/dubbo-spring-boot-project#560 : [QA] Fix the bugs of te…
mercyblitz Jul 29, 2019
d0eebc7
Polish apache/dubbo-spring-boot-project#561 : [Version] Upgrade Dubbo…
mercyblitz Jul 29, 2019
4b1b865
Polish apache/dubbo-spring-boot-project#555 : Add the Maven profiles …
mercyblitz Jul 29, 2019
871251a
Polish apache/dubbo-spring-boot-project#555 : [Feature] Add the Maven…
mercyblitz Jul 29, 2019
4816758
Update Documents' version
mercyblitz Jul 29, 2019
5ca5018
Merge branch '2.7.x' into 2.7.x
mercyblitz Jul 29, 2019
bc38480
Fix the bugs of Test cases
mercyblitz Jul 30, 2019
f0d5dec
Merge remote-tracking branch 'upstream/2.7.x' into 2.7.x
mercyblitz Jul 30, 2019
b73a7e3
Fix the bugs of Test cases
mercyblitz Jul 30, 2019
ea56e86
Polish apache/dubbo-spring-boot-project#569 : DISCLAIMER can be removed
mercyblitz Aug 6, 2019
9bc8201
Polish apache/dubbo-spring-boot-project#571 : Remove incubating and D…
mercyblitz Aug 6, 2019
6cd2de5
Polish apache/dubbo-spring-boot-project#496 : [Issue] Dubbo Spring Bo…
mercyblitz Aug 6, 2019
8a620ca
Polish apache/dubbo-spring-boot-project#496 : Fixes the test cases
mercyblitz Aug 6, 2019
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
1 change: 0 additions & 1 deletion DISCLAIMER

This file was deleted.

2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache Dubbo (incubating)
Apache Dubbo
Copyright 2018-2019 The Apache Software Foundation

This product includes software developed at
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
[![codecov](https://codecov.io/gh/apache/dubbo-spring-boot-project/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/dubbo-spring-boot-project)
![license](https://img.shields.io/github/license/apache/dubbo-spring-boot-project.svg)

[Apache Dubbo(incubating)](https://github.com/apache/incubator-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
[Apache Dubbo](https://github.com/apache/incubator-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).

> Apache Dubbo (incubating) |ˈdʌbəʊ| is a high-performance, light weight, java based RPC framework. Dubbo offers three key functionalities, which include interface based remote call, fault tolerance & load balancing, and automatic service registration & discovery.
> Apache Dubbo |ˈdʌbəʊ| is a high-performance, light weight, java based RPC framework. Dubbo offers three key functionalities, which include interface based remote call, fault tolerance & load balancing, and automatic service registration & discovery.

## [中文说明](README_CN.md)

Expand Down
4 changes: 2 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
[![codecov](https://codecov.io/gh/apache/dubbo-spring-boot-project/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/dubbo-spring-boot-project)
![license](https://img.shields.io/github/license/apache/dubbo-spring-boot-project.svg)

[Dubbo](https://dubbo.apache.org/zh-cn/index.html) Apache Dubbo™ (incubating)是一款高性能Java RPC框架。
[Dubbo](https://dubbo.apache.org/zh-cn/index.html) Apache Dubbo™ 是一款高性能Java RPC框架。
[Spring Boot](https://github.com/spring-projects/spring-boot/) 应用场景的开发。同时也整合了 Spring Boot 特性:

* [自动装配](dubbo-spring-boot-autoconfigure) (比如: 注解驱动, 自动装配等).
* [Production-Ready](dubbo-spring-boot-actuator) (比如: 安全, 健康检查, 外部化配置等).

> Apache Dubbo (incubating) |ˈdʌbəʊ| 是一款高性能、轻量级的开源Java RPC框架,它提供了三大核心能力:面向接口的远程方法调用,智能容错和负载均衡,以及服务自动注册和发现。
> Apache Dubbo |ˈdʌbəʊ| 是一款高性能、轻量级的开源Java RPC框架,它提供了三大核心能力:面向接口的远程方法调用,智能容错和负载均衡,以及服务自动注册和发现。


## [English README](README_CN.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void testServices() {

Assert.assertEquals(1, services.size());

Map<String, Object> demoServiceMeta = services.get("providers:my-protocol:org.apache.dubbo.spring.boot.actuate.autoconfigure.DubboEndpointAnnotationAutoConfigurationTest$DemoService:1.0.0");
Map<String, Object> demoServiceMeta = services.get("ServiceBean:org.apache.dubbo.spring.boot.actuate.autoconfigure.DubboEndpointAnnotationAutoConfigurationTest$DemoService:1.0.0");

Assert.assertEquals("1.0.0", demoServiceMeta.get("version"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor;
import org.apache.dubbo.config.spring.context.properties.DubboConfigBinder;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.ObjectProvider;
Expand All @@ -37,6 +36,9 @@

import static org.apache.dubbo.spring.boot.util.DubboUtils.BASE_PACKAGES_PROPERTY_RESOLVER_BEAN_NAME;
import static org.apache.dubbo.spring.boot.util.DubboUtils.RELAXED_DUBBO_CONFIG_BINDER_BEAN_NAME;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
* {@link DubboRelaxedBinding2AutoConfiguration} Test
Expand Down Expand Up @@ -65,23 +67,30 @@ public class DubboRelaxedBinding2AutoConfigurationTest {
@Autowired
private Environment environment;

@Autowired
private PropertyResolver primaryPropertyResolver;

@Autowired
private Map<String, Environment> environments;

@Test
public void testBeans() {
Assert.assertTrue(ClassUtils.isAssignableValue(BinderDubboConfigBinder.class, dubboConfigBinder));
Assert.assertNotNull(serviceAnnotationBeanPostProcessor);
Assert.assertNotNull(serviceAnnotationBeanPostProcessor.getIfAvailable());
Assert.assertNotNull(referenceAnnotationBeanPostProcessor);
Assert.assertNotNull(referenceAnnotationBeanPostProcessor.getIfAvailable());

Assert.assertNotNull(environment);
Assert.assertNotNull(environments);
assertTrue(ClassUtils.isAssignableValue(BinderDubboConfigBinder.class, dubboConfigBinder));

assertNotNull(serviceAnnotationBeanPostProcessor);
assertNotNull(serviceAnnotationBeanPostProcessor.getIfAvailable());
assertNotNull(referenceAnnotationBeanPostProcessor);
assertNotNull(referenceAnnotationBeanPostProcessor.getIfAvailable());

assertNotNull(environment);
assertNotNull(primaryPropertyResolver);
assertNotNull(environments);

Assert.assertEquals(1, environments.size());
assertEquals(primaryPropertyResolver, environment);
assertEquals(2, environments.size());

Assert.assertTrue(environments.containsValue(environment));
assertTrue(environments.containsValue(environment));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.dubbo.config.spring.context.annotation.DubboConfigConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
Expand All @@ -32,6 +33,8 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;
import org.springframework.core.env.PropertyResolver;

import java.util.Set;
Expand Down Expand Up @@ -105,4 +108,17 @@ protected static class SingleDubboConfigConfiguration {
@Import(DubboConfigConfiguration.Multiple.class)
protected static class MultipleDubboConfigConfiguration {
}

/**
* Build a primary {@link PropertyResolver} bean to {@link Autowired @Autowired}
*
* @param environment {@link Environment}
* @return alias bean for {@link Environment}
* @since 2.7.3
*/
@Bean
@Primary
public PropertyResolver primaryPropertyResolver(Environment environment) {
return environment;
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
</mailingLists>
<developers>
<developer>
<id>Apache Dubbo (incubating)</id>
<name>The Apache Dubbo (incubating) Project Contributors</name>
<id>Apache Dubbo </id>
<name>The Apache Dubbo Project Contributors</name>
<email>[email protected]</email>
<url>http://dubbo.apache.org</url>
</developer>
Expand Down