• 微服务中springboot启动问题


    log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
    log4j:WARN Please initialize the log4j system properly.

    . ____ _ __ _ _
    /\ / ___'_ __ _ _(_)_ __ __ _
    ( ( )\___ | '_ | '_| | '_ / _` |
    \/ ___)| |_)| | | | | || (_| | ) ) ) )
    ' |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot :: (v2.0.1.RELEASE)

    2018-06-15 13:49:01.727 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode!
    2018-06-15 13:49:03.151 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["https-jsse-nio-18086"]
    2018-06-15 13:49:03.168 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
    2018-06-15 13:49:03.168 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.29
    2018-06-15 13:49:03.179 [localhost-startStop-1] INFO org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:proAAASoftjavajre1.8in;C:WindowsSunJavain;C:Windowssystem32;C:Windows;D:/proAAASoft/java/jre1.8/bin/server;D:/proAAASoft/java/jre1.8/bin;D:/proAAASoft/java/jre1.8/lib/amd64;C:Program Files (x86)Common FilesOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)Javajre7;D:proAAASoftjavajdk1.8in;D:proAAASoftjavajdk1.8jrein;D:proAAASoftgitGitcmd;D:proAAASoftsvnin;D:proAAASoftmavenapache-maven-3.3.9-binapache-maven-3.3.9in;C:Program Filesin;D:proAAASoftzookeeper/bin;D:proAAASoftzookeeper/conf;;D:proAAASofteclipseproAAAeclipse;;.]
    2018-06-15 13:49:03.329 [localhost-startStop-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
    2018-06-15 13:49:04.041 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]

     springboot启动发现一起即停的现象。通过debug启动报错如下:

    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deviceController': Unsatisfied dependency expressed through field 'deviceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.proAAA.cloud.device.service.DeviceService. No provider available for the service com.proAAA.cloud.device.service.DeviceService:1.0.1 from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=sweep-machine&dubbo=2.5.6&interface=com.proAAA.cloud.device.service.DeviceService&methods=modifyDeviceName,userGetDeviceDetailByDeviceId,selectDeviceByPrimaryKey,getBindUserByDevice,getWorkStatistics,getAdminMapData,selectDeviceListByUserId,accountOverView,countMyDevice,unbind,getStatisticsDeviceWorkPlan,isMyDevice,userGetDeviceList,adminPerformanceEfficiency,getAdminMapTatal,bindDevice,selectDeviceDetailById,getWorkStatisticsSum,faultDeviceList&pid=8500&revision=1.0.1&side=consumer&timestamp=1529041094529&version=1.0.1 to the consumer 192.168.8.184 use dubbo version 2.5.6

    这种错误往往是配置文件有问题,该错误是因为,我们的其中一个项目进行了拆分,一个服务拆为两个,于是需要在zookeeper上暴露接口注册,需要定义两个端点,而本地地址也要对应上。同时在pom.xml文件中开放相应的开发模式,是在线,开发,测试,本地等,对应选择。

  • 相关阅读:
    canvas绘制折线路径动画
    canvas绘制虚线图表
    BootstrapTable 行内编辑解决方案:bootstrap-table-editor
    canvas绘制图像轮廓效果
    三维场景中常用的路径动画
    三维组态部件动画解决方案
    canvas多重阴影发光效果
    萌新的算法课-方法论
    网易云ncm文件转换器
    PyCharm永久激活
  • 原文地址:https://www.cnblogs.com/xiaoyao-001/p/9187406.html
Copyright © 2020-2023  润新知