运行时报错端口号已被绑定,但是我已经在配置文件和代码中都修改了端口号,依然报错
GirlApplication EmbeddedServletContainerCustomizer{
main(String[] args) {
SpringApplication.(GirlApplication., args);
}
customize(ConfigurableEmbeddedServletContainer container){
container.setPort();
}
}错误:
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.