File tree 7 files changed +18
-15
lines changed
spring-boot-annotationProcessor
spring-boot-dubbo3/spring-boot-dubbo3-consumer/src/main/java/com/ooooo/config
spring-bugs-report/src/main/java/com/ooooo/properties
spring-cloud-examples/spring-cloud-authorize-server
spring-extension-examples/spring-mvc-argumentResolver
7 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ dependencyManagement {
5
5
}
6
6
7
7
dependencies {
8
- annotationProcessor project(" :spring-boot-annotationProcessor" )
9
- testAnnotationProcessor project(" :spring-boot-annotationProcessor" )
8
+ // annotationProcessor project(":spring-boot-annotationProcessor")
9
+ // testAnnotationProcessor project(":spring-boot-annotationProcessor")
10
10
implementation(files(" ${ System.properties['java.home']} /../lib/tools.jar" ))
11
11
12
12
testImplementation(' com.google.testing.compile:compile-testing:0.19' )
Original file line number Diff line number Diff line change @@ -11,4 +11,6 @@ dependencies {
11
11
12
12
api(" org.springframework.boot:spring-boot-starter-web" )
13
13
api(" org.springframework.boot:spring-boot-starter-security" )
14
+
15
+ testImplementation(" org.springframework.boot:spring-boot-starter-test" )
14
16
}
Original file line number Diff line number Diff line change 1
1
package com .ooooo .config ;
2
2
3
+ import static org .apache .dubbo .common .constants .CommonConstants .TAG_KEY ;
4
+
5
+ import java .util .HashMap ;
6
+ import java .util .Map ;
3
7
import lombok .Setter ;
4
- import org .apache .commons .lang3 .StringUtils ;
5
8
import org .apache .dubbo .common .extension .Activate ;
6
9
import org .apache .dubbo .rpc .Invocation ;
7
10
import org .apache .dubbo .rpc .Invoker ;
10
13
import org .apache .dubbo .rpc .RpcException ;
11
14
import org .apache .dubbo .rpc .cluster .filter .ClusterFilter ;
12
15
import org .springframework .core .env .Environment ;
13
-
14
- import java .util .HashMap ;
15
- import java .util .Map ;
16
-
17
- import static org .apache .dubbo .common .constants .CommonConstants .TAG_KEY ;
16
+ import org .springframework .util .StringUtils ;
18
17
19
18
/**
20
19
* @author <a href="https://github.com/ooooo-youwillsee">ooooo</a>
@@ -38,7 +37,7 @@ public class DevCounterClusterFilter implements ClusterFilter {
38
37
public Result invoke (Invoker <?> invoker , Invocation invocation ) throws RpcException {
39
38
String propertyName = "1" ;
40
39
String dubboTag = dubboTagMappings .get (propertyName );
41
- if (StringUtils .isNotBlank (dubboTag )) {
40
+ if (StringUtils .hasText (dubboTag )) {
42
41
RpcContext .getClientAttachment ().setAttachment (TAG_KEY , dubboTag );
43
42
}
44
43
Result result = invoker .invoke (invocation );
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ dependencyManagement {
5
5
}
6
6
7
7
dependencies {
8
+ api(" com.alibaba:fastjson:1.2.67" )
8
9
api(" org.springframework.boot:spring-boot-starter-web" )
9
10
api(" org.springframework.boot:spring-boot-starter-data-redis" )
10
11
api(" org.redisson:redisson-spring-boot-starter:3.15.3" )
Original file line number Diff line number Diff line change 1
1
package com .ooooo .properties ;
2
2
3
- import com .alibaba .fastjson .JSON ;
4
3
import lombok .extern .slf4j .Slf4j ;
5
4
import org .springframework .beans .factory .annotation .Autowired ;
6
5
import org .springframework .boot .ApplicationRunner ;
@@ -25,7 +24,7 @@ public class EnableConfigurationPropertiesBug {
25
24
@ Bean
26
25
public ApplicationRunner testApplicationRunner () {
27
26
return (args ) -> {
28
- log .info (JSON . toJSONString ( testHelloProperties ) );
27
+ log .info ("{}" , testHelloProperties );
29
28
};
30
29
}
31
30
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ dependencyManagement {
10
10
}
11
11
12
12
dependencies {
13
+ api(" org.apache.commons:commons-collections4:4.4" )
14
+ api(" com.nimbusds:nimbus-jose-jwt:9.7" )
15
+ api(" com.h2database:h2:+" )
16
+
13
17
api(" org.springframework.boot:spring-boot-starter-web" )
14
18
api(" org.springframework.cloud:spring-cloud-starter-netflix-eureka-client" )
15
19
api(" org.springframework.cloud:spring-cloud-starter-security" )
16
20
api(" org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure" )
17
21
api(" org.springframework.boot:spring-boot-starter-jdbc" )
18
- api(" com.nimbusds:nimbus-jose-jwt:9.7" )
19
-
20
- api(" com.h2database:h2:+" )
21
22
api(" org.springframework.boot:spring-boot-starter-thymeleaf" )
22
-
23
23
}
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ dependencyManagement {
7
7
dependencies {
8
8
api(" com.alibaba:fastjson:1.2.67" )
9
9
api(" org.springframework.boot:spring-boot-starter-web" )
10
+
11
+ testImplementation(" org.springframework.boot:spring-boot-starter-test" )
10
12
}
You can’t perform that action at this time.
0 commit comments