摘要:
request.getSession(true):若存在会话则返回该会话,否则新建一个会话。request.getSession(false):若存在会话则返回该会话,否则返回NULL 阅读全文
摘要:
通过类org.springframework.web.filter.CharacterEncodingFilter,定义request和response的编码。具体做法是,在web.xml中定义一个Filter,如下: <!-- Filter 定义 --> <!-- Character Encodi 阅读全文