随笔分类 -  MyBatis

摘要:需要修改generatorConfiguration.xml,里面的table加属性:<table tableName="t_ticketcase" domainObjectName="TicketCase"> <columnOverride column="header" javaType="ja 阅读全文
posted @ 2018-07-05 17:12 GᎭ•Cristin 阅读(1700) 评论(3) 推荐(0)
摘要:1. 传入简单类型 JAVA代码: Java代码 public User get(Long id) { return (User) getSqlSession().selectOne("com.liulanghan.get" , id); } MAPPER : Xml代码 <select id="f 阅读全文
posted @ 2018-04-15 11:11 GᎭ•Cristin 阅读(204) 评论(0) 推荐(0)
摘要:MyBatipse:Eclipse 下的 Mybatis插件 MyBatipse:Eclipse 下的 Mybatis插件 MyBatipse是Eclipse的一个插件,提供了内容提示和Mybatis的配置文件验证功能; 特点 XMLEditor 的增强 代码自动完成 Mapper文件的namesp 阅读全文
posted @ 2018-04-15 11:07 GᎭ•Cristin 阅读(561) 评论(0) 推荐(0)
摘要:工具及背景: IntelliJ IDEA 2016.1.3 Ultimate。spring boot, maven项目,利用mybatis 注解的方式查询mysql。 业务逻辑关系:controller --> Service接口 > serverImpl >Dao -->DaoImpl > map 阅读全文
posted @ 2017-11-02 13:33 GᎭ•Cristin 阅读(6758) 评论(0) 推荐(0)
摘要:Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult 一 错误信息: [html] view p 阅读全文
posted @ 2017-11-02 13:26 GᎭ•Cristin 阅读(21848) 评论(1) 推荐(2)
摘要:<!-- generatorConfig.xml配置,其中:<plugin type="org.mybatis.generator.plugins.ToStringPlugin" /> 可以直接将list返回值展示出来,而非地址--> <?xml version="1.0" encoding="UT 阅读全文
posted @ 2017-10-30 20:03 GᎭ•Cristin 阅读(358) 评论(0) 推荐(0)