-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from buession/development
Release 2.3.0
- Loading branch information
Showing
45 changed files
with
751 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,19 +19,18 @@ | |
* +-------------------------------------------------------------------------------------------------------+ | ||
* | License: http://www.apache.org/licenses/LICENSE-2.0.txt | | ||
* | Author: Yong.Teng <[email protected]> | | ||
* | Copyright @ 2013-2020 Buession.com Inc. | | ||
* | Copyright @ 2013-2023 Buession.com Inc. | | ||
* +-------------------------------------------------------------------------------------------------------+ | ||
*/ | ||
package com.buession.springcloud.config.server; | ||
|
||
import com.buession.core.utils.VersionUtils; | ||
import org.springframework.cloud.config.server.config.ConfigServerAutoConfiguration; | ||
|
||
/** | ||
* @author Yong.Teng | ||
*/ | ||
public class CloudConfigServer { | ||
|
||
public final static String VERSION = VersionUtils.determineClassVersion(ConfigServerAutoConfiguration.class); | ||
public final static String VERSION = VersionUtils.determineClassVersion(CloudConfigServer.class); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ | |
* +-------------------------------------------------------------------------------------------------------+ | ||
* | License: http://www.apache.org/licenses/LICENSE-2.0.txt | | ||
* | Author: Yong.Teng <[email protected]> | | ||
* | Copyright @ 2013-2020 Buession.com Inc. | | ||
* | Copyright @ 2013-2023 Buession.com Inc. | | ||
* +-------------------------------------------------------------------------------------------------------+ | ||
*/ | ||
package com.buession.springcloud.config.server; | ||
|
||
import com.buession.springboot.boot.application.Application; | ||
import com.buession.springboot.web.application.AbstractWebApplication; | ||
import com.buession.springboot.web.utils.WebApplicationTypeBuilder; | ||
import org.springframework.boot.Banner; | ||
import org.springframework.boot.WebApplicationType; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration; | ||
|
@@ -68,7 +70,7 @@ public static void main(final String[] args){ | |
} | ||
|
||
@Override | ||
protected Banner getBanner(){ | ||
public Banner getBanner(){ | ||
return new CloudConfigServerBanner(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* +-------------------------------------------------------------------------------------------------------+ | ||
* | License: http://www.apache.org/licenses/LICENSE-2.0.txt | | ||
* | Author: Yong.Teng <[email protected]> | | ||
* | Copyright @ 2013-2022 Buession.com Inc. | | ||
* | Copyright @ 2013-2023 Buession.com Inc. | | ||
* +-------------------------------------------------------------------------------------------------------+ | ||
*/ | ||
package com.buession.springcloud.feign.interceptor; | ||
|
@@ -84,8 +84,7 @@ public AbstractClientHeadersRequestInterceptor(){ | |
* | ||
* @since 2.1.0 | ||
*/ | ||
public AbstractClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, | ||
Set<String> ignoreHeaderNames){ | ||
public AbstractClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, Set<String> ignoreHeaderNames){ | ||
this.allowedHeaderNames = allowedHeaderNames; | ||
this.ignoreHeaderNames = ignoreHeaderNames; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* +-------------------------------------------------------------------------------------------------------+ | ||
* | License: http://www.apache.org/licenses/LICENSE-2.0.txt | | ||
* | Author: Yong.Teng <[email protected]> | | ||
* | Copyright @ 2013-2022 Buession.com Inc. | | ||
* | Copyright @ 2013-2023 Buession.com Inc. | | ||
* +-------------------------------------------------------------------------------------------------------+ | ||
*/ | ||
package com.buession.springcloud.feign.interceptor.reactive; | ||
|
@@ -57,8 +57,7 @@ public ReactiveClientHeadersRequestInterceptor(){ | |
* | ||
* @since 2.1.0 | ||
*/ | ||
public ReactiveClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, | ||
Set<String> ignoreHeaderNames){ | ||
public ReactiveClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, Set<String> ignoreHeaderNames){ | ||
super(allowedHeaderNames, ignoreHeaderNames); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* +------------------------------------------------------------------------------------------------+ | ||
* | License: http://www.apache.org/licenses/LICENSE-2.0.txt | | ||
* | Author: Yong.Teng <[email protected]> | | ||
* | Copyright @ 2013-2022 Buession.com Inc. | | ||
* | Copyright @ 2013-2023 Buession.com Inc. | | ||
* +------------------------------------------------------------------------------------------------+ | ||
*/ | ||
package com.buession.springcloud.feign.interceptor.servlet; | ||
|
@@ -61,8 +61,7 @@ public ServletClientHeadersRequestInterceptor(){ | |
* | ||
* @since 2.1.0 | ||
*/ | ||
public ServletClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, | ||
Set<String> ignoreHeaderNames){ | ||
public ServletClientHeadersRequestInterceptor(Set<String> allowedHeaderNames, Set<String> ignoreHeaderNames){ | ||
super(allowedHeaderNames, ignoreHeaderNames); | ||
} | ||
|
||
|
@@ -78,16 +77,14 @@ public void apply(final RequestTemplate requestTemplate){ | |
while(headerNames != null && headerNames.hasMoreElements()){ | ||
String name = headerNames.nextElement(); | ||
|
||
if(isIgnoreHeaderName(name) == false){ | ||
Enumeration<String> value = request.getHeaders(name); | ||
List<String> values = new ArrayList<>(); | ||
Enumeration<String> value = request.getHeaders(name); | ||
List<String> values = new ArrayList<>(); | ||
|
||
while(value != null && value.hasMoreElements()){ | ||
values.add(value.nextElement()); | ||
} | ||
|
||
applyHeader(requestTemplate, name, values); | ||
while(value != null && value.hasMoreElements()){ | ||
values.add(value.nextElement()); | ||
} | ||
|
||
applyHeader(requestTemplate, name, values); | ||
} | ||
}catch(IllegalStateException e){ | ||
logger.error(e.getMessage()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.