问答详情
源自:2-4 Mybatis自动生成器使用方式

运行成功,网页打不开

http://img3.mukewang.com/5e54dae20001d5e713520362.jpg

http://img4.mukewang.com/5e54daf90001d2ba12630151.jpg

ERROR 5336 --- [nio-8070-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] 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: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: com.mysql.cj.jdbc.Driver

### The error may exist in file [C:\Users\dell\IdeaProjects\miaosha1\target\classes\mapping\UserDOMapper.xml]

### The error may involve com.miaoshaproject.dao.UserDOMapper.selectByPrimaryKey

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: com.mysql.cj.jdbc.Driver] with root cause


提问者:qq_你在逗我_2 2020-02-25 16:30

个回答

  • qq_慕勒4081433
    2020-02-27 01:17:38

    同求,我也是