问题遇到的现象和发生背景
eclipse、Navicat、Tomcat8.0
eclipse里代码未报错,但是运行项目时显示
HTTP Status 500 – Internal Server Error
Type Exception Report
Message org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
数据库连接出现问题,但是无法解决。
我想要达到的结果
项目运行