代码如下:
public void contextDestroyed(final ServletContextEvent sce) { final ServletContext context=sce.getServletContext(); context.removeAttribute("idlist");//这行提示“Potential violation of Law of Demeter (object not created locally)”请问各位如何修改?}
添加回答
举报
0/150
提交
取消