摘要:
shuts down an ExecutorService in two phases, first by calling shutdown to reject incoming tasks, and then calling shutdownNow, if necessary, to cancel any lingering tasks: void shutdownAndAwaitTermination(ExecutorService pool) { pool.shutdown(); // Disable new tasks from being submitted try { ... 阅读全文
摘要:
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& 阅读全文