spring and interfaces

后端 未结 9 813
无人及你
无人及你 2020-12-08 14:45

I read all over the place about how Spring encourages you to use interfaces in your code. I don\'t see it. There is no notion of interface in your spring xml configuration.

9条回答
  •  渐次进展
    2020-12-08 15:18

    it's easy to generate proxies from interfaces.

    if you look at any spring app, you'll see service and persistence interfaces. making that the spring idiom certainly does encourage the use of interfaces. it doesn't get any more explicit than that.

提交回复
热议问题