1.错误1
.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one
解决方法:
修改:
jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
2.错误2
Cause: java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for xxx.xxx
解决方法:
将Mapper中的<update> <insert> <select> <delete>重写一遍
3.错误3
不要拼写错单词大小写
4.错误4
Error parsing SQL Mapper Configuration. Cause: java.lang.ClassNotFoundException: Cannot find class: com.hh.mapper.UserMapper
<mappers>
<mapper class="com.hh.mapper.UserMapper"/>
</mappers>
应该改为:
暂时不动class的用法,先改为
<mappers>
<mapper resource="com/hh/mapper/UserMapper.xml"/>
</mappers>