• HEHE

    第一个程序报错,求帮解决下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”

    HEHE 发表于 2018/5/23 14:56:03
    • 光仔December

      您好,建议检查一下UserMapper.xml中的findUserById配置,同时检查一下您开发的机器与MySQL服务的连接

      光仔December发表于 2018/6/30 13:29:12
  • 大白

    问下源码有所改进嘛?

    大白发表于 2018/5/8 13:04:34
  • mangococo

    发现源码有问题对我们刚学的新手来说真的很不友好

    mangococo发表于 2018/4/21 12:45:24
  • 大白

    图书283页说的CheckUser方法定义书上并没有写

    大白发表于 2018/4/8 18:30:17
    • 光仔December

      CheckUser的逻辑在此处未定义,
      读者可以参考287页中UserController类中的login方法,
      CheckUser即为login方法中判断用户登录信息的逻辑,
      读者可以根据提供的源码,自己动手实践,
      将该处逻辑封装为一个“CheckUser”方法,放在Service或Dao中。

      光仔December发表于 2018/4/18 21:32:38
  • zxz24

    书中283页,checkUser方法怎么没有?

    zxz24发表于 2018/3/22 11:35:43
    • 光仔December

      CheckUser的逻辑在此处未定义,
      读者可以参考287页中UserController类中的login方法,
      CheckUser即为login方法中判断用户登录信息的逻辑,
      读者可以根据提供的源码,自己动手实践,
      将该处逻辑封装为一个“CheckUser”方法,放在Service或Dao中。

      光仔December发表于 2018/4/18 21:32:35
  • 1
  • ...
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8