写了Controller类返回json数据文件时候报错
This application has no explicit mapping for /error, so you are seeing this as a fallback.
回到idear发现报错:
Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES)
The error may exist in edu/xalead/dao/ItemDao.java (best guess)
The error may involve edu.xalead.dao.ItemDao.selectAll
The error occurred while executing a query
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is