當通過運行啓動應用程序(通過STS進行彈簧啓動)時會發生這種情況。org.springframework.boot.context.embedded.PortInUseException:端口80已在使用中
春季啓動: 1.4.0.M1
我對端口80上運行的IIS,但不過我已經通過STS配置屬性改變了sever.port到。 STS Screen shot
爲什麼STS嵌入式tomcat即使在更改後也使用端口80?那種困惑。
2016年4月15日05:22:03985 [主]錯誤osboot.SpringApplication - 應用程序啓動失敗 org.springframework.boot.context.embedded.PortInUseException:端口 80已在使用在 org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.checkThatConnectorsHaveStarted(TomcatEmbeddedServletContainer.java:187) 在 org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:170) at org.springframework.boot.context。 embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:293) 在 org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141) 在 org.springframework.context.support.AbstractApplicationContext.refresh( AbstractApplicationContext.java:540) 在 org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) 在 org.springframework.boot.SpringApplication.refresh(SpringApplication.java:768) 在 org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:362) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:308) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:1183) 在 org.springframework.boot.SpringApplication.run (SpringApplication.java:1172) 在 com.jbhunt.web.FinanceClaimsApplication.main(FinanceClaimsApplication.java:71)
我沒有找到一個選項來改變比上述提到的 其他端口。任何幫助將不勝感激。
你可能在'.properties'或'.yaml'文件中有衝突的設置嗎?例如。使用執行器的'management.port'? –
我沒有在'.properties'或'.yaml'文件中定義的屬性。我嘗試在STS屬性對話框中提到8091的'management.port',但仍然沒有運氣。 – Masi
你在第二個標籤中傳遞了任何參數嗎? –