调错记录
Hill__Cheung
这个作者很懒,什么都没留下…
展开
-
Starting MySQL... ERROR! The server quit without updating PID file (/data/mysql/localhost.pid).
Starting MySQL… ERROR! The server quit without updating PID file (/data/mysql/localhost.pid).今天遇到一个linux安装mysql错误,启动mysql的时候报:Starting MySQL… ERROR! The server quit without updating PID file (/data/mysql/localhost.pid).解决步骤:你可以先去 /etc/my.cnf查看错误日志看到错误原创 2021-05-11 20:29:36 · 744 阅读 · 0 评论 -
nested exception is java.lang.IllegalArgumentException: ContextPath must start with ‘/‘ and not end
Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘undertowServletWebServerFactory’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/Serv原创 2021-04-25 20:16:53 · 676 阅读 · 0 评论 -
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test错误信息如下当我们用SpringBoot整合junit时候注意test中的包名和启动入口报名一致这是测试类这是启动类注意两者报名应该一致都应该改成一样的包名,程序就可以正常运行了...原创 2021-04-24 20:00:10 · 182 阅读 · 0 评论 -
SWT中线程异步造成主界面假死解决方案
SWT中线程异步造成主界面假死今天帮同学调错的时候发现,它的SWT异步之后,主线程直接阻塞,导致用户界面无响应,找了好久,终于找到是下面的原因:下面我们来看正确的代码:// 显示时间 new Thread(new Runnable() { @Override public void run() { while (true) { Display.getDefault().asyncExec(new Runnable() { @Override原创 2021-04-08 19:45:01 · 516 阅读 · 2 评论