今天整理了一下电脑文件夹,把服务关闭。数据库移了个位置。
运行springboot的时候没有意识到这个问题
1.Exception in thread "main" java.lang.AbstractMethodError:
org.springframework.boot.env.
EnvironmentPostProcessorApplicationListener.
supportsSourceType(Ljava/lang/Class;)Z
还以为是我的pom文件或者是properities文件配错了,改了很久也没有用。
后来又遇到这个问题
Exception in thread "main"
java.lang.AbstractMethodError: org.springframework.boot.
context.config
看到了别人的解决方法
https://blog.youkuaiyun.com/lx12345_/article/details/89426533
学习到了运用IDEA里面pom的依赖图表,可以用来直观的发现依赖上的错误,的确也为我解决了一些问题
删除相关的依赖
又出现了这个问题
Caused by: com.mysql.cj.exceptions
.CJCommunicationsException: Communications link failure
我以为是文件配置错误
https://blog.youkuaiyun.com/qq_46358613/article/details/122630944
又去修改数据库配置文件
找找是不是配置的bean不在合适的位置,配置注解是不是写错了。
之后又出现了如下的错误
连接mysql数据库报错The driver has not received any packets from the server.
The last packet sent successfully to the server was 0 milliseconds ago. 解决办法记录
解决异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的办法
才意识到是下午移动数据库的时候,关闭了服务。
所以要重新启动mysql服务啊
登进服务页面,发现重新启动不行,发现服务的执行路径不对(文件位置被我移动了),
然后修改可执行路径
https://jingyan.baidu.com/article/5d368d1ef577d43f61c05740.html
之后又报错了
Check error-message file location and ‘lc-messages-dir’ configuration directive.
然后去改了mysql.ini
然后又出现了
然后去看了
C:\Windows\system32>net start MySQL 发生系统错误 1058。 无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动
出现了
MySQL 启动报 :“发生系统错误 193. *** 不是有效的Win32 应用程序”解决方法
出现了
[SC] DeleteService 失败 1072: 指定的服务已标记为删除。
*** 不是有效的 Win32 应用程序。
出现了
mysqld-nt -remove没反应
并没有解决,寻找其它的方法
出现了
[SC] DeleteService 失败 1072: 指定的服务已标记为删除。
通过
解决“指定的服务已经标记为删除”问题
解决
然后删除服务的时候要关闭服务窗口。。。。。。什么狗屁设定啊。。。。
好了 这下服务搞好了
重新设置密码 登录
一天就过去了。。。。。。。。。