摘要: 在mapper文件的insert语句前加上<selectKey>标签即可 如下: 添加前测试: 添加后测试: 阅读全文
posted @ 2018-08-14 11:31 没有名字~ 阅读(2674) 评论(0) 推荐(0) 编辑
摘要: 图片上传测试: 1、pojo 2、mapper.xml文件 3、dao 4、serviceImpl 5、Controller 6、同一返回实体类TouGuResult 7、图片存储地址工具类: 下一篇介绍图片上传时自动返回主键的方法 阅读全文
posted @ 2018-08-14 11:26 没有名字~ 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1、别人在用自己的tomcat访问我留的查询接口时,出现Cannot create PoolableConnectionFactory (null, message from server: "Host 'admin-PC' is not allowed to connect to this MyS 阅读全文
posted @ 2018-08-14 10:10 没有名字~ 阅读(2734) 评论(0) 推荐(1) 编辑