ssm
山海皆可平q
惟愿最后的终点配得上这一路的颠沛流离
展开
-
解决使用mybatis向mysql添加数据时出现的中文乱码问题
这里有7个数据 前3个是我手动在mysql添加的,没有使用IDEA 4~6是我使用IDEA写mybatis代码添加时出现的乱码数据 最后一个是我解决问题后成功插入的数据 出现乱码可能是以下几个原因 1、在XML中连接MYSQL时,指定URL没有加上编码格式 <property name="url" value="jdbc:mysql://localhost:3306/mybatis?useSSL=true&useUnicode=true&characterEncodi原创 2021-07-05 21:41:50 · 807 阅读 · 0 评论 -
使用mybatis连接数据库报错Could not find resource com/qpf/dao/userMapper.xml
整个的报错信息为 D:\Software\jdk15\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Software\IDEA\IntelliJ IDEA 2020.2.2\lib\idea_rt.jar=6147:D:\Software\IDEA\IntelliJ IDEA 2020.2.2\bin" -Dfile.encoding=GBK -classpath "D:\Software\IDEA\Intell原创 2021-07-05 19:55:51 · 515 阅读 · 1 评论