
// 擷取spring容器
applicationcontext ctx = webapplicationcontextutils.getwebapplicationcontext(this.getservletcontext());
// 插件資料初始化
icommonservice commonservice = (icommonservice) ctx.getbean("commonservice");
commonservice.init();

servletcontext context = request.getsession().getservletcontext();
applicationcontext ctx = webapplicationcontextutils
.getwebapplicationcontext(context);