启动服务器时加载spring中的service,dao

this.config = filterConfig;

ServletContext sc = config.getServletContext();

ac = WebApplicationContextUtils.getWebApplicationContext(sc);

commonCacheService = ac.getBean(CommonCacheService.class);


你可能感兴趣的:(启动服务器时加载spring中的service,dao)