Springmvc-springmvc: What's wrong with configuring mysql? could you please help me?

Source: Internet
Author: User
Db. properties: drivercom. mysql. jdbc. Driverurljdbc: mysql: 114.215.207.30: 3306 busticket? UseUnicodetrue & amp; characterEncodingUTF-8usernamePBDBpasswordPBDBspringmvc-servlet.xml: w mysqlspring mvc

Db. properties:
Driver = com. mysql. jdbc. Driver
Url = jdbc: mysql: // 114.215.207.30: 3306 busticket? UseUnicode = true & characterEncoding = UTF-8
Username = PBDB
Password = PBDB

Springmvc-servlet.xml:

Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xmlns: context = "http://www.springframework.org/schema/context"
Xmlns: tx = "http://www.springframework.org/schema/tx"
Xmlns: mvc = "http://www.springframework.org/schema/mvc"
Xsi: schemaLocation = "http://www.springframework.org/schema/beans
Http://www.springframework.org/schema/beans/spring-beans.xsd
Http://www.springframework.org/schema/context
Http://www.springframework.org/schema/context/spring-context.xsd
Http://www.springframework.org/schema/mvc
Http://www.springframework.org/schema/mvc/spring-mvc.xsd
Http://www.springframework.org/schema/tx
Http://www.springframework.org/schema/tx/spring-tx.xsd
">



   
   
   
     
   
       
    
   














   

Severe: Servlet. service () for servlet [springmvc] in context with path [/Test] threw exception [Request processing failed; nested exception is org. mybatis. spring. myBatisSystemException: nested exception is org. apache. ibatis. exceptions. persistenceException:

Error querying database. cause: org. springframework. jdbc. cannotGetJdbcConnectionException: cocould not get JDBC Connection; nested exception is org. apache. commons. dbcp. SQLNestedException: Cannot load JDBC driver class 'com. mysql. jdbc. driver 'The error may exist in com/aowin/dao/CardMapper. xmlThe error may involve com. aowin. dao. cardMapper. selectThe error occurred while executing a queryCause: org. springframework. jdbc. cannotGetJdbcConnectionException: cocould not get JDBC Connection; nested exception is org. apache. commons. dbcp. SQLNestedException: Cannot load JDBC driver class 'com. mysql. jdbc. driver '] with root cause

Java. lang. ClassNotFoundException: com. mysql. jdbc. Driver
At org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1714)
At org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1559)
At org. apache. commons. dbcp. BasicDataSource. createConnectionFactory (BasicDataSource. java: 1420)
At org. apache. commons. dbcp. BasicDataSource. createDataSource (BasicDataSource. java: 1371)
At org. apache. commons. dbcp. BasicDataSource. getConnection (BasicDataSource. java: 1044)
At org. springframework. jdbc. datasource. performanceutils. doGetConnection (performanceutils. java: 111)
At org. springframework. jdbc. datasource. performanceutils. getConnection (performanceutils. java: 77)
At org. mybatis. spring. transaction. SpringManagedTransaction. openConnection (SpringManagedTransaction. java: 80)
At org. mybatis. spring. transaction. SpringManagedTransaction. getConnection (SpringManagedTransaction. java: 66)
At org.apache.ibatis.exe cutor. BaseExecutor. getConnection (BaseExecutor. java: 271)
At org.apache.ibatis.exe cutor. SimpleExecutor. prepareStatement (SimpleExecutor. java: 69)
At org.apache.ibatis.exe cutor. SimpleExecutor. doQuery (SimpleExecutor. java: 56)
At org.apache.ibatis.exe cutor. BaseExecutor. queryFromDatabase (BaseExecutor. java: 259)
At org.apache.ibatis.exe cutor. BaseExecutor. query (BaseExecutor. java: 132)
At org.apache.ibatis.exe cutor. CachingExecutor. query (CachingExecutor. java: 105)
At org.apache.ibatis.exe cutor. CachingExecutor. query (CachingExecutor. java: 81)
At org. apache. ibatis. session. defaults. DefaultSqlSession. selectList (DefaultSqlSession. java: 104)
At org. apache. ibatis. session. defaults. DefaultSqlSession. selectList (DefaultSqlSession. java: 98)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 57)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 606)
At org. mybatis. spring. SqlSessionTemplate $ SqlSessionInterceptor. invoke (SqlSessionTemplate. java: 355)
At com. sun. proxy. $ Proxy14.selectList (Unknown Source)
At org. mybatis. spring. SqlSessionTemplate. selectList (SqlSessionTemplate. java: 195)
At org.apache.ibatis.binding.MapperMethod.exe cuteForMany (MapperMethod. java: 114)
At org.apache.ibatis.binding.MapperMethod.exe cute (MapperMethod. java: 58)
At org. apache. ibatis. binding. MapperProxy. invoke (MapperProxy. java: 43)
At com. sun. proxy. $ Proxy15.select (Unknown Source)
At com. aowin. service. imp. selecibd. select (selecqp. java: 53)
At com. aowin. controller. CardController. chong (CardController. java: 49)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 57)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 606)
At org. springframework. web. method. support. InvocableHandlerMethod. doInvoke (InvocableHandlerMethod. java: 222)
At org. springframework. web. method. support. InvocableHandlerMethod. invokeForRequest (InvocableHandlerMethod. java: 137)
At org. springframework. web. servlet. mvc. method. annotation. ServletInvocableHandlerMethod. invokeAndHandle (ServletInvocableHandlerMethod. java: 110)
At org. springframework. web. servlet. mvc. method. annotation. RequestMappingHandlerAdapter. invokeHandlerMethod (RequestMappingHandlerAdapter. java: 814)
At org. springframework. web. servlet. mvc. method. annotation. RequestMappingHandlerAdapter. handleInternal (RequestMappingHandlerAdapter. java: 737)
At org. springframework. web. servlet. mvc. method. AbstractHandlerMethodAdapter. handle (AbstractHandlerMethodAdapter. java: 85)
At org. springframework. web. servlet. DispatcherServlet. doDispatch (DispatcherServlet. java: 959)
At org. springframework. web. servlet. DispatcherServlet. doService (DispatcherServlet. java: 893)
At org. springframework. web. servlet. FrameworkServlet. processRequest (FrameworkServlet. java: 969)
At org. springframework. web. servlet. FrameworkServlet. doPost (FrameworkServlet. java: 871)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 647)
At org. springframework. web. servlet. FrameworkServlet. service (FrameworkServlet. java: 845)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 728)
At org. apache. catalina. core. ApplicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 305)
At org. apache. catalina. core. ApplicationFilterChain. doFilter (ApplicationFilterChain. java: 210)
At org. apache. catalina. core. StandardWrapperValve. invoke (StandardWrapperValve. java: 222)
At org. apache. catalina. core. StandardContextValve. invoke (StandardContextValve. java: 123)
At org. apache. catalina. authenticator. AuthenticatorBase. invoke (AuthenticatorBase. java: 472)
At org. apache. catalina. core. StandardHostValve. invoke (StandardHostValve. java: 171)
At org. apache. catalina. valves. ErrorReportValve. invoke (ErrorReportValve. java: 99)
At org. apache. catalina. valves. AccessLogValve. invoke (AccessLogValve. java: 953)
At org. apache. catalina. core. StandardEngineValve. invoke (StandardEngineValve. java: 118)
At org. apache. catalina. connector. CoyoteAdapter. service (CoyoteAdapter. java: 408)
At org. apache. coyote. http11.20.acthttp11processor. process (AbstractHttp11Processor. java: 1008)
At org. apache. coyote. AbstractProtocol $ AbstractConnectionHandler. process (AbstractProtocol. java: 589)
At org.apache.tomcat.util.net. AprEndpoint $ SocketProcessor. run (AprEndpoint. java: 1852)
At java. util. concurrent. ThreadPoolExecutor. runWorker (ThreadPoolExecutor. java: 1145)
At java. util. concurrent. ThreadPoolExecutor $ Worker. run (ThreadPoolExecutor. java: 615)
At java. lang. Thread. run (Thread. java: 745)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.