egnrynyrn5un 2019-07-01 07:22 采纳率: 100%
浏览 383
已采纳

我做ssm然后做到验证登录的时候出了这个问题

怎么办,我跟着视频老师做的看了两遍了还是没找到错误= =。大佬救救孩子吧
严重: Servlet.service() for servlet [DispatcherServlet] in context with path [/SJLykt] 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: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'db_vote_system'

The error may exist in file [C:\XXXX\sp.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SJLykt\WEB-INF\classes\config\mybatis\mapper\UserMapper.xml]

The error may involve ykt.dao.UserDao.findByUserName

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'db_vote_system'] with root cause

  • 写回答

2条回答 默认 最新

  • 毕小宝 博客专家认证 2019-07-01 08:58
    关注

    db_vote_system 数据库不存在。要学会看异常信息,根据异常信息定位问题很高效的啊。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 MATLAB怎么通过柱坐标变换画开口是圆形的旋转抛物面?
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿