摘要: ##检查自己MySQL的环境配置是否完好 MYSQL_HOME Path 环境配置完好,有两种方法解决 ##方法一:直接更改MySQL的配置文件(.ini) 在[mysqld]** 下添加 default-time-zone = '+8:00' 此方法为长久解决IDEA连接数据库时区问题(更改后还没 阅读全文
posted @ 2021-01-05 01:39 Tenton 阅读(389) 评论(0) 推荐(0)
摘要: 学习 多线程 测试JUC安全类型的集合 阅读全文
posted @ 2020-11-04 21:47 Tenton 阅读(89) 评论(0) 推荐(0)
摘要: #同步方法 public class SafeBuyTicket { public static void main(String[] args) { BuyTicket station = new BuyTicket(); new Thread(station,"Tenton").start(); 阅读全文
posted @ 2020-11-04 21:35 Tenton 阅读(177) 评论(0) 推荐(0)
摘要: 练手Demo:实现Callable接口完成同下载文件 阅读全文
posted @ 2020-11-03 15:02 Tenton 阅读(202) 评论(0) 推荐(0)
摘要: 练手Demo:买车票 阅读全文
posted @ 2020-11-03 14:34 Tenton 阅读(123) 评论(0) 推荐(0)
摘要: 练手Demo:实现多线程同步下载文件 阅读全文
posted @ 2020-11-03 14:12 Tenton 阅读(134) 评论(0) 推荐(0)
摘要: 实现runnable接口, 重写run方法,执行线程需要丢入runnable接口实现类。调用start方法 阅读全文
posted @ 2020-11-03 11:09 Tenton 阅读(73) 评论(0) 推荐(0)
摘要: 实现多线程同步下载文件 阅读全文
posted @ 2020-11-03 10:53 Tenton 阅读(139) 评论(0) 推荐(0)
摘要: public class Thread1 extends Thread { @Override public void run() { //run方法线程体 for (int i = 0;i < 20;i++){ System.out.println("run运行" + i); } } public 阅读全文
posted @ 2020-11-03 10:51 Tenton 阅读(112) 评论(0) 推荐(0)
摘要: 线程概念 阅读全文
posted @ 2020-11-03 10:48 Tenton 阅读(78) 评论(0) 推荐(0)