feign 多包扫描注释方法

Blade 未结 0 1165
zhaixiaobin
zhaixiaobin 剑者 2019-08-23 11:35

采用如下方法即可:

@EnableBladeFeign(basePackages={"org.springblade", "com.xxxx"})


举例:


@EnableBladeFeign(basePackages={"org.springblade", "com.xxx"})
@SpringCloudApplication
public class AuthApplication {

    public static void main(String[] args) {
        BladeApplication.run(AppConstant.APPLICATION_AUTH_NAME, AuthApplication.class, args);
    }

}

回答
  • 消灭零回复
提交回复