java
钱小昊
那些短暂的相遇,短暂的美好,会不会在心里埋下,长久的种子。——《如约而至》
展开
-
Spring boot +JPA 启动项目 报错
A component required a bean of type 'com.example.demo.repository.AyUserRepository' that could not be found.Description:A component required a bean of type 'com.example.demo.repository.AyUserReposi...原创 2019-05-28 20:26:19 · 1006 阅读 · 0 评论 -
代替Thread.stop()终止线程的方法
@TOC方法一自行决定线程何时退出定义一个标记变量stopme,用于指示线程是否需要退出。当stopMe()被调用,代码检测到这个改动时,线程就退出了。...//线程内volatile boolean stopme = false;public void stopMe(){ stope = true;}@Overridepublic void run(){ while...原创 2019-07-17 22:02:50 · 2972 阅读 · 0 评论