- 博客(8)
- 收藏
- 关注
原创 application.yml使用maven配置报错:while scanning for the next token found character ‘@‘ that cannot start a
application.yml使用maven配置报错:while scanning for the next token found character ‘@‘ that cannot start a
2024-11-14 11:18:43
294
原创 聊聊Thread的join()方法
1.方法作用主线程调用某个线程对象的join()方法后,会让此线程对象优先执行操作,直到运行完毕,主线程才能执行。2.方法源码//方法为final修饰,需要对象加点调用,需要捕获异常public final void join() throws InterruptedException { join(0);}//synchronized方法需要获取线程对象的锁public final synchronized void join(long millis) throws I
2020-11-28 10:37:48
147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人