关于一个dubbo项目,zookeeper和spring-boot的bean的问题,详细情况下面说明

是这样的:一开始运行的好好的,但是中途我安装了一个wifi共享精灵,就会报出如下错误,之后卸载掉又会恢复正常,这是为什呢?
异常情况如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:11

0

1个回答

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at com.ouyeel.ApplicationBootstrap.main(ApplicationBootstrap.java:10) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_45]
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:478) [spring-boot-maven-plugin-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:253) ~[dubbo-2.8.4.jar:2.8.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
... 21 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.spring.AnnotationBean.refer(AnnotationBean.java:317) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:246) ~[dubbo-2.8.4.jar:2.8.4]
... 24 common frames omitted

2016-04-19 14:33:28.799 INFO 5624 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/Users/shengcl/Documents/workspace-sts-3.7.3.RELEASE/P160309/ouyeel/ouyeel-web-protal/target/classes/, file:/C:/Users/shengcl/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.32/tomcat-embed-core-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/C:/Users/shengcl/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/1.0.0.Final/jboss-el-api_3.0_spec-1.0.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-thymeleaf/1.3.3.RELEASE/spring-boot-starter-thymeleaf-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.3.RELEASE/spring-boot-autoconfigure-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/jsqlparser/jsqlparser/0.9.1/jsqlparser-0.9.1.jar, file:/C:/Users/shengcl/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.5/jackson-databind-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/org/thymeleaf/thymeleaf-spring4/2.1.4.RELEASE/thymeleaf-spring4-2.1.4.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.5/jackson-annotations-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-core/0.0.1-SNAPSHOT/xplat-core-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/slf4j-api/1.7.16/slf4j-api-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-core/4.2.5.RELEASE/spring-core-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-dubbo-consumer/0.0.1-SNAPSHOT/xplat-dubbo-consumer-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.3.RELEASE/spring-boot-starter-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar, file:/C:/Users/shengcl/.m2/repository/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar, file:/C:/Users/shengcl/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-web/4.2.5.RELEASE/spring-web-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/thymeleaf/thymeleaf/2.1.4.RELEASE/thymeleaf-2.1.4.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-dubbo-api/0.0.1-SNAPSHOT/xplat-dubbo-api-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/1.3.3.RELEASE/spring-boot-starter-actuator-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-actuator/1.3.3.RELEASE/spring-boot-actuator-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ch/qos/logback/logback-core/1.1.5/logback-core-1.1.5.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.3.RELEASE/spring-boot-starter-tomcat-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-webmvc/4.2.5.RELEASE/spring-webmvc-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/io/swagger/swagger-annotations/1.5.4/swagger-annotations-1.5.4.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-freemarker/1.3.3.RELEASE/spring-boot-starter-freemarker-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-expression/4.2.5.RELEASE/spring-expression-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.32/tomcat-embed-logging-juli-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.32/tomcat-embed-el-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/unbescape/unbescape/1.1.0.RELEASE/unbescape-1.1.0.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/jul-to-slf4j/1.7.16/jul-to-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-web/1.3.3.RELEASE/spring-boot-starter-web-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-aop/4.2.5.RELEASE/spring-aop-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ch/qos/logback/logback-classic/1.1.5/logback-classic-1.1.5.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-beans/4.2.5.RELEASE/spring-beans-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/sgroschupf/zkclient/0.1/zkclient-0.1.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-devtools/1.3.3.RELEASE/spring-boot-devtools-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/pagehelper/pagehelper/4.0.1/pagehelper-4.0.1.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.5/jackson-core-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/ouyeel-api-cms/0.0.1-SNAPSHOT/ouyeel-api-cms-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/ouyeel-api-trade/0.0.1-SNAPSHOT/ouyeel-api-trade-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot/1.3.3.RELEASE/spring-boot-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/1.3.3/thymeleaf-layout-dialect-1.3.3.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-validation/1.3.3.RELEASE/spring-boot-starter-validation-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ognl/ognl/3.0.8/ognl-3.0.8.jar, file:/C:/Users/shengcl/.m2/repository/junit/junit/4.12/junit-4.12.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.32/tomcat-embed-websocket-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-context-support/4.2.5.RELEASE/spring-context-support-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.16/log4j-over-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.3.RELEASE/spring-boot-starter-logging-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/codehaus/groovy/groovy/2.4.6/groovy-2.4.6.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.16/jcl-over-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-context/4.2.5.RELEASE/spring-context-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar]
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:478)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
at com.ouyeel.ApplicationBootstrap.main(ApplicationBootstrap.java:10)
... 6 more
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:253)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
... 21 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
at com.alibaba.dubbo.config.spring.AnnotationBean.refer(AnnotationBean.java:317)
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:246)
... 24 more

-1
baidu_29092471
Scl1724 这是详细的异常情况
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
项目启动 dubbo zookeeper 问题
启动项目后 控制台打印这些 不知道什么地方有问题nn, dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,133 [localhost-startStop-1] INFO [com.alibaba.dubbo.remoting.transport.AbstractClient] - [DUBBO] Successed connect to server /192.168.21.25:20880 from NettyClient 192.168.21.25 using dubbo version 2.5.3, channel is NettyChannel [channel=[id: 0x2cd65ccc, /192.168.21.25:61997 => /192.168.21.25:20880]], dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,133 [localhost-startStop-1] INFO [com.alibaba.dubbo.remoting.transport.AbstractClient] - [DUBBO] Start NettyClient DESKTOP-MAN0K4J/192.168.21.25 connect to the server /192.168.21.25:20880, dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,154 [localhost-startStop-1] DEBUG [com.alibaba.dubbo.common.extension.ExtensionLoader] - [DUBBO] package com.alibaba.dubbo.validation;nimport com.alibaba.dubbo.common.extension.ExtensionLoader;npublic class Validation$Adpative implements com.alibaba.dubbo.validation.Validation npublic com.alibaba.dubbo.validation.Validator getValidator(com.alibaba.dubbo.common.URL arg0) nif (arg0 == null) throw new IllegalArgumentException("url == null");ncom.alibaba.dubbo.common.URL url = arg0;nString extName = url.getParameter("validation", "jvalidation");nif(extName == null) throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.validation.Validation) name from url(" + url.toString() + ") use keys([validation])");ncom.alibaba.dubbo.validation.Validation extension = (com.alibaba.dubbo.validation.Validation)ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.validation.Validation.class).getExtension(extName);nreturn extension.getValidator(arg0);nn, dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,161 [localhost-startStop-1] DEBUG [com.alibaba.dubbo.common.extension.ExtensionLoader] - [DUBBO] package com.alibaba.dubbo.monitor;nimport com.alibaba.dubbo.common.extension.ExtensionLoader;npublic class MonitorFactory$Adpative implements com.alibaba.dubbo.monitor.MonitorFactory npublic com.alibaba.dubbo.monitor.Monitor getMonitor(com.alibaba.dubbo.common.URL arg0) nif (arg0 == null) throw new IllegalArgumentException("url == null");ncom.alibaba.dubbo.common.URL url = arg0;nString extName = ( url.getProtocol() == null ? "dubbo" : url.getProtocol() );nif(extName == null) throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.monitor.MonitorFactory) name from url(" + url.toString() + ") use keys([protocol])");ncom.alibaba.dubbo.monitor.MonitorFactory extension = (com.alibaba.dubbo.monitor.MonitorFactory)ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.monitor.MonitorFactory.class).getExtension(extName);nreturn extension.getMonitor(arg0);nn, dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,170 [localhost-startStop-1] DEBUG [com.alibaba.dubbo.common.extension.ExtensionLoader] - [DUBBO] package com.alibaba.dubbo.cache;nimport com.alibaba.dubbo.common.extension.ExtensionLoader;npublic class CacheFactory$Adpative implements com.alibaba.dubbo.cache.CacheFactory npublic com.alibaba.dubbo.cache.Cache getCache(com.alibaba.dubbo.common.URL arg0) nif (arg0 == null) throw new IllegalArgumentException("url == null");ncom.alibaba.dubbo.common.URL url = arg0;nString extName = url.getParameter("cache", "lru");nif(extName == null) throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.cache.CacheFactory) name from url(" + url.toString() + ") use keys([cache])");ncom.alibaba.dubbo.cache.CacheFactory extension = (com.alibaba.dubbo.cache.CacheFactory)ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.cache.CacheFactory.class).getExtension(extName);nreturn extension.getCache(arg0);nn, dubbo version: 2.5.3, current host: 192.168.21.25n2017-12-19 17:00:47,181 [localhost-startStop-1] INFO [com.alibaba.dubbo.config.AbstractConfig] - [DUBBO] Refer dubbo service com.taotao.service.ItemService from url zookeeper://192.168.21.25:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=taotao-manager-web&check=false&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=16920&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=151nn2017-12-19 17:00:47,186 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor'n2017-12-19 17:00:47,186 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.springframework.context.event.internalEventListenerProcessor'nn2017-12-19 17:00:47,252 [localhost-startStop-1] DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]n2017-12-19 17:00:47,252 [localhost-startStop-1] DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]n2017-12-19 17:00:47,253 [localhost-startStop-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Published WebApplicationContext of servlet 'taotao-manager-web' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.taotao-manager-web]n2017-12-19 17:00:47,253 [localhost-startStop-1] INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'taotao-manager-web': initialization completed in 2097 msn* 2017-12-19 17:00:47,253 [localhost-startStop-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Servlet 'taotao-manager-web' configured successfully
第八章 dubbo之zookeeper之配置文件说明
最低配置要求中必须配置的参数如下: #监听客户端连接的端口 clientPort #存储内存中数据库快照的位置 dataDir #基本事件单元,以毫秒为单位,它用来控制心跳和超时 #默认情况下最小的会话超时时间为两倍的tickTime tickTime 高级配置 #这个操作将管理机器把事物日志写入到“dataLogDir”所指定的目录,而不是“dataDir”所指定的目录。这将允
关于Zookeeper和dubbo的负载均衡问题
Zookeeper是服务注册中心dubbo是服务提供和消费中心当有消费者向dubbo需要一个服务的时候,dubbo在Zookeeper里寻找是否有注册过这样的一个服务,即是否有人提供过这个服务,如果有就提供,没有就报错。。关于他们的负载均衡在配置文件中第一个注册中心<dubbo:registry address="192.168.42.130:2181" protocol="zookeepe...
关于下面问题的说明
rnalter system suspend;暂停数据库后,好长时间没有任何信息,rnrn怎么回事???难道本身就没有任何提示,总得有个“暂停成功”类似的提升吧,rnrn版本9i,
关于dubbo和zookeeper 注册中心
Dubbo采用全Spring配置方式,透明化接入应用,对应用没有任何API侵入,只需用Spring加载Dubbo的配置即可,Dubbo基于Spring的Schema扩展进行加载。如果不想使用Spring配置,而希望通过API的方式进行调用(不推荐) 下载zookeeper注册中心,下载地址:http://www.apache.org/dyn/closer.cgi/zookeeper/下...
关于spring-boot项目启动方式
参考网址: https://www.cnblogs.com/zheting/p/6707035.html                 https://blog.csdn.net/fengchao2016/article/details/78731630                 https://blog.csdn.net/hengyunabc/article/details/501200...
spring-boot项目多模块开发及集成dubbo的使用
首先我使用的开发工具是idea2017,本人搭建的项目也是基于这spring-boot项目多模块项目搭建1.先创建一个普通的maven项目(这里我创建叫game-union),创建成果后删掉src目录2.再创建base层,web层,service层。base层用来存放实体类和service接口,service层用来存放service实现类及dao层web层存放网络访问层也就是常用的controll...
idea maven聚合项目 spring-boot 整合 dubbo
最新dubbo入门demo,
dubbo zookeeper
NULL 博文链接:https://wandejun1012.iteye.com/blog/2278694
dubbo/zookeeper
这个压缩文件包括zookeeper和dubbo,可以完美运行,好好享受吧。详情去我的博客寻找 http://blog.csdn.net/u012150590
关于Dubbo说明及备注
Dubbo的配置文件: 创建 Spring 配置文件,配置注解扫描 com.chanshuyi.service.impl 包,并引入 spring-provider.xml 文件: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/...
dubbo与zookeeper集群模式配置说明
一、zookeeper配置说明 Zookeeper 的配置文件在 conf 目录下,将 zoo_sample.cfg 改名为 zoo.cfg. 1.单机模式 tickTime=2000 dataDir=Zookeeper安装目录下的data目录 clientPort=2181 tickTime:这个时间是作为 Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就...
关于ZooKeeper的角色说明
zookeeper是一个分布式的,开放源码的分布式应用协调服务,zookeeper大体包括以下角色: Leader(领导者):领导者负责进行投票的发起和决议,更新系统状态。 Learner(学习者): Follower(跟随者):Follower用于接收客户请求并向客户端返回结果,在选主过程中参与投票。 Observer(观察者):Observer可以接收客户端连接,将写请求转发给lear
关于bean的一个问题
我有一个bean名为faq,在jsp中直接调用faq.getID()时是对的,但用时,没得到正确的值,总是0。rn请指教。
一个关于Bean的问题
我创建了两个Bean文件:DBconn.lass userinfo.classrn但是我在编译userinfo.class的时候出现两个错误:rnuserinfo.java:190: cannot resolve symbolrnsymbol : class DBconnrnlocation: class conn.userinforn DBconn dbconn;rn ^rnuserinfo.java:13: cannot resolve symbolrnsymbol : class DBconnrnlocation: class conn.userinforn dbconn = new DBconn();rn ^rn2 errorsrnrnuserinfo.class的部分代码如下:rnpublic class userinfornrnrn public userinfo()rn rn dbconn = new DBconn();rn rn rnpublic void updateUserInfo(String s)rn rn strSQL = "update table1 set phone='" + userphone +",Oicq='" + useroicq + ",E_mail='" + useremail + "',homephone='" + userhomephone + "',workphone='" + userworkphone + "',Bp='" + userbp + "',workaddress='" + userworkaddress + "',homeaddress='" + userhomeaddress + ",remark=" + userremark +"' where username='" + s + "'";rn dbconn.executeUpdate(strSQL);rn rn rn DBconn dbconn;rn}rn请问为什么会出现这个错误,应该怎么纠正?谢谢!!!!
一个关于bean的问题
rn这里property="*"是什么作用?rn
关于bean的一个问题???
我把连接数据库的代码写在bean里,可是如果用jsp取数据时,为什么会出现下面的错误:rnrnrn  javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]无效的描述符索引rn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)rn at org.apache.jsp.Monitor$jsp._jspService(Monitor$jsp.java:192)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rn at org.apache.catalina.corrn但是把代码直接放在jsp里,没有出错,请问这是为什么
我想问一些关于red5直播的问题,下面我的详细情况
开始我对red5一点都不会,后面接触到了。我需要做个用red5的直播系统。。。我现在的问题是: 已经可以用red5进行在有配置red5环境下进行直播了 但是我想要实现的效果是:我的电脑做服务器让其他局域网电脑做客户端可以进行直播,通过我的电脑,局域网内的客户端不需要配置就可以通过一个网页进行直播的效果。 就是这个效果我实现不了。。。 请问有哪位大神给点帮助 可以让我的直播网页跟red5服
搭建一个spring-boot项目 4
service中的单元测试搭建:
搭建一个spring-boot项目 2
api搭建
搭建一个spring-boot项目 3
service 代码
【入门】搭建一个Spring-Boot项目
Spring官网详细介绍https://projects.spring.io/spring-boot/特点(官方解释有道翻译)创建独立的Spring项目;直接嵌入TomCat、Jetty或底层,不需要不熟WAR文件;提供自用的启动器,简化Maven配置;在可能的情况下自动配置Spring;提供生产就绪的特性,如量度、健康检查和外部化配置;绝对没有代码生成,也不需要XML配置。创建一个Spring-...
最新的dubbo和zookeeper整合的问题
最新的dubbo和zookeeper整合的问题 生活本不易,流人遂自安 博主最新在做小项目练手,在进行dubbo和zookeeper整合的时候遇到了一些问题,在这里这些问题做个小总结吧。 首先需要说明的是,这次使用的都是最新的版本。过一下我自己的配置,dubbo 2.6.6,zookeeper 3.4.13,Spring 5.1.5.RELEASE dubbo-admin的搭建 ​ 从dub...
dubbo与zookeeper学习中的问题
环境: spring5.1.5 dubbo 2.6.2 异常信息: java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.connect(CuratorZ...
基于Zookeeper 和 Dubbo框架的电商项目
这是一个基于Zookeeper 和 Dubbo框架的电商项目,包括前后台总共八个模块!
SpringBoot项目(集成dubbo、zookeeper)(注解方式实现)
github地址:https://github.com/SteveJeson/springbootdubbo
项目加入dubbo,zookeeper实现服务调用
1、当前项目目录结构说明 首先,项目为父子项目目录结构,mad-web和mad-other是两个不同的web应用,那么,用dubbo和zookeeper要实现的是,在mad-other项目中直接调用mad-web中提供的接口。 而且,本机需要安装zookeeper,下篇写zookeeper和dubbo的安装。 2、maven中加入相应jar包 其中有个小坑,就是在dubbo包中,存在着sprin...
dubbo项目启动后zookeeper报错
 报错 Will not attempt to authenticate using SASL (unknown error)   报错信息不用怕   检查检查linux防火墙就ok了   把防火墙停了或者加入2181的端口访问就ok了
使用spring-boot集成dubbo的日志
使用spring-boot集成dubbo
spring-boot系列:(一)整合dubbo
spring-boot-2整合dubbo 新框架学习,必须上手干。书读百遍,其义自见。 本文主要介绍spring-boot-2整合dubbo,使用xml配置实现一个provider和consumer。 1.创建Maven项目: spring-boot-parent:父工程,统一管理jar依赖,版本 spring-boot-service:子工程,dubbo服务提供方 s...
spring-boot整合Dubbo分布式架构案例
1.运行环境 开发工具:intellij idea JDK版本:1.8 项目管理工具:Maven3.2.5 2.项目文件目录 3.Maven Plugin管理 总项目 pom.xml配置代码: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apach...
Spring-boot简单日志配置说明
在对spring-boot时进行日志配置时  发生了一个无语的坑 特此记录 因为spring-boot自带日志功能  所以在yml中配置一下就可以了   appliaction.yml中加入file:log\log.log 代码中 加入log.info 运行 控制台打印   看下项目目录  已经自动生成了      但是一开始是不成功的      当我配置了f...
spring-boot常用参数配置说明
spring-boot常用参数配置说明 一、服务端参数 二、客户端参数 spring-boot常用参数配置说明 一、服务端参数 二、客户端参数 instance: preferIpAddress: true instance-id: ${spring.cloud.client.ipAddress}:${server.port}...
关于Session Bean 与 Entity Bean 的一个问题
这两日正在研究一个别人写的Ejb项目的源代码,结构很简单:Jsp + Model Class + Ejb。所有与DATABASE打交道的代码(如Select, Update, Remove等SQL语句执行)都写在Ejb里,但问题就在这儿:他没用Entity Bean(实体), 所有的Bean都是Session Bean。这确实与我通常的理解相背:我也做过一两个J2EE的项目,都是创建BMP型的Entity Bean, 然后那些DATABASE的操作都要写在其ejbLoad, ejbStore, ejbCreate等方法内。Session Bean也使用,但它们都不直接进行Database操作而是调用Entity Bean。rnrn所以,我现在的问题是:1)难道我们真的可以不用Entity Bean而仅用Session Bean做所有的工作?至少从我这个朋友的项目来看是这样的。如果真是如此,Entity Bean岂不是多余的?2) Session Bean 有无CMP和BMP之分,如果有,我所看的这个项目中,它所用的Session Bean 应该是CMP的,还是BMP?rnrn请详解!多谢分析! 若哪位能留下电话,最好。我想直接联系您! 谢谢!rn
解决spring-boot 中 bean无法注入的问题
在controller中注入service失败,异常信息如下:Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.boot.service.DemoService] found for dependency: expected at le
spring-boot项目遇到的一下问题
第一次在服务器上部署项目 直接进入问题吧 rn在使用 Java -jar xxx.jar 后出现rn[img=https://img-bbs.csdn.net/upload/201808/23/1535034085_331183.jpg][/img]rn然后通过本机浏览器访问 是这样 的rn[img=https://img-bbs.csdn.net/upload/201808/23/1535034158_400210.jpg][/img]rnrn备注:rn1.安装了tomcat,没有修改tomcat的配置文件(不知道改哪里) 同时没有启动tomcat(不知道要不要启动)rn2.项目的启动端口设置为80
dubbo说明
dubbo本质为管理rpc服务的平台,通过zookeeper对服务进行注册、管理与资源访问优化,实现了服务的高并发响应。         基于dubbo提供的服务一定是无状态的,且同一服务注册的多个provider需要一致,实现集群效应。 dubbo资料详见官方文档            http://dubbo.io/
spring-boot 属性定义和配置bean
自定义bean属性 1.定义bean属性 // 通过@ConfigurationProperties加载properties文件内的配置, // 通过prefix属性指定properties的配置的前缀,通过locations指定properties文件的位置 @ConfigurationProperties(prefix = "com.dudu") public class ConfigBean...
Spring-Boot 加载Bean的几种方式
Spring从3.0之后,就逐步倾向于使用java code config方式来进行bean的配置,在spring-boot中,这种风格就更为明显了。 在查看spring-boot工程的时候,总是探究一下spring-boot如何简单的声明一个starter、Enable××,就能额外增加一个强大的功能,spring是如何找到这些具体的实现...
Spring-Boot根据配置文件生成Bean
Spring-Boot根据配置文件生成Bean在我们的项目开发过程中经常会遇到将一些固定的配置属性写入配置文件中,在系统运行时自动读取这些配置文件的信息,类似于.NET中web.config文件中定义的各种配置属性。 在java中利用spring-boot可以十分方便的实现类似的功能 系统环境:spring-boot 我们在项目目录的resources目录添加一个config.properti