YeautyYE / netty-websocket-spring-boot-starter

:rocket: lightweight high-performance WebSocket framework ( 轻量级、高性能的WebSocket框架)
Apache License 2.0
1.81k stars 534 forks source link

启动报错怎么回事啊 #90

Open xieende opened 4 years ago

xieende commented 4 years ago

2020-01-05 19:46:15.786 ERROR 6256 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

java.lang.IllegalStateException: Failed to register ServerEndpointConfig: org.yeauty.standard.ServerEndpointConfig@174682a9 at org.yeauty.standard.ServerEndpointExporter.registerEndpoint(ServerEndpointExporter.java:78) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.yeauty.standard.ServerEndpointExporter.registerEndpoints(ServerEndpointExporter.java:49) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.yeauty.standard.ServerEndpointExporter.afterSingletonsInstantiated(ServerEndpointExporter.java:34) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:777) ~[spring-beans-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at com.un.net.UnNetApplication.main(UnNetApplication.java:10) [classes/:na]

按照博客来的,然后启动application ,就报错了,咋回事啊,起不来

YeautyYE commented 4 years ago

2020-01-05 19:46:15.786 ERROR 6256 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

java.lang.IllegalStateException: Failed to register ServerEndpointConfig: org.yeauty.standard.ServerEndpointConfig@174682a9 at org.yeauty.standard.ServerEndpointExporter.registerEndpoint(ServerEndpointExporter.java:78) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.yeauty.standard.ServerEndpointExporter.registerEndpoints(ServerEndpointExporter.java:49) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.yeauty.standard.ServerEndpointExporter.afterSingletonsInstantiated(ServerEndpointExporter.java:34) ~[netty-websocket-spring-boot-starter-0.8.0.jar:na] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:777) ~[spring-beans-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at com.un.net.UnNetApplication.main(UnNetApplication.java:10) [classes/:na]

按照博客来的,然后启动application ,就报错了,咋回事啊,起不来

应该还有个 DeploymentException 。 你看下完整的报错信息

YeautyYE commented 3 years ago

paramClassIncorrect parameter name : parameterMap 类导包错了

YeautyYE commented 3 years ago

导错包了吧,看下import是否org.yeauty开头的,有没有哪个注解不是的