04 2013 档案
摘要:update user set name= '**' where account = 'pon' Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect. 0.000 secSET SQL_SAFE_UPDATE
阅读全文
摘要:org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 23 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryStacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
阅读全文
摘要:解决办法,为远程创建用户并给予权限mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> WITH GRANT OPTION;mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';mysql&
阅读全文
摘要:Last packet sent to the server was 0 ms ago.at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:825)at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(Loc
阅读全文
摘要:修改前代码:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();DocumentBuilder builder = factory.newDocumentBuilder();Document document = builder.parse(xmlPath);\\直接将路径名给builder.改后:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();DocumentBuilder builder = factory.ne
阅读全文
摘要:mysql> set character_set_results='gbk';
阅读全文
摘要:首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了
阅读全文