该文被密码保护。 阅读全文
随笔档案-2019年10月
MyBatis的配置文件提示相关dtd文件未找到
2019-10-29 16:45 by pere, 1496 阅读, 收藏, 编辑
摘要:
问题:The file cannot be validated as the XML definition "D:\xx\xx\(系统找不到指定的路径。)" that is specified as describing the syntax of the file cannot be located.解决方法:以配置mapper文件为例"http://mybatis.org/dtd/mybat... 阅读全文
如何将notepad++添加到右键快捷方式
2019-10-14 22:42 by pere, 2772 阅读, 收藏, 编辑
摘要:
1、点击开始菜单输入regedit打开注册表编辑器2、在HKEY_CLASSSES_ROOT—* —Shell下,新建项命名为Open With Notepad++(注意*也是一个项)3、在该新建项的右边窗口新建字符串值(右键--新建--字符串值)。名称:Icon;值:C:\program files (x86)\Notepad++\Notepad++.exe 【注:使用您自己的安装文件目录】。4... 阅读全文
在myeclpse中如何让package分层显示
2019-10-14 21:39 by pere, 164 阅读, 收藏, 编辑
摘要:
问题:如左图,根据名称可以看出dao.impl是dao的子包,如何实现右图的样式呢 解决方法:如下图所示点击进行切换即可(注意在dao下面建impl包的时候名称需要写成dao.impl) 阅读全文
Git下载地址
2019-10-13 21:21 by pere, 675 阅读, 收藏, 编辑
摘要:
官网的地址下载不了可以进入这个地址进行下载http://www.wmzhe.com/soft-38801.html#download 阅读全文
MyBatis框架使用insert往user表插入数据时提示PersistenceException
2019-10-11 09:10 by pere, 999 阅读, 收藏, 编辑
摘要:
错误提示:org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'createBy' in 'clas... 阅读全文
MyBatis框架使用resultMap进行多表查询时出现的NoClassDefFoundError问题
2019-10-10 11:28 by pere, 408 阅读, 收藏, 编辑
摘要:
问题:在UserMapper.xml文件中配置<resultMap type="user" id="userList"> <result property="id" column="id"/> <result property="userCode" column="userCode"/> <resu 阅读全文
在使用MyBatis框架使用传入类对象进行查询是出现查出结果为null的问题
2019-10-10 11:02 by pere, 936 阅读, 收藏, 编辑
摘要:
问题:UserMapperTest类代码如下:@Test public void testGetUserList1() { List<User> userList=null; SqlSession sqlSession = null; User user3=new User(); user3.set 阅读全文
在使用MyBatis框架根据用户名对用户表进行模糊查询时出现NullPointerExption问题
2019-10-09 16:50 by pere, 413 阅读, 收藏, 编辑
摘要:
经检查:UserMapper.xml的配置 UserMapper接口的代码public List getUserListByUserName(String userName);UserMapperTest类的代码@Testpublic void testGetUserList1() { List userList=null; SqlSession sqlSession = null... 阅读全文
MyEclipse中右键Run as没有JUnit Test选项!
2019-10-06 10:40 by pere, 1280 阅读, 收藏, 编辑
摘要:
1、需要运行的代码中没有main函数,但是要进行测试,要执行右键Run as没有JUnit Test!这是要进行单元格测试,这时需要引入引入JUnit的jar包2、给工程添加JUnit jar包工程名右键→Properties→Java Build Path3、Libraries→Add Library选中JUnit,然后Next4、选中版本,然后Finish 阅读全文