0

WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /web,因为请求参数已经被读取,或者 ServletRequest.getReader() 已经被调用...

`

4

1 回答 1

3

在您的 glassfish-web.xml(如果不存在则创建它)中,<parameter-encoding default-charset="UTF-8"/><glassfish-web-app error-url="">这样添加:

<glassfish-web-app error-url="">
 <parameter-encoding default-charset="UTF-8"/>
</glassfish-web-app>
于 2013-09-24T00:03:05.057 回答