Micronaut bean conditionals using env

纵然是瞬间 提交于 2019-12-13 04:27:29

问题


I'm working on an micronaut app and I'm using conditional beans using the @Requires(env="test"), @Requires(env="development") and @Requires(env="prod") but when I try to run my application I keep getting the: Caused by: io.micronaut.context.exceptions.NonUniqueBeanException: Multiple possible bean candidates found:

does conditional bean suppport env for it ?

来源:https://stackoverflow.com/questions/56908228/micronaut-bean-conditionals-using-env

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!