mybatis
好命靠努力
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mybatis xml 方法书写
1.定义公共sql:<sql id="Base_Column_List" > product_id, title, image, title_desc, price, create_time, update_time, category_id, seller_id, status, brand_id, image_banner, banner_width, banne...原创 2018-05-04 17:52:05 · 597 阅读 · 0 评论 -
spring boot扫描mapper文件
一个简单的功能,百度查的都是XX,谷歌万岁.因为扫描不到自动生成的mapper就无法注入到service方案一.@Mapper如果Mapper文件所在的包和你的配置mapper的项目的pom定义的groupid相同的话.因为我的mapper是一个模块,portal一个模块.mapper在com.haitian.mapper下portal的groupid是com.hai...转载 2018-10-16 09:52:23 · 1097 阅读 · 0 评论 -
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could
创建一个spring boot demo,启动main方法出现如下错误Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a ...转载 2018-10-25 09:10:08 · 352 阅读 · 0 评论 -
boot 显示sql 语句
原创 2018-11-05 17:39:58 · 176 阅读 · 0 评论 -
MyBatisPlus忽略映射字段注解
MyBatisPlus忽略映射字段注解@TableField(exist=false):表示该属性不为数据库表字段,但又是必须使用的。@TableField(exist= true):表示该属性为数据库表字段。Mybatis-Plus 插件有这个功能,可以看一下@TableName:数据库表相关@TableId:表主键标识@TableField:表字段标识...转载 2019-03-06 10:04:38 · 9169 阅读 · 0 评论
分享