adriancole opened a new issue #68: Infer dubbo configuration without classpath 
scanning
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/68
 
 
   In the other dubbo starter, I add `@EnableDubboConfiguration` to the below, 
and it automatically configures the reference. I'd like a reference (which is a 
dubbo type for sure) to automatically be provided, whether this is due to 
something similar to `@EnableDubboConfiguration` or otherwise.
   
   I don't want to hard-code string-based package names, as for example I have 
something here scoped to a class. I'd like this to be smart and not require 
maintenance (similar to how spring boot allows you to use `@Import` as 
necessary to be explicit.
   
   ```
   @EnableAutoConfiguration
   @RestController
   @CrossOrigin // So that javascript can be hosted elsewhere
   public class Frontend {
   
     @Reference(url = "dubbo://127.0.0.1:9000") Api api;
   
     @RequestMapping("/") public String callBackend() {
       return api.printDate();
     }
   
     public static void main(String[] args) {
       SpringApplication.run(Frontend.class,
           "--spring.application.name=frontend",
           "--server.port=8081"
       );
     }
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to