随笔分类 -  Bugs

遇到的bug集合,在此,不服来战!!
摘要:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure;;The last packet sent successfully to the server was 0 阅读全文
posted @ 2017-11-16 11:10 简笔话_Golden 阅读(5820) 评论(0) 推荐(0)
摘要:启动脚本增加参数:-Dserver.tomcat.max-http-header-size=102400 增大Hystrix,ribbon的各项参数; 阅读全文
posted @ 2017-11-16 11:06 简笔话_Golden 阅读(3318) 评论(0) 推荐(0)
摘要:hikaripool-0-连接不可用,请求在30000ms之后超时。意思是池等待30000ms的免费连接,但是您的应用程序没有返回任何连接。原因一:连接泄漏(在从池中借用之后连接没有关闭)。解决方法:hikariDataSource.setIdleTimeout(60000); hikariData 阅读全文
posted @ 2017-10-30 11:56 简笔话_Golden 阅读(35525) 评论(2) 推荐(1)
摘要:针对数据库Communications link failure的错误,可以理解为有两种策略解决: 策略1(推荐): 数据池配置 <property name="minEvictableIdleTimeMillis" value="28800" />属性,和数据库变量wait_timeout一致。 阅读全文
posted @ 2017-10-13 11:30 简笔话_Golden 阅读(6398) 评论(0) 推荐(0)
摘要:LINUX设置固定IP上网方法 :http://blog.csdn.net/w18600281813/article/details/50977688vim /etc/sysconfig/network-scripts/ifcfg-enp3s0 su root service network res 阅读全文
posted @ 2017-10-12 10:53 简笔话_Golden 阅读(162) 评论(0) 推荐(0)
摘要:原因: @EnableAutoConfiguration 这个注解会把配置文件号中的数据源全部都自动注入,不会默认注入一个,当使用其他数据源时再调用另外的数据源。 解决方法: 1.注释掉这个注解 2.通过如下的方式禁止springboot自动注入多个数据源 @SpringBootApplicatio 阅读全文
posted @ 2017-10-09 17:26 简笔话_Golden 阅读(4826) 评论(0) 推荐(0)
摘要:解决方案一:#获取连接时候验证,会影响性能spring.datasource.test1.test-on-borrow=true#指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除spring.datasource.test1.test-while-idle = tr 阅读全文
posted @ 2017-09-19 10:23 简笔话_Golden 阅读(882) 评论(0) 推荐(0)
摘要:解决方法: jdbc的url添加参数: jdbc.url=jdbc:mysql://localhost:3306/totosea?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false jdb 阅读全文
posted @ 2017-09-19 10:19 简笔话_Golden 阅读(2131) 评论(0) 推荐(0)
摘要:报错信息:超出数据库数据表设定的规定长度了 nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='apply 阅读全文
posted @ 2017-08-06 17:03 简笔话_Golden 阅读(1954) 评论(2) 推荐(0)
摘要:报错信息: 官方下载Instant Client下载: http://www.oracle.com/technetwork/cn/topics/intel-macsoft-102027-zhs.html MacOs+Navicat+instantclient实现oracle连接: http://bl 阅读全文
posted @ 2017-08-02 16:14 简笔话_Golden 阅读(533) 评论(0) 推荐(0)
摘要:数据库 坑:表命名的规范,避免各平台的关键字:什么order,user,**class,不要这样命名,否则你一定会后悔的; 错误:连接设重复了;原因:pom.xml中的变量和propertis中变量覆盖--这个问题很隐蔽,因为运行mvn run时不显示出来) 用SpringMVC框架 坑:表单提交时 阅读全文
posted @ 2017-07-02 10:57 简笔话_Golden 阅读(297) 评论(0) 推荐(0)