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

Merge 2.7.x branch to master #784

Merged
merged 85 commits into from
Mar 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
d7a1d14
2.7.x (#475)
mercyblitz Mar 27, 2019
01fbe79
2.7.x (#478)
mercyblitz Mar 28, 2019
7af0a02
Merge branch 'master' into 2.7.x
mercyblitz Apr 8, 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
1e4a4c2
2.7.3 (#562)
mercyblitz Jul 29, 2019
bd22b06
2.7.x (#563)
mercyblitz Jul 30, 2019
bc38480
Fix the bugs of Test cases
mercyblitz Jul 30, 2019
cd06321
2.7.3 (#564)
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
57b360b
2.7.x (#565)
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
e21ceff
2.7.x (#573)
mercyblitz Aug 6, 2019
32247f9
Merge branch 'master' into 2.7.x
mercyblitz Aug 9, 2019
a40aca1
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Oct 29, 2019
c2c813a
Polish apache/dubbo-spring-boot-project#607
mercyblitz Oct 29, 2019
f92c194
Merge branch '2.7.x' into 2.7.x
mercyblitz Oct 29, 2019
f2d695a
Merge 2.7.4.1 (#623)
mercyblitz Oct 29, 2019
79d1691
Polish apache/dubbo-spring-boot-project#619
mercyblitz Oct 29, 2019
6d438f1
Merge remote-tracking branch 'origin/2.7.x' into 2.7.x
mercyblitz Oct 29, 2019
40cb80c
Merge branch 'master' into 2.7.x
mercyblitz Nov 7, 2019
f0d68c2
Polish
mercyblitz Dec 16, 2019
e0d0378
Polish apache/dubbo-spring-boot-project#635 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
b50ed60
Update the maven-javadoc-plugin to be 3.1.1
mercyblitz Dec 16, 2019
fa4fdee
Polish apache/dubbo-spring-boot-project#636 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
3565266
Polish apache/dubbo-spring-boot-project#637 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
76dc1ee
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
4430093
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
c233e17
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
cd98762
Polish apache/dubbo-spring-boot-project#642
mercyblitz Dec 31, 2019
25a6296
Correct words
mercyblitz Dec 31, 2019
de84ef6
2.7.5 release (#652)
mercyblitz Jan 3, 2020
1e35339
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Feb 24, 2020
37cb4af
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Feb 25, 2020
d69bb6d
Polish apache/dubbo-spring-boot-project#647
mercyblitz Feb 25, 2020
b39f420
Polish apache/dubbo-spring-boot-project#648 : Remove the external pro…
mercyblitz Feb 25, 2020
43c0534
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Mar 31, 2020
7836638
Polish apache/dubbo-spring-boot-project#688 : [Infrastructure] Upgrad…
mercyblitz Mar 31, 2020
f52286a
Merge remote-tracking branch 'upstream/2.7.x' into 2.7.x
mercyblitz Mar 31, 2020
0774423
Update the samples
mercyblitz Apr 1, 2020
c4e5340
Update the samples
mercyblitz Apr 1, 2020
b66f0cc
Update the samples and documents
mercyblitz Apr 1, 2020
3828941
Merge 2.7.6 (#689)
mercyblitz Apr 1, 2020
9ff9277
Merge branch 'master' into 2.7.x
mercyblitz Apr 6, 2020
9ef994d
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz May 19, 2020
09fd582
Polish apache/dubbo-spring-boot-project#711 : [Infrastructure] Depend…
mercyblitz May 19, 2020
62f6d9a
Polish apache/dubbo-spring-boot-project#711 : [Infrastructure] Depend…
mercyblitz May 19, 2020
c7952be
Merge branch '2.7.x' into 2.7.x
mercyblitz May 19, 2020
b33d518
[Infrastructure] Dependency upgrades for 2.7.7 #711 (#712)
mercyblitz May 19, 2020
a282847
Polish apache/dubbo-spring-boot-project#713 : [Refactor] Using @Dubbo…
mercyblitz May 20, 2020
be01fa6
Merge remote-tracking branch 'origin/2.7.x' into 2.7.x
mercyblitz May 20, 2020
b00c091
Merge remote-tracking branch 'upstream/2.7.x' into 2.7.x
mercyblitz May 20, 2020
62629ee
[Refactor] Using @DubboReferece and @DubboService (#714)
mercyblitz May 20, 2020
8613a82
Polish apache/dubbo-spring-boot-project#715 : [Samples] Adding the se…
mercyblitz May 21, 2020
2608b39
Polish apache/dubbo-spring-boot-project#715 : [Samples] Adding the se…
mercyblitz May 25, 2020
50996fb
Merge branch '2.7.x' of https://github.com/mercyblitz/dubbo-spring-bo…
mercyblitz May 25, 2020
d1e5055
Merge branch 'mercyblitz-2.7.x' into 2.7.x
mercyblitz May 25, 2020
611fafe
Introducing the samples deployed the external Servlet container (#720)
mercyblitz May 26, 2020
2dc6e37
Duplicate ServiceBean Issue (#721)
mercyblitz May 28, 2020
bbc35a7
2.7.x (#722)
mercyblitz Jun 2, 2020
2dffff8
2.7.9 Release (#741)
mercyblitz Aug 3, 2020
0da9e97
2.7.x (#742)
mercyblitz Aug 3, 2020
ec32800
Merge branch 'master' into 2.7.x
mercyblitz Aug 10, 2020
525f26c
Update version to 2.7.9-SNAPSHOT (#775)
kylixs Jan 25, 2021
0957a5b
Replace tomcat8-maven-plugin with tomcat7-maven-plugin (#755)
kylixs Mar 12, 2021
a8c3463
Merge 2.7.9 release (#783)
AlbumenJ Mar 18, 2021
f9f9909
upgrade to 2.7.10-SNAPSHOT
AlbumenJ Mar 18, 2021
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
103 changes: 103 additions & 0 deletions .github/workflows/dubbo-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Dubbo 2

on:
pull_request:
paths:
- "**"
- "!**/*.md"
- "!docs/**"
push:
paths:
- '**'
- "!**/*.md"
- "!docs/**"
workflow_dispatch:

env:
DUBBO_REF: 'master'

jobs:
build-dubbo:
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Map a step output to a job output
outputs:
commit_id: ${{ steps.git-checker.outputs.commit_id }}
cache-hit: ${{ steps.dubbocache.outputs.cache-hit }}
steps:
- uses: actions/checkout@v2
with:
repository: 'apache/dubbo'
ref: ${{env.DUBBO_REF}}
- name: Get commit id and dubbo version
id: git-checker
run: |
#compare dubbo commit id
last_commit_id=`git log --format="%H" -n 1`
echo "::set-output name=commit_id::$last_commit_id"
echo "commit_id: $last_commit_id"
# Calculate Dubbo Version
REVISION=`awk '/<revision>[^<]+<\/revision>/{gsub(/<revision>|<\/revision>/,"",$1);print $1;exit;}' pom.xml`
mkdir dubbo-version
echo $REVISION > dubbo-version/dubbo-version
echo "dubbo version: $REVISION"
- name: Upload Dubbo version
uses: actions/upload-artifact@v2
with:
name: dubbo-version
path: dubbo-version
- name: Dubbo cache
id: dubbocache
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{steps.git-checker.outputs.commit_id}}
- name: Cache local Maven repository
if: steps.dubbocache.outputs.cache-hit != 'true'
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-dubbo-${{env.DUBBO_REF}}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-dubbo-${{env.DUBBO_REF}}-maven-
- name: Set up JDK 8
if: steps.dubbocache.outputs.cache-hit != 'true'
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build dubbo
if: steps.dubbocache.outputs.cache-hit != 'true'
run: |
./mvnw -U --batch-mode --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3 clean install -Dmaven.test.skip=true -Dmaven.test.skip.exec=true

build-dubbo-spring-boot:
needs: [build-dubbo]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-dubbo-spring-boot-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-dubbo-spring-boot-maven-
- name: Dubbo cache
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{needs.build-dubbo.outputs.commit_id}}
- name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- name: Build dubbo-spring-boot
run: |
./mvnw -U --batch-mode --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3 clean package
- name: Codecov
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Dubbo
Copyright 2018-2020 The Apache Software Foundation
Copyright 2018-2021 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can introduce the latest `dubbo-spring-boot-starter` to your project by addi
```xml
<properties>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<dubbo.version>2.7.7</dubbo.version>
<dubbo.version>2.7.8</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -50,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.7</version>
<version>2.7.8</version>
</dependency>
</dependencies>
```
Expand Down Expand Up @@ -117,7 +117,7 @@ public interface DemoService {
1. Service Provider implements `DemoService`

```java
@Service(version = "1.0.0")
@DubboService(version = "1.0.0")
public class DefaultDemoService implements DemoService {

/**
Expand Down Expand Up @@ -176,7 +176,7 @@ public interface DemoService {

private final Logger logger = LoggerFactory.getLogger(getClass());

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

public static void main(String[] args) {
Expand Down Expand Up @@ -263,8 +263,8 @@ 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)
- [Registry Zookeeper Samples](https://github.com/apache/dubbo-spring-boot-project/tree/master/dubbo-spring-boot-samples/registry-samples/zookeeper-samples)
- [Registry Nacos Samples](https://github.com/apache/dubbo-spring-boot-project/tree/master/dubbo-spring-boot-samples/registry-samples/nacos-samples)



Expand Down
14 changes: 7 additions & 7 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
```xml
<properties>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<dubbo.version>2.7.7</dubbo.version>
<dubbo.version>2.7.8</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.7</version>
<version>2.7.8</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -141,7 +141,7 @@ public interface DemoService {
1. 实现 `DemoService` 接口

```java
@Service(version = "1.0.0")
@DubboService(version = "1.0.0")
public class DefaultDemoService implements DemoService {

/**
Expand Down Expand Up @@ -197,15 +197,15 @@ public interface DemoService {
### 实现 Dubbo 服务消费方


1. 通过 `@Reference` 注入 `DemoService` :
1. 通过 `@DubboReference` 注入 `DemoService` :

```java
@EnableAutoConfiguration
public class DubboAutoConfigurationConsumerBootstrap {

private final Logger logger = LoggerFactory.getLogger(getClass());

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

public static void main(String[] args) {
Expand Down Expand Up @@ -288,8 +288,8 @@ Dubbo Spring Boot 示例工程包括:

- [自动装配](dubbo-spring-boot-samples/auto-configure-samples)
- [外部化配置](dubbo-spring-boot-samples/externalized-configuration-samples)
- [Zookeeper 注册中心](dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples)
- [Nacos 注册中心](dubbo-spring-boot-samples/dubbo-registry-nacos-samples)
- [Zookeeper 注册中心](https://github.com/apache/dubbo-spring-boot-project/tree/master/dubbo-spring-boot-samples/registry-samples/zookeeper-samples)
- [Nacos 注册中心](https://github.com/apache/dubbo-spring-boot-project/tree/master/dubbo-spring-boot-samples/registry-samples/nacos-samples)



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.autoconfigure;

import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.model.ApplicationModel;
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboConfigsMetadataEndpoint;
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboMetadataEndpoint;
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboPropertiesMetadataEndpoint;
Expand All @@ -26,7 +27,9 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -102,6 +105,16 @@ public class DubboEndpointAnnotationAutoConfigurationTest {
@Value("http://127.0.0.1:${local.management.port}${management.endpoints.web.base-path:/actuator}")
private String actuatorBaseURL;

@Before
public void init() {
ApplicationModel.reset();
}

@After
public void destroy() {
ApplicationModel.reset();
}

@Test
public void testShutdown() throws Exception {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
*/
package org.apache.dubbo.spring.boot.actuate.endpoint;

import org.apache.dubbo.rpc.model.ApplicationModel;
import org.apache.dubbo.spring.boot.util.DubboUtils;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -40,6 +43,9 @@
@SpringBootTest(
classes = {
DubboMetadataEndpoint.class
},
properties = {
"dubbo.application.name = dubbo-demo-application"
}
)
@EnableAutoConfiguration
Expand All @@ -49,6 +55,16 @@ public class DubboEndpointTest {
@Autowired
private DubboMetadataEndpoint dubboEndpoint;

@Before
public void init() {
ApplicationModel.reset();
}

@After
public void destroy() {
ApplicationModel.reset();
}

@Test
public void testInvoke() {

Expand Down

This file was deleted.

Loading