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 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作