1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root' @ 'localhost' (using password: YES)) ### The error may exist in file [E:\mmallGIT\mmall\target\mmall\WEB-INF\classes\mappers\UserMapper.xml] ### The error may involve com.mmall.dao.UserMapper.checkUsername ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root' @ 'localhost' (using password: YES)) org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java: 79 ) org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java: 447 ) com.sun.proxy.$Proxy21.selectOne(Unknown Source) org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java: 167 ) org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java: 82 ) org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java: 53 ) com.sun.proxy.$Proxy22.checkUsername(Unknown Source) com.mmall.service.impl.UserServiceImpl.login(UserServiceImpl.java: 33 ) com.mmall.controller.portal.UserController.login(UserController.java: 40 ) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 62 ) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43 ) java.lang.reflect.Method.invoke(Method.java: 498 ) org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java: 214 ) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java: 132 ) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java: 104 ) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java: 748 ) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java: 689 ) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java: 83 ) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 945 ) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 876 ) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 931 ) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 833 ) javax.servlet.http.HttpServlet.service(HttpServlet.java: 650 ) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java: 807 ) javax.servlet.http.HttpServlet.service(HttpServlet.java: 731 ) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java: 52 ) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 88 ) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 108 ) |