1.eclipse 启动tomcate 提示端口号被占用
在开始-运行-cmd,
输入命令 netstat –ano|findstr “指定端口号” ,
如:查询占用了8080端口的进程:netstat -ano|findstr 8080
找到指定进程号 pid,
据进程名称杀死进程,taskkill /f /t /im 进程名称。
据进程pid杀死进程,taskkill /pid 2472 -t -f;
1.eclipse 启动tomcate 提示端口号被占用
在开始-运行-cmd,
输入命令 netstat –ano|findstr “指定端口号” ,
如:查询占用了8080端口的进程:netstat -ano|findstr 8080
找到指定进程号 pid,
据进程名称杀死进程,taskkill /f /t /im 进程名称。
据进程pid杀死进程,taskkill /pid 2472 -t -f;
首先應該在pom中添加以下插件,跳過test,否則打包會報錯。 <plugin> <groupId>org.apache.maven.plugins</groupId>