Annotation-driven dependency injection which handles different environments

前端 未结 2 1025
粉色の甜心
粉色の甜心 2020-12-28 21:56

I think the main reason why many professional does not switch to annotation-driven dependency injection is that it does not support switching between development/test/produc

2条回答
  •  礼貌的吻别
    2020-12-28 22:21

    @Value annotation doesn't work the way you have tried. It can only give you values in form of String. For what you want to achieve you can try Spring Profiles as suggested by @ShyJ.

    Hope this helps you. Cheers.

提交回复
热议问题