获取ServletContext :
ServletContext app01 = this.getServletContext();
赋值:对象.setAttribute();
app01.setAttribute("name", "kaixuan"); //设置一个值进去
removeAttribute方法,replaceAttribute方法

'


获取ServletContext :
ServletContext app01 = this.getServletContext();
赋值:对象.setAttribute();
app01.setAttribute("name", "kaixuan"); //设置一个值进去
removeAttribute方法,replaceAttribute方法