I want to define a Spring Bean CLASS with NO Interface

前端 未结 3 1347
旧巷少年郎
旧巷少年郎 2021-01-02 13:34

I have a spring bean that extends HibernateDaoSupport. I want this bean injected into my Controllers, but I do NOT want it to implement any interface. I just w

3条回答
  •  半阙折子戏
    2021-01-02 14:05

    you can write everything including the mapped controller in the xml as beans, then you don't need to write interfaces. otherwise, with using annotation you need to build interfaces to proxy them.

提交回复
热议问题