- 博客(4)
- 收藏
- 关注
原创 生产者消费者模式复习日记
1.生产者消费者测试的过程中使用了错误方法:Thread.currentThread().wait() 查了部分资料得出结论(如果不对的话烦请大佬指正): Thread.currentThread()方法获取当前线程对象,这时候是一个Thread对象,是不能够调用wait方法的,wait方法和notify方法均应有锁对象调用 wait方法和notify方法属于Object方法,Thread也属于Object对象,因此编译器对此错误不会报错 另外,Thread.curren...
2022-05-17 17:43:40
162
原创 SpringBoot报错日记
SpringBoot 2.4.2及以下版本和MySQL 8及以上的驱动配合使用时报错: 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' configuration property) to use a more
2022-05-12 16:28:51
382
原创 SQL语句having max()的错误案例
select deptno,avg(sal) t from emp GROUP BY DEPTNO 查询结果正常: 但是对上述查询字段进行having条件之后不能结果为null select deptno,avg(sal) t from emp GROUP BY DEPTNO having max(t) 结果: 原因:聚合函数嵌套 解释:去掉别名 select deptno,avg(sal) from emp GROUP BY DEPTNO having max(a.
2022-05-12 15:13:09
4749
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅