[2019-03-27 22:32:12.759] boot -? INFO [main] --- BootMoreApplication: Starting BootMoreApplication on LAPTOP-AJBO635L with PID 11736 (F:\code\MyDubbo\dubboOne\server\target\classes started by jesse in F:\code\MyDubbo\dubboOne)
[2019-03-27 22:32:12.760] boot -? INFO [main] --- BootMoreApplication: No active profile set, falling back to default profiles: default
[2019-03-27 22:32:12.816] boot -? INFO [main] --- AnnotationConfigServletWebServerApplicationContext: Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6f3187b0: startup date [Wed Mar 27 22:32:12 GMT+08:00 2019]; root of context hierarchy
[2019-03-27 22:32:13.209] boot -? INFO [main] --- XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [spring/spring-jdbc.xml]
[2019-03-27 22:32:13.832] boot -? INFO [main] --- TomcatWebServer: Tomcat initialized with port(s): 8093 (http)
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_191\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Application\mysql-5.6.41-winx64\bin;D:\Application\apache-maven-3.3.9\bin;D:\Application\TortoiseGit\bin;C:\Users\jesse\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\jesse\AppData\Local\Programs\Python\Python37\;C:\Users\jesse\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\Java\jdk1.8.0_191\jre\bin;D:\Application\mysql-5.6.41-winx64\bin;D:\Git\cmd;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Application\mysql-5.6.41-winx64\bin;D:\Git\cmd;D:\Application\apache-maven-3.3.9\bin;D:\Application\TortoiseGit\bin;C:\Users\jesse\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\jesse\AppData\Local\Programs\Python\Python37\;C:\Users\jesse\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;;D:\Application\Fiddler;.]
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
信息: Initializing Spring embedded WebApplicationContext
[2019-03-27 22:32:14.060] boot -? INFO [localhost-startStop-1] --- ContextLoader: Root WebApplicationContext: initialization completed in 1247 ms
[2019-03-27 22:32:14.176] boot -? INFO [localhost-startStop-1] --- ServletRegistrationBean: Servlet dispatcherServlet mapped to [/]
[2019-03-27 22:32:14.181] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'characterEncodingFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'httpPutFormContentFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'requestContextFilter' to: [/*]
[2019-03-27 22:32:14.432] boot -? INFO [main] --- DruidDataSource: {dataSource-1} inited
[2019-03-27 22:32:14.701] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:14.861] boot -? INFO [main] --- RequestMappingHandlerAdapter: Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6f3187b0: startup date [Wed Mar 27 22:32:12 GMT+08:00 2019]; root of context hierarchy
[2019-03-27 22:32:14.904] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/base/one],methods=[GET]}" onto public com.jesses.dubbo.one.api.response.BaseResponse com.jesses.dubbo.one.server.controller.BaseController.one(java.lang.String)
[2019-03-27 22:32:14.906] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
[2019-03-27 22:32:14.907] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[2019-03-27 22:32:14.932] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:14.932] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:15.184] boot -? INFO [main] --- TomcatWebServer: Tomcat started on port(s): 8093 (http) with context path '/dubboOne'
[2019-03-27 22:32:15.189] boot -? INFO [main] --- BootMoreApplication: Started BootMoreApplication in 2.805 seconds (JVM running for 3.835)
2019-03-28
已解決。Application啟動類沒有引入spring-dubbo.xml配置。
2019-03-27
我把項目代碼上傳到碼云了,請幫我看看原因
git@gitee.com:Jesses1024/DubboDemo.git
2019-03-27
問題補充:console沒打印任何關(guān)于zoo以及dubbo向zoo注冊的日志。dubbo的配置仿佛沒生效一樣。
log4j.properties是拷貝老師源碼里的。
以下是console日志:
Connected to the target VM, address: '127.0.0.1:63487', transport: 'socket'
[2019-03-27 22:32:12.581] boot -? INFO [background-preinit] --- Version: HV000001: Hibernate Validator 5.3.5.Final
? .? ?____? ? ? ? ? _? ? ? ? ? ? __ _ _
?/\\ / ___'_ __ _ _(_)_ __? __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
?\\/? ___)| |_)| | | | | || (_| |? ) ) ) )
? '? |____| .__|_| |_|_| |_\__, | / / / /
?=========|_|==============|___/=/_/_/_/
?:: Spring Boot ::? ? ? ? (v2.0.3.RELEASE)
[2019-03-27 22:32:12.759] boot -? INFO [main] --- BootMoreApplication: Starting BootMoreApplication on LAPTOP-AJBO635L with PID 11736 (F:\code\MyDubbo\dubboOne\server\target\classes started by jesse in F:\code\MyDubbo\dubboOne)
[2019-03-27 22:32:12.760] boot -? INFO [main] --- BootMoreApplication: No active profile set, falling back to default profiles: default
[2019-03-27 22:32:12.816] boot -? INFO [main] --- AnnotationConfigServletWebServerApplicationContext: Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6f3187b0: startup date [Wed Mar 27 22:32:12 GMT+08:00 2019]; root of context hierarchy
[2019-03-27 22:32:13.209] boot -? INFO [main] --- XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [spring/spring-jdbc.xml]
[2019-03-27 22:32:13.832] boot -? INFO [main] --- TomcatWebServer: Tomcat initialized with port(s): 8093 (http)
三月 27, 2019 10:32:13 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
三月 27, 2019 10:32:13 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.31
三月 27, 2019 10:32:13 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_191\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Application\mysql-5.6.41-winx64\bin;D:\Application\apache-maven-3.3.9\bin;D:\Application\TortoiseGit\bin;C:\Users\jesse\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\jesse\AppData\Local\Programs\Python\Python37\;C:\Users\jesse\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\Java\jdk1.8.0_191\jre\bin;D:\Application\mysql-5.6.41-winx64\bin;D:\Git\cmd;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Application\mysql-5.6.41-winx64\bin;D:\Git\cmd;D:\Application\apache-maven-3.3.9\bin;D:\Application\TortoiseGit\bin;C:\Users\jesse\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\jesse\AppData\Local\Programs\Python\Python37\;C:\Users\jesse\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;;D:\Application\Fiddler;.]
三月 27, 2019 10:32:14 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
三月 27, 2019 10:32:14 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
[2019-03-27 22:32:14.060] boot -? INFO [localhost-startStop-1] --- ContextLoader: Root WebApplicationContext: initialization completed in 1247 ms
[2019-03-27 22:32:14.176] boot -? INFO [localhost-startStop-1] --- ServletRegistrationBean: Servlet dispatcherServlet mapped to [/]
[2019-03-27 22:32:14.181] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'characterEncodingFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'httpPutFormContentFilter' to: [/*]
[2019-03-27 22:32:14.182] boot -? INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'requestContextFilter' to: [/*]
[2019-03-27 22:32:14.432] boot -? INFO [main] --- DruidDataSource: {dataSource-1} inited
[2019-03-27 22:32:14.701] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:14.861] boot -? INFO [main] --- RequestMappingHandlerAdapter: Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6f3187b0: startup date [Wed Mar 27 22:32:12 GMT+08:00 2019]; root of context hierarchy
[2019-03-27 22:32:14.904] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/base/one],methods=[GET]}" onto public com.jesses.dubbo.one.api.response.BaseResponse com.jesses.dubbo.one.server.controller.BaseController.one(java.lang.String)
[2019-03-27 22:32:14.906] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
[2019-03-27 22:32:14.907] boot -? INFO [main] --- RequestMappingHandlerMapping: Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[2019-03-27 22:32:14.932] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:14.932] boot -? INFO [main] --- SimpleUrlHandlerMapping: Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[2019-03-27 22:32:15.184] boot -? INFO [main] --- TomcatWebServer: Tomcat started on port(s): 8093 (http) with context path '/dubboOne'
[2019-03-27 22:32:15.189] boot -? INFO [main] --- BootMoreApplication: Started BootMoreApplication in 2.805 seconds (JVM running for 3.835)