非Service层和Controller层调用ssm框架中的方法

1、在调用的类头部加上@Service或@Controller

以加@Service为例:

 2、该类中正常调用

原文地址:https://www.cnblogs.com/qiantao/p/13092036.html