阅读背景:

使用附加参数覆盖无状态Spring Service中的方法

来源:互联网 

I'm trying to improve the structure of some code I wrote. I want to override a method of a service, but need another parameter/object for the new functionality. In plain Java, I would solve this by making the needed object an attribute of the class and initialized in the constructor. But because this is a bean, the constructor has no arguments.I'm trying to improve the structure of some cod




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: