idea
Old_D7
这个作者很懒,什么都没留下…
展开
-
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
出现这个问题的原因是,mysql 8.0版本后,需要在url后面增加一些参数(必不可少)原String DB_URL = "jdbc:mysql://localhost:3306/testdb";新String DB_URL = "jdbc:mysql://localhost:3306/testdb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT";pom中引入mysql依赖原创 2021-11-12 15:48:37 · 671 阅读 · 0 评论 -
idea自动合并空包问题
想在static下分别新建css和js的时候发现会自动变成子目录只需要把hide empty middle packages勾掉即可原创 2019-11-04 11:17:49 · 3276 阅读 · 0 评论 -
Connection to Mysql-xkxt@localhost failed. [08001] Could not create connection to database server.
idea mysql数据库连接不上问题只需要在url最后增加一句***?serverTimezone=GMT***原创 2019-08-16 10:59:04 · 8258 阅读 · 18 评论 -
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized..
具体报错信息:java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone.You must configure either the server or JDBC driver (via the serverTimezone...原创 2019-09-11 09:55:36 · 517 阅读 · 0 评论 -
Could not autowired. No beans of 'xxx' type found
纪念IDEA的又一个坑……之前看到的很多都是让改变警告的提示级别 (warning->error),但不能从根本上解决,强迫症表示要疯了解决方案:在Mapper上加注解@Repository改前:mapper controller:改后:终于正常了...原创 2019-09-11 14:34:11 · 991 阅读 · 1 评论