IDEA下MyBatis错误总结
2024-09-02 05:26:50
1. Pom.xml配置
语法顺序
<properties resource="config.properties"> </properties>
<settings>
<setting name="logImpl" value="LOG4J"/>
</settings>
2. mybatis中找不到配置的xml文件
https://blog.csdn.net/u010648555/article/details/70880425
https://blog.csdn.net/qq_23184291/article/details/78089115
3. 报错java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized
原因:数据库和系统时区差异所造成的。
解决办法:在jdbc连接的url后面加上?serverTimezone=GMT即可解决问题,如果需要使用gmt+8时区,需要写成GMT%2B8
https://blog.csdn.net/oppo5630/article/details/52162783
4.异常信息:nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 3 无效。
原因:由于配置文件存在中文或中文空格,导致UTF-8编码格式出错。注释也可能会导致出错
https://blog.csdn.net/coffeehot/article/details/66971567
0. 其他
1.使用IDEA新建项目时,先在src/main目录下新建java目录,将java目录设置为resource root目录后,才可以使用com..的方式在src/main/java/com//路径建立包,否则仅会建立单个文件名为com..**的文件夹
最新文章
- 移动端web开发技巧
- Binary Tree: Write a function to return count of nodes in binary tree which has only one child.
- getComputedStyle()与currentStyle
- Swift(三.函数)
- css实现居中的各种方法
- JOSM学习下载地址
- Ubuntu下Tomcat初始配置
- C#多线程处理
- PHP安装-phpMyAdmin+Discuz
- 简单总结下opacity、transparent以及rgba
- Lab 3-2
- quartz中设置Job不并发执行
- es-08-hadoop集成
- 我的第一个Python随笔
- [Leetcode Week14]Maximum Binary Tree
- 常用python shell
- VRChat简易教程4-使用VRC的接口实现物体的移动(VRC的action和trigger接口)
- JBPM的ORACLE脚本
- Django Reverse for &#39;artic_post&#39; with arguments &#39;()&#39; and keyword arguments &#39;{}&#39; not found. 0 pattern(s) tried: []
- AD RMS总结
热门文章
- [FAQ04776]如何默认打开user版本 debug 选项, 默认打开adb 连接【转】
- SDUT 周赛 神奇的树(简单题 注意数据类型的溢出 )
- intellij IDEA怎样打war包
- macbook pro 配置jdk,maven环境变量
- 小程序不支持wx.request同步请求解决方法
- Hibernate 4.3 配置文件实现
- ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 12. Views 下
- Swift3.0 元组 (tuples)
- 704. Binary Search
- AGC031 A~C