一直显示注入错误,,急急急

一直显示注入错误,,急急急

http://img1.sycdn.imooc.com//climg/5d8b3b25095f92b207670373.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b25096c55d711090664.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b2509ee105b11730617.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b260989ab5908650355.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b260902461d13840525.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b2709aaccac12740595.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b2709493a7309270607.jpg

http://img1.sycdn.imooc.com//climg/5d8b3b2709335df512180668.jpg

报错消息:C:\web\apache-tomcat-9.0.0.M26\bin\catalina.bat run
[2019-09-24 11:09:49,597] Artifact oa_web:war exploded: Waiting for server connection to start artifact deployment...
'#' is not recognized as an internal or external command,
operable program or batch file.
Using CATALINA_BASE:   "C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa"
Using CATALINA_HOME:   "C:\web\apache-tomcat-9.0.0.M26"
Using CATALINA_TMPDIR: "C:\web\apache-tomcat-9.0.0.M26\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_211"
Using CLASSPATH:       "C:\web\apache-tomcat-9.0.0.M26\bin\bootstrap.jar;C:\web\apache-tomcat-9.0.0.M26\bin\tomcat-juli.jar"
24-Sep-2019 11:09:54.728 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/9.0.0.M26
24-Sep-2019 11:09:54.731 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Aug 2 2017 20:29:05 UTC
24-Sep-2019 11:09:54.732 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         9.0.0.0
24-Sep-2019 11:09:54.733 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
24-Sep-2019 11:09:54.733 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
24-Sep-2019 11:09:54.733 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
24-Sep-2019 11:09:54.733 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_211\jre
24-Sep-2019 11:09:54.733 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_211-b12
24-Sep-2019 11:09:54.734 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
24-Sep-2019 11:09:54.734 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa
24-Sep-2019 11:09:54.734 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\web\apache-tomcat-9.0.0.M26
24-Sep-2019 11:09:54.734 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa\conf\logging.properties
24-Sep-2019 11:09:54.735 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
24-Sep-2019 11:09:54.735 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
24-Sep-2019 11:09:54.735 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
24-Sep-2019 11:09:54.735 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
24-Sep-2019 11:09:54.735 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa\jmxremote.password
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa\jmxremote.access
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\web\apache-tomcat-9.0.0.M26
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\web\apache-tomcat-9.0.0.M26\temp
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.12] using APR version [1.5.2].
24-Sep-2019 11:09:54.736 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
24-Sep-2019 11:09:54.737 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
24-Sep-2019 11:09:56.036 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2k  26 Jan 2017]
24-Sep-2019 11:09:56.908 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
24-Sep-2019 11:09:56.969 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Sep-2019 11:09:56.974 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
24-Sep-2019 11:09:56.977 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Sep-2019 11:09:56.977 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 3697 ms
24-Sep-2019 11:09:57.147 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
24-Sep-2019 11:09:57.147 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.0.M26
24-Sep-2019 11:09:57.171 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
24-Sep-2019 11:09:57.192 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
24-Sep-2019 11:09:57.201 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 223 ms
Connected to server
[2019-09-24 11:09:57,613] Artifact oa_web:war exploded: Artifact is being deployed, please wait...
24-Sep-2019 11:10:06.579 信息 [RMI TCP Connection(3)-127.0.0.1] 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.
24-Sep-2019 11:10:07.840 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization started
24-Sep-2019 11:10:07.988 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Tue Sep 24 11:10:07 GMT+08:00 2019]; root of context hierarchy
24-Sep-2019 11:10:08.145 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [spring-web.xml]
24-Sep-2019 11:10:08.730 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [spring-biz.xml]
24-Sep-2019 11:10:08.781 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [spring-dao.xml]
24-Sep-2019 11:10:10.381 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName Loaded JDBC driver: com.mysql.jdbc.Driver
24-Sep-2019 11:10:12.174 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/add]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.add(javax.servlet.http.HttpSession,com.imooc.oa.dto.ClaimVoucherInfo)
24-Sep-2019 11:10:12.179 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/update]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.update(javax.servlet.http.HttpSession,com.imooc.oa.dto.ClaimVoucherInfo)
24-Sep-2019 11:10:12.180 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/detail]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.detail(int,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.181 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/self]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.self(javax.servlet.http.HttpSession,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.183 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/to_update]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.toUpdate(int,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.185 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/deal]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.deal(javax.servlet.http.HttpSession,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.187 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/claim_voucher/to_add]}" onto public java.lang.String com.imooc.oa.controller.ClaimVoucherController.toAdd(java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.205 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/add]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.add(com.imooc.oa.entity.Department)
24-Sep-2019 11:10:12.206 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/remove],params=[sn]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.remove(java.lang.String)
24-Sep-2019 11:10:12.208 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/update]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.update(com.imooc.oa.entity.Department)
24-Sep-2019 11:10:12.210 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/list]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.list(java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.211 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/to_update],params=[sn]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.toUpdate(java.lang.String,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.213 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/department/to_add]}" onto public java.lang.String com.imooc.oa.controller.DepartmentController.toAdd(java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.227 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/add]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.add(com.imooc.oa.entity.Employee)
24-Sep-2019 11:10:12.244 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/remove],params=[sn]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.remove(java.lang.String)
24-Sep-2019 11:10:12.253 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/update]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.update(com.imooc.oa.entity.Employee)
24-Sep-2019 11:10:12.255 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/list]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.list(java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.259 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/to_update],params=[sn]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.toUpdate(java.lang.String,java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.261 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/employee/to_add]}" onto public java.lang.String com.imooc.oa.controller.EmployeeController.toAdd(java.util.Map<java.lang.String, java.lang.Object>)
24-Sep-2019 11:10:12.270 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/login]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.login(javax.servlet.http.HttpSession,java.lang.String,java.lang.String)
24-Sep-2019 11:10:12.271 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/to_change_password]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.tochangePassword()
24-Sep-2019 11:10:12.273 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/to_login]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.toLogin()
24-Sep-2019 11:10:12.274 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/self]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.self()
24-Sep-2019 11:10:12.275 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/quit]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.quit(javax.servlet.http.HttpSession)
24-Sep-2019 11:10:12.278 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/change_password]}" onto public java.lang.String com.imooc.oa.controller.GlobalController.changePassword(javax.servlet.http.HttpSession,java.lang.String,java.lang.String,java.lang.String)
24-Sep-2019 11:10:12.585 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Tue Sep 24 11:10:07 GMT+08:00 2019]; root of context hierarchy
24-Sep-2019 11:10:12.729 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Tue Sep 24 11:10:07 GMT+08:00 2019]; root of context hierarchy
24-Sep-2019 11:10:12.850 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
24-Sep-2019 11:10:13.122 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization completed in 5281 ms
[2019-09-24 11:10:13,195] Artifact oa_web:war exploded: Artifact is deployed successfully
[2019-09-24 11:10:13,195] Artifact oa_web:war exploded: Deploy took 15,582 milliseconds
Tue Sep 24 11:10:34 GMT+08:00 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Tue Sep 24 11:10:39 GMT+08:00 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Tue Sep 24 11:10:43 GMT+08:00 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Tue Sep 24 11:10:45 GMT+08:00 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Tue Sep 24 11:10:47 GMT+08:00 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
C:\web\apache-tomcat-9.0.0.M26\bin\catalina.bat stop
'#' is not recognized as an internal or external command,
operable program or batch file.
Using CATALINA_BASE:   "C:\Users\User\.IntelliJIdea2019.1\system\tomcat\department_list_jsp_oa"
Using CATALINA_HOME:   "C:\web\apache-tomcat-9.0.0.M26"
Using CATALINA_TMPDIR: "C:\web\apache-tomcat-9.0.0.M26\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_211"
Using CLASSPATH:       "C:\web\apache-tomcat-9.0.0.M26\bin\bootstrap.jar;C:\web\apache-tomcat-9.0.0.M26\bin\tomcat-juli.jar"
24-Sep-2019 11:39:18.383 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
24-Sep-2019 11:39:18.386 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
24-Sep-2019 11:39:18.855 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
24-Sep-2019 11:39:19.273 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
24-Sep-2019 11:39:19.280 信息 [main] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Tue Sep 24 11:10:07 GMT+08:00 2019]; root of context hierarchy
24-Sep-2019 11:39:19.310 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Sep-2019 11:39:19.325 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
24-Sep-2019 11:39:19.330 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
24-Sep-2019 11:39:19.334 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
24-Sep-2019 11:39:19.336 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
Disconnected from server

正在回答

登陆购买课程后可参与讨论,去登陆

5回答

同学你好。报错信息如下:

http://img1.sycdn.imooc.com//climg/5d8b40bd09a03f4510890074.jpg

简单翻译一下,BuilderException:错误的namespace 找不到“com.imooc.bbs.dao.UserDao”

同学可能是在resources下创建多级包的时候是否使用了“.”分割,应该使用“/”来分割,否则idea会将“com.imooc.bbs.dao”看做一个很长名字的包,而不是多级的包,就找不到了。

例如应该使用:

5d81fefb09c634c205830178.jpg

而不是这样创建:

5d81ff24090e9e3905830178.jpg

建议同学修改后再重新点击重新编译http://img1.sycdn.imooc.com//climg/5d8b42ca09f32f0a00350035.jpg试一下

如果解答了同学的疑问,望采纳~

祝学习愉快~

  • KelvinChung 提问者 #1
    啊原来我用错了斜杠,老师还有最后一个问题麻烦了,,我放截图里
    2019-09-25 18:59:38
提问者 KelvinChung 2019-09-25 19:03:32

http://img1.sycdn.imooc.com//climg/5d8b49670928819608330426.jpg

http://img1.sycdn.imooc.com//climg/5d8b4968090a57be12520559.jpg

http://img1.sycdn.imooc.com//climg/5d8b49680903943309090384.jpg

http://img1.sycdn.imooc.com//climg/5d8b496809c5489b16200751.jpg

为什么一直说找不到这个bean啊

提问者 KelvinChung 2019-09-25 18:32:36
好帮手慕阿满 2019-09-25 18:27:06

同学你好,在报错提示中,提示错误的命名空间,如:

http://img1.sycdn.imooc.com//climg/5d8b40d909cb5b1611760234.jpg

建议同学查看一下namespace是否正确书写,是否有UserDao。

如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~

  • 提问者 KelvinChung #1
    还是错的哦,我截图老师您看看
    2019-09-25 18:31:22
  • 提问者 KelvinChung #2
    老师您看看,我看报错信息是自动注入有问题,说是找不到相对应的bean,但是我自动扫描也开了,注解也写了,自动扫描的路径名都是对的,不知道为什么还是扫描不到。。。
    2019-09-25 18:33:51
提问者 KelvinChung 2019-09-25 18:04:39

報錯消息:::

http://img1.sycdn.imooc.com//climg/5d8b3ba7093203ba17390525.jpg

http://img1.sycdn.imooc.com//climg/5d8b3bb009749ab916920324.jpg

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师