用jsp读取My SQL数据库里面的数据,结果读出来的是乱码,把jsp页面的charset.pageEncoding属性都改成了UTF-8,My SQL数据库的Collate属性也改成了UTF-8,还是不行. 后来用getBytes()方法读出数据,再用new String()方法设置格式为UTF-8. <% ResultSet rs; String val,v1,v2; String sql="select * from news order by time desc"; rs…
报错信息: Type Status Report Message HTTP method GET is not supported by this URL Description The method received in the request-line is known by the origin server but not supported by the target resource. 我的注册配置为 <servlet-name>AddServlet<servlet-nam…
今天下午,测试环境清算的时候又出现了之前的一个异常,这次把错误信息全部打出来了,java.sql.SQLException: 无法从套接字读取更多的数据,是使用mycat连接oracle的,如下所示: ORA-17410: No more data to read from socket Your database connection has timed out, either due to network problems or due to Oracle reaching the IDLE…