今天打开项目,springboot后端口提示被占用,通常两种方法:
1.杀进程
2.改端口
都没用
因为 stat -an | grep 端口号 启动项目前显示没有进程
而启动报错后显示
不管哪个端口都会显示一条tcp46,而且也没有进程号杀不掉
在检查了maven install、java版本和跳过Test等等后
在Stack Overflow看见了
There was control software installed for the individuals Network interface controller (NIC) that allowed both ethernet and wifi to be used simultaneously. This was installed to supposedly improve gaming experience, but did not play nicely with tomcat in Spring. Once disabled the application was able to run as expected.
https://stackoverflow.com/questions/66325765/failed-to-start-bean-webserverstartstop-unable-to-start-embedded-tomcat-serve
大概是SpringBoot和游戏冲突了,意识到我开了steam和START(tx的云游戏,能在mac玩LOL和原神之类的)
关了重启电脑就解决了
再打开也没能复现,以后遇到解决不了的问题不妨重启再试试好了
2021-06-28
最新推荐文章于 2021-11-09 20:10:55 发布