MyBatis
MyBatis
@小聂同学
18岁之后的你不在属于自己!
展开
-
mybatis查询比较时间时的问题
今天Mybatis-plus使用当前时间和数据库时间进行比较时,发现时分秒不准确,百度之后查到相关解决方案,记录一下!mybatis查询比较时间时的问题mybatis查询mysql的datetime类型数据时间差了14小时(时区问题)转发自:冰箱里的will;yjgithub...转载 2021-07-13 22:47:09 · 1776 阅读 · 0 评论 -
but was actually of type ‘com.sun.proxy.$Proxy9‘解决方案
报错如下:org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named ‘userMapper’ is expected to be of type ‘com.nfhao.mapper.UserMapperImpl’ but was actually of type ‘com.sun.proxy.$Proxy9’解决方案:这个错误的原因是spring aop代理混用的问题在Spring配置文件里面的<转载 2021-01-18 23:10:33 · 1163 阅读 · 0 评论 -
JDBC报连接数据库时因时区问题报错
JDBC报连接数据库时因时区问题报错:Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represent原创 2021-01-18 15:16:08 · 857 阅读 · 0 评论 -
Maven静态资源过滤问题
Maven静态资源过滤问题解决方案<build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includ原创 2021-01-17 19:03:17 · 899 阅读 · 2 评论 -
UTF-8和utf8的区别
只有在MySQL中使用"utf-8"的别名"utf8",但是在其他地方一律使用大写"UTF-8"。转载 2020-09-06 21:38:18 · 3802 阅读 · 1 评论 -
Mapper.xml和mybatis-config.xml中文注释报错问题
Mapper.xml和mybatis-config.xml中文注释报错问题Mapper.xml、mybatis-config.xml这两个文件中有中文时,报错如下图网上搜了好多方法都没解决,比如后来发了一篇Blink,有位朋友帮我解答了。解决办法:将配置文件设置utf8修改mybatis-config.xml修改Mapper.xml...原创 2020-09-06 17:07:34 · 577 阅读 · 2 评论