标签:gets org app servlet load let span xml文件 text
import org.springframework.web.context.ContextLoader; // web.xml文件中已经启用数据权限 String enableDataSecurity = ContextLoader.getCurrentWebApplicationContext().getServletContext().getInitParameter("EnableDataSecurity");
web.xml
<!-- Enable data security --> <context-param> <param-name>EnableDataSecurity</param-name> <param-value>true</param-value> </context-param>
得到web.xml中servletContext的context-param
标签:gets org app servlet load let span xml文件 text
原文地址:http://www.cnblogs.com/tonggc1668/p/7985827.html