问题
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