ServletContext servletContext =
request.getSession(true).getServletContext();
WebApplicationContext
webApplicationContext=WebApplicationContextUtils.getWebApplicatio
nContext(servletContext);
UserService userService =
(UserService)webApplicationContext.getBean("userservice");
转载请注明原文地址: https://ibbs.8miu.com/read-2209018.html