错误代码如下:
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
### The error may exist in com/imooc/mybatis/dao/GoodsDAO.java (best guess)
错误的原因是mybatis-config.xml中的配置文件写错,连接数据库的url写成实际生产的URL而不是本地的URL导致数据库连接不上