error

redis通用工具类

旧街凉风 提交于 2019-11-30 09:12:09
public class RedisUtil { private static final Logger LOGGER = Logger.getLogger(RedisUtil.class); private static JedisPool pool = null; private static RedisUtil ru = new RedisUtil(); private RedisUtil() { if (pool == null) { String ip = InitListener.getValue("redis.ip", "192.168.116.207"); int port = Integer.parseInt(InitListener.getValue("redis.port", "5379")); JedisPoolConfig config = new JedisPoolConfig(); // 控制一个pool可分配多少个jedis实例,通过pool.getResource()来获取; // 如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽)。 config.setMaxTotal(10000); // 控制一个pool最多有多少个状态为idle(空闲的)的jedis实例。

error C1189: #error: \"No Target Architecture\"

♀尐吖头ヾ 提交于 2019-11-30 07:21:37
// 错误演示 #include "stdafx.h" #include <Winuser.h> #include <windows.h> int main(int argc, char *argv[], char **envp) { return 0; } fatal error C1189: #error: "No Target Architecture" // 错误修改 #include "stdafx.h" #include <windows.h> #include <Winuser.h> int main(int argc, char *argv[], char **envp) { return 0; } 来源: https://www.cnblogs.com/huafan/p/11571670.html

android ant Compile failed; see the compiler error

99封情书 提交于 2019-11-30 04:04:16
android ant 打包遇到 Compile failed; see the compiler error output for details. 1.把jdk换成jdk1.7 就能看到中文的错误信息,不然有的地方是乱码都看不懂。。。 2.如果遇到 错误: 非法字符: \65279( 在eclipse 中修改提示有非法字符的java文件的编码为:ISO-8859-1 就 看到java文件的开头有些乱码 ,删除即可 .修改完之后,把文件的编码改回utf-8 保存)其他问题就看错误信息修改吧 没错误了 用ant打包即可 来源: oschina 链接: https://my.oschina.net/u/267558/blog/209034

在VS2013中使用boost库遇到的问题及解决

别等时光非礼了梦想. 提交于 2019-11-30 01:45:13
最近的项目需要集成一个使用了boost库的开源库。原本应该是比较简单的工作,因为使用的是VS2013,而boost库是最新下载的1.60.0版本(注:写这篇文章时1.61.0刚好release),结果还是费了一点工夫。现在把它记下来,给自己留个记录备查吧。 经过这么久的发展,boost库其实用起来已经很简单了。首先 下载新版本 的包。在windows下,用zip格式的包是最方便的。然后随便解压到一个目录下,我是解压到了D盘,完成后boost库就放在D:\boost_1_60_0目录下了。 接下来就可以编译boost库了。在命令行下进入D:\boost_1_60_0,运行bootstrap.bat进行配置。配置完成后,显示的提示是运行刚生成的b2.exe即可进行编译。网上一些旧的教程说的是运行bjam.exe,这也是可以的,因为这两个文件其实完全一样,boost可能是为了兼容以前的使用习惯,生成exe后改名复制了一份。 编译的时间较长,但只要之前VS已经正常安装和使用,总会编译完成的。结束后,提示如下: The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: D:\boost_1_60_0 The

FAQ(12):Error querying database. Cause: java.sql.SQLException

纵饮孤独 提交于 2019-11-29 23:57:44
FAQ(11):Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot 解决的不完善!!继续补写方案!如下! Log: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find class: "com.mysql.jdbc.Driver" ### The error may exist in com/smbms/dao/UserMapper.xml ### The error may involve com.smbms.dao.UserMapper.Usershow ### The error occurred while executing a query ### Cause: java.sql.SQLException: Error setting driver on

mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin

回眸只為那壹抹淺笑 提交于 2019-11-29 23:49:33
解决办法 1、 修改用户密码 mysql> alter user 'root'@'localhost' identified by 'youpassword'; 或者 mysql> set password=password("youpassword"); 2、刷新权限 mysql> flush privileges; 来源: https://www.cnblogs.com/ljl-blog/p/11540015.html