Spring-bot Connection refused: connect

NeverMore93 2016-08-23 05:02:47
从spring-boot 上http://start.spring.io/ 导下来的项目,自己加了controller后报错



求告知哪里错了
...全文
2349 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
NeverMore93 2016-08-23
  • 打赏
  • 举报
回复
引用 2 楼 luxu001207 的回复:
报了什么错?
没红,但有个warm显示Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect,localhost8888和8080都打不开
Atai-Lu 2016-08-23
  • 打赏
  • 举报
回复
报了什么错?
NeverMore93 2016-08-23
  • 打赏
  • 举报
回复
2016-08-23 16:49:17.538 INFO 14820 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@302552ec: startup date [Tue Aug 23 16:49:17 CST 2016]; root of context hierarchy 2016-08-23 16:49:18.380 INFO 14820 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$8f5189a6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.4.0.RELEASE) 2016-08-23 16:49:18.880 INFO 14820 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8888 2016-08-23 16:49:20.056 WARN 14820 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect 2016-08-23 16:49:20.056 INFO 14820 --- [ main] c.u.demo.Ucardmavendemo2Application : No active profile set, falling back to default profiles: default 2016-08-23 16:49:20.073 INFO 14820 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6aa61224: startup date [Tue Aug 23 16:49:20 CST 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@302552ec 2016-08-23 16:49:20.770 WARN 14820 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2016-08-23 16:49:20.887 INFO 14820 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=7709ae49-1170-366d-91f4-d295ab2f05f8 2016-08-23 16:49:20.928 INFO 14820 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$8f5189a6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2016-08-23 16:49:21.509 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2016-08-23 16:49:21.524 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure 2016-08-23 16:49:21.525 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshScope' has been autodetected for JMX exposure 2016-08-23 16:49:21.526 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure 2016-08-23 16:49:21.529 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager] 2016-08-23 16:49:21.554 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope] 2016-08-23 16:49:21.574 INFO 14820 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=6aa61224,type=ConfigurationPropertiesRebinder] 2016-08-23 16:49:21.712 INFO 14820 --- [ main] c.u.demo.Ucardmavendemo2Application : Started Ucardmavendemo2Application in 5.157 seconds (JVM running for 6.152) 2016-08-23 16:49:21.716 INFO 14820 --- [ Thread-3] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6aa61224: startup date [Tue Aug 23 16:49:20 CST 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@302552ec 2016-08-23 16:49:21.736 INFO 14820 --- [ Thread-3] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown 2016-08-23 16:49:21.737 INFO 14820 --- [ Thread-3] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧