File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ repositories {
2121
2222}
2323dependencies {
24- compile('org.lognet:grpc-spring-boot-starter:2.3.0 ')
24+ compile('org.lognet:grpc-spring-boot-starter:2.3.1 ')
2525}
2626----
2727
Original file line number Diff line number Diff line change 1+ == Version 2.3.1
2+ * Closes #73
3+
14== Version 2.3.0
25* gRPC version upgraded to 1.11.0
36* Fixed #80
Original file line number Diff line number Diff line change 1- version =2.3.1-SNAPSHOT
1+ version =2.3.1
22# group=io.github.lognet
33group =org.lognet
44description =Spring Boot starter for Google RPC.
Original file line number Diff line number Diff line change 1515import org .springframework .core .annotation .AnnotationAwareOrderComparator ;
1616import org .springframework .core .annotation .AnnotationUtils ;
1717import org .springframework .core .annotation .Order ;
18- import org .springframework .core .type .StandardMethodMetadata ;
18+ import org .springframework .core .type .AnnotatedTypeMetadata ;
1919
2020import java .lang .annotation .Annotation ;
2121import java .lang .reflect .Method ;
@@ -158,9 +158,9 @@ private <T> Stream<String> getBeanNamesByTypeWithAnnotation(Class<? extends Anno
158158
159159 if (beansWithAnnotation .containsKey (name )) {
160160 return true ;
161- } else if (beanDefinition .getSource () instanceof StandardMethodMetadata ) {
162- StandardMethodMetadata metadata = ( StandardMethodMetadata ) beanDefinition .getSource ();
163- return metadata . isAnnotated ( annotationType . getName ());
161+ } else if (beanDefinition .getSource () instanceof AnnotatedTypeMetadata ) {
162+ return AnnotatedTypeMetadata . class . cast ( beanDefinition .getSource ()). isAnnotated ( annotationType . getName () );
163+
164164 }
165165
166166 return false ;
You can’t perform that action at this time.
0 commit comments