SpringBoot報錯(一)埠被佔用Address already in use: bind
今天第一次配置springboot就出現一個粗心的錯誤,雖然我知道怎麼解決,但出錯,想著就不是很舒服。
這個問題的原因是埠被佔用,解決方法就是修改Application裡邊的配置,修改調埠號
在application裡邊加入server.port=8888 . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)
2017-09-19 14:03:31.172 INFO 9924 --- [ main] c.m.myfamily.MyfamilyApplication : Starting MyfamilyApplication on Jiunn with PID 9924 (E:\WJ\springboot\myfamily\target\classes started by jiunn in E:\WJ\springboot\myfamily)
2017-09-19 14:03:31.174 INFO 9924 --- [ main] c.m.myfamily.MyfamilyApplication : No active profile set, falling back to default profiles: default
2017-09-19 14:03:31.223 INFO 9924 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot [email protected]2928854b: startup date [Tue Sep 19 14:03:31 CST 2017]; root of context hierarchy
2017-09-19 14:03:32.077 INFO 9924 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2017-09-19 14:03:32.086 INFO 9924 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2017-09-19 14:03:32.086 INFO 9924 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.20
2017-09-19 14:03:32.142 INFO 9924 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-09-19 14:03:32.143 INFO 9924 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 924 ms
2017-09-19 14:03:32.223 INFO 9924 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-09-19 14:03:32.226 INFO 9924 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-09-19 14:03:32.226 INFO 9924 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-09-19 14:03:32.226 INFO 9924 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-09-19 14:03:32.226 INFO 9924 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2017-09-19 14:03:32.403 INFO 9924 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot [email protected]2928854b: startup date [Tue Sep 19 14:03:31 CST 2017]; root of context hierarchy
2017-09-19 14:03:32.436 INFO 9924 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-09-19 14:03:32.437 INFO 9924 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-09-19 14:03:32.453 INFO 9924 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-19 14:03:32.453 INFO 9924 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-19 14:03:32.473 INFO 9924 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-19 14:03:32.567 INFO 9924 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-09-19 14:03:32.588 ERROR 9924 --- [ main] o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_121]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_121]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.8.0_121]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:990) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:635) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1022) [tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225) [tomcat-embed-core-8.5.20.jar:8.5.20]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:250) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:193) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at cn.myfamilyt.myfamily.MyfamilyApplication.main(MyfamilyApplication.java:12) [classes/:na]
2017-09-19 14:03:32.588 ERROR 9924 --- [ main] o.apache.catalina.core.StandardService : Failed to start connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:250) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:193) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at cn.myfamilyt.myfamily.MyfamilyApplication.main(MyfamilyApplication.java:12) [classes/:na]
Caused by: org.apache.catalina.LifecycleException: service.getName(): "Tomcat"; Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1029) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
... 13 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_121]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_121]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.8.0_121]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:990) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:635) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1022) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
... 14 common frames omitted
2017-09-19 14:03:32.594 INFO 9924 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2017-09-19 14:03:32.642 INFO 9924 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-09-19 14:03:32.645 ERROR 9924 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
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.
2017-09-19 14:03:32.649 INFO 9924 --- [ main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot [email protected]2928854b: startup date [Tue Sep 19 14:03:31 CST 2017]; root of context hierarchy
2017-09-19 14:03:32.650 INFO 9924 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
Process finished with exit code 1
相關推薦
SpringBoot報錯(一)埠被佔用Address already in use: bind
今天第一次配置springboot就出現一個粗心的錯誤,雖然我知道怎麼解決,但出錯,想著就不是很舒服。這個問題的原因是埠被佔用,解決方法就是修改Application裡邊的配置,修改調埠號在application裡邊加入server.port=8888 . ____
Mac下安裝mongoldb 報錯 Failed to set up listener: SocketException: Address already in use
錯誤日誌2018-06-08T22:25:09.118+0800 E STORAGE [initandlisten] Failed to set up listener: SocketExceptio
Android Studio 建立專案報錯(一)
剛換完工作,配置好jdk,裝好studio,剛建立好一個project,studio就丟擲一個錯誤: Error:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in
SpringBoot報錯(四)通用Mapper外掛的配置即使用報錯
今天來配置mybatis的通用mapper,使用了Mapper外掛 <!--通用Mapper外掛--> <dependency> <groupId>tk.mybatis</groupId> <art
啟動springboot時,控制檯報錯java.net.BindException: Address already in use: bind,但仍然能顯示想要的結果
java.net.BindException: Address already in use: bind這個是埠被佔用(例如8080埠被其他程序佔用),所以需要關掉佔用我們埠的那個程序,使用cmd 輸入命令列--netstat -ano就會得到佔用我們埠的程序的pid 然後輸
Address already in use: bind埠被佔用的多種原因以及解決方案
公司專案用的是dubbo+springMVC+spring+mybatis專案從git上拉取下來 啟動專案:日誌中報錯======>Address already in use : bind這個錯誤再熟悉不過了 作為java開發人員應該都遇到過一般的解決思路 :1
埠被佔用的情況 java.net.BindException: Address already in use: bind
IDEA+jetty啟動專案control層時,報java.net.BindException: Address already in use: bind解決方案:開啟cmd netstat ano|findstr 8080taskkill -pid 6044 -f即可
springboot項目啟動時提示Address already in use: bind
127.0.0.1 發現 dst 系統 pan image ava core cor PS:web項目在啟動的時候,一般會報Address already in use: bind,常規的處理思路為:刪除任務管理器中的javaw.exe進程即可;當刪除仍然解決不了時,一般處
tomcat啟動報java.net.BindException: Address already in use: bind錯誤解決方案
繼續學習Spring Boot,我新建了一個Spring Boot的專案 ,建好專案之後,進行測試時,出現瞭如下錯誤: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0
tomcat埠衝突解決 Address already in use: JVM_Bind :8080
啟動tomcat報錯java.net.bindexception: address already in use: jvm_bind:8080 昨日myeclipse突然卡死,重啟之後執行tomcat,發現提示java.net.bindexception
socket程式設計小問題:地址已經被使用——Address already in use
很多socket程式設計的初學者可能會遇到這樣的問題:如果先ctrl+c結束伺服器端程式的話,再次啟動伺服器就會出現Address already in use這個錯誤,或者你的程式在正常關閉伺服器端socket後還是有這個問題。正如下面的這段簡單的socket程式。 se
springboot學習筆記(一)
web stc depend tar 添加 pen quest lips 整合 在我看來,spring-boot 的好處在於能快速的搭建起一個項目的框架 ,省略了繁瑣的xml配置,能通過spring boot Application類快速啟動工程 快速搭建sprin
springboot整合Mybatis(一)——入門
target 連接池 param 不支持 void 2.6 batis gpo onf 一、概述 1.先導 mybatis入門隨筆:http://www.cnblogs.com/jiangbei/p/6884641.html 2.引入依賴
MO拆分計劃行程序中寫入PRODUCTIONORDERS表數據出現重復導致報錯(BUG)20180502
pro info nbsp ima spl ppm UC 錯誤提示 rod 錯誤提示:ORA-00001: 違反唯一約束條件 (ABPPMGR.C0248833319_6192)ORA-06512: 在 "STG.FP_MO_SPLIT", line 199 ORA-06
小程序犯錯(一):“ReferenceError: 模擬服務器傳來的數據 is not defined”
reference nload 學習 犯錯 AD 出現 錯誤 define info 學習數據綁定,在onLoad中模擬服務器傳數據時,報錯:模擬服務器傳來的數據 is not defined 我這裏粗心的忘記註釋說明了,如下: 把該行無關的錯誤數據註釋或刪除即可。這裏提
SpringBoot學習記錄(一)
not website snap 對象 mpi method oid pom pid 1. Spring的Java配置方式 Java配置是Spring4.x推薦的配置方式,可以完全替代xml配置。 1.1. @Configuration 和 @Bean Spring的Jav
springboot引入activiemq(一)
首先安裝activiemq伺服器 下載地址如下:http://activemq.apache.org/download.html,筆者安裝的windows版本的,解壓一下就可以,然後到這個目錄下,雙擊activemq.bat,即 mq服務啟動,訪問http://localhost:8161/admi
SpringBoot 學習筆記(一)——Spring回顧與SpringMVC基礎
Spring Boot學習筆記(一) 一、Spring 回顧 1、宣告Bean 的註解 @Component 元件,沒有明確的角色 @Service 業務邏輯層(service層)使用 @Repository 資料訪問層(dao層)使用 @C
Activity錯(一)
日誌 java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation 分析 8.0僅不透明全屏Activity可自設介面方向。 解決 styles.
清單檔案錯(一)
提示 說明 To enable Google to crawl your app content and allow users to enter your app from search results, you must add intent filters for t