![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常见错误
NTT0101
新人一枚
展开
-
MyBatis 使用报错:多表查询出现问题
报错:org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor found in com.ntt.bean.User matching解决方案:给实体类添加空的构造方法原因未知:...原创 2020-09-26 09:59:52 · 409 阅读 · 0 评论 -
MyBatis 使用报错:Type interface com.xxx.dao.XxxMapper is not known to the MapperRegistry
MyBatis 使用报错:org.apache.ibatis.binding.BindingException: Type interface com.ntt.dao.UserMapper is not known to the MapperRegistry.解决:XxxMappper.xml里面的namespace 和对应的接口地址不一样映射的作用:一个映射文件就对应一个接口,一个接口可以有多个映射文件,一般是一对一关系。mapper 标签的 namespace 属性的作用:关联接口,需要配置原创 2020-09-23 23:10:11 · 1197 阅读 · 0 评论 -
IDEA 上次华为云 Git 失败
首次推送:Push rejected: Push to origin/master was rejected 推送到原点/主节点被拒绝在GIT BASH 中运行:git push -u HuaWeiMaven master -f:如下图推送远程库成功!接下来就可以直接在 IEDA 中操作原创 2020-09-22 21:38:50 · 368 阅读 · 0 评论 -
连接 MySQL 数据库出现问题:The server time zone value ‘�й���ʱ��‘ is unrecogni....
出现问题The server time zone value '�й���ʱ��' is unrecogni....解决方案在 URL 后面加上 ?serverTimezone=UTC 如下:url=jdbc:mysql://localhost:3306/myBase?serverTimezone=UTC原创 2020-09-21 22:34:20 · 1615 阅读 · 0 评论 -
IDEA 修改 JS 后部署没生效
IDEA 修改 JS 后部署没生效先查看一系列 Tomcat 问题后,确定不是 Tomcat 问题后,还是没生效。有可能就是浏览器缓存问题。打开浏览器(chrome)将disable cache勾选,就不缓存了。原创 2020-09-17 17:55:07 · 531 阅读 · 0 评论