maven Web项目运行时,报错:Exception in thread "main" java.net.BindException: Address already in use: bind

maven Web项目运行时,报错:Exception in thread "main" java.net.BindException: Address already in use: bind

这里报错原因是地址被占用了,我们通过配置查看下jetty的运行地址及端口号,在此我发现端口号是8080,由于8080是常用端口很容易被占用,因此我修改端口号为8081,再次通过jetty运行

maven Web项目运行时,报错:Exception in thread "main" java.net.BindException: Address already in use: bind

maven Web项目运行时,报错:Exception in thread "main" java.net.BindException: Address already in use: bind

通过浏览器访问jsp

maven Web项目运行时,报错:Exception in thread "main" java.net.BindException: Address already in use: bind