第一个程序报错,求帮解决下org.apache.ibatis.exceptions.PersistenceException:
您好,建议检查一下UserMapper.xml中的findUserById配置,同时检查一下您开发的机器与MySQL服务的连接
问下源码有所改进嘛?
发现源码有问题对我们刚学的新手来说真的很不友好
图书283页说的CheckUser方法定义书上并没有写
CheckUser的逻辑在此处未定义, 读者可以参考287页中UserController类中的login方法, CheckUser即为login方法中判断用户登录信息的逻辑, 读者可以根据提供的源码,自己动手实践, 将该处逻辑封装为一个“CheckUser”方法,放在Service或Dao中。
书中283页,checkUser方法怎么没有?
第一个程序报错,求帮解决下org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: j**a.sql.SQLException: null, message from server: “Host ‘apple-PC’ is not allowed to connect to this MySQL server”
The error may exist in sqlmap/UserMapper.xml
The error may involve test.findUserById
The error occurred while executing a query
Cause: j**a.sql.SQLException: null, message from server: “Host ‘apple-PC’ is not allowed to connect to this MySQL server”
问下源码有所改进嘛?
发现源码有问题对我们刚学的新手来说真的很不友好
图书283页说的CheckUser方法定义书上并没有写
书中283页,checkUser方法怎么没有?