oxsean commented on code in PR #14073: URL: https://github.com/apache/dubbo/pull/14073#discussion_r1576514369
########## dubbo-plugin/dubbo-rest-spring/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/SpringMvcRequestMappingResolver.java: ########## @@ -104,4 +113,31 @@ private Builder builder(AnnotationMeta<?> requestMapping, AnnotationMeta<?> resp .consume(requestMapping.getStringArray("consumes")) .produce(requestMapping.getStringArray("produces")); } + + private CorsMeta createCorsMeta(AnnotationMeta<?> crossOrigin) { + CorsMeta meta = new CorsMeta(); + if (crossOrigin == null) { + return meta; Review Comment: I think it's more reasonable to return null -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org