action中直接写 @Autowired private TestService testService; 就可以调用service层。 转载于:https://www.cnblogs.com/bianshiguang/p/11057038.html