Cannot create PoolableConnectionFactory (Communications link failure
来源:互联网 发布:wow for mac 编辑:程序博客网 时间:2024/05/16 09:51
最近在使用SSH做登录系统, tomcat启动的时候报错了
Cannot create PoolableConnectionFactory (Communications link failure
这错有两三页 百思不得其解 之前还好好的
百度无解
goole得出一致的结论:
bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"><property name="driverClassName" value="com.mysql.jdbc.Driver"></property><property name="url" value="jdbc:mysql://127.0.0.1:3306/test?characterEncoding=UTF-8"></property><property name="username" value="root"></property><property name="password" value="root"></property></bean>看到127.0.0.1了吗
本来写的是localhost的 而且运行也是没有问题的
可能就是因为网络环境的变化(个人觉得是操作系统配置被修改导致的)
再次提醒广大高校在校生, 学校所假设的IPV6局域网可能会对有关localhost的调试产生影响
改成127.0.0.1就好使了
- Cannot create PoolableConnectionFactory (Communications link failure
- Mysql: Cannot create PoolableConnectionFactory (Communications link failure
- Cannot create PoolableConnectionFactory (Communications link failure
- 数据库连接失败Cannot create PoolableConnectionFactory (Communications link failure
- Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception 解决
- Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception 解决
- Cannot create PoolableConnectionFactory (Connection authorization failure occurred. Reason: userid)
- Communications link failure
- Communications link failure
- mysql: Communications link failure
- Communications link failure
- Communications Link failure
- Communications link failure
- CommunicationsException: Communications link failure
- Communications link failure
- mysql Communications link failure
- Communications link failure
- Communications link failure
- Java中的Set集合类
- 已解决_Android_Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (
- redis中各种数据类型对应的jedis操作命令
- Ado.net Provider Summary
- 创建Spinner的步骤
- Cannot create PoolableConnectionFactory (Communications link failure
- test韩顺平校内网
- netstat状态分析
- 广州传智播客.NET培训为你解答软件工程师就业前景如何?
- 在Eclipse中维护SVN 的 Tag , Branch
- HDU 46道动态规划题集
- 辗转相除法求最大公约数及最小公倍数的求法
- ubuntu下安装QT
- Java 学习笔记二