![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 513 阅读 · 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 · 1016 阅读 · 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 · 284 阅读 · 0 评论 -
boot 显示sql 语句
原创 2018-11-05 17:39:58 · 132 阅读 · 0 评论 -
MyBatisPlus忽略映射字段注解
MyBatisPlus忽略映射字段注解@TableField(exist=false):表示该属性不为数据库表字段,但又是必须使用的。@TableField(exist= true):表示该属性为数据库表字段。Mybatis-Plus 插件有这个功能,可以看一下@TableName:数据库表相关@TableId:表主键标识@TableField:表字段标识...转载 2019-03-06 10:04:38 · 8891 阅读 · 0 评论