java - 有没有办法在注解@EnableFeignClient 中传递多个基础包
问题描述
我目前正在使用 1.4.4.RELEASE 版本的 spring-cloud-starter-openfeign。
我已经用@EnableFeignClients 注释了我的主类,并且由于项目的结构,我在多个包中有假装客户端。
因此,我尝试使用多个包添加 basepackages 属性,但出现编译时错误。
@EnableFeignClients(basePackages = {"com.abc.proj.services.api.client", "com.abc.pro.console.feign"})
出现以下错误:
',' 出乎意料
解决方案
推荐阅读
- mongodb - 找到场景中副本最多的场景(必须指定剧名、幕名和场景名)
- node.js - NodeJS - PostgreSQL - 增加循环计数器数量时出错
- swiftui - 引用不同文件中的类?
- r - 提取字符串并在 R 中保留一些分隔符,但不保留其他分隔符
- php - DELETE Record from database after 10 seconds of insertion of record
- angular - 如何将多个选择复选框值转换为Angular中表单数组内的项目列表?
- python - Tornado 会话无效到期
- intellij-idea - Intellij“选择打开的文件”按钮不起作用
- react-native - 通过在本机反应中获取数据而遇到条件问题
- javascript - 如何让按钮在 React 中触发文件输入 onChange?