阅读背景:

Spring Bean类可以包含静态方法吗?

来源:互联网 

I hope this isn't too noob of a question, I'm still quite new to Spring. Can a bean class contain static methods? My initial thoughts is no because a static method is global, there's one instance per the entire application and threads to share but a bean might not be defined as such.I hope this isn't too noob of a question, I'm s




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

分享到: