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

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

以加@Service为例:

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

 2、该类中正常调用

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