前言 本篇文章主要介绍的是SpringBoot整合mybatis plus,实现增删改查。 GitHub源码链接位于文章底部。 建库建表 创建springboot数据库,创建t_user表,字段id主键自增,name,age。 工程结构 添加依赖 新建一个maven项目,在pom文件中添加以下依赖 ...
分类:
编程语言 时间:
2020-03-18 18:55:12
阅读次数:
74
@TableName:数据库表相关 @TableId:表主键标识 @TableField:表字段标识 @TableLogic:表字段逻辑处理注解(逻辑删除) @TableId(type= IdType.ID_WORKER_STR) @TableField(exist = false):表示该属性不为 ...
分类:
其他好文 时间:
2020-03-18 18:28:30
阅读次数:
73
由于Mybatis plus默认的更新策略是NOT_NULL:非 NULL;即通过接口更新数据时数据为NULL值时将不更新进数据库。 所以Mybatis plus通过updateById(XX)更新数据,当用户有更新字段为空字符串 或者 null 的需求时,需要对 FieldStrategy 策略进 ...
分类:
编程语言 时间:
2020-03-16 23:57:24
阅读次数:
172
在pom.xml中引入mybatis plus的jar包 在resources/application.yml配置文件中配置数据库 创建BaseEntity实体类 创建User实体类 创建UserMapper 创建UserService 创建UserServiceImpl 创建UserControl ...
分类:
编程语言 时间:
2020-03-16 23:23:43
阅读次数:
188
大家好,我是一名在青岛某211高校上大学的学生,专业是化工专业。在大二时接触到Aspen Plus这个软件,这软件最主要的作用就是流程模拟。专业话来说就是Aspen Plus是一个生产装置设计、稳态模拟和优化的大型通用流程模拟系统。安装包截图如图: 安装打开后界面: 安装过程由于太长,大家耐心一点 ...
分类:
Web程序 时间:
2020-03-16 18:52:49
阅读次数:
243
在所有需要返回的界面添加如下代码即可 $(function(){ document.addEventListener('plusready',function(){ var webview = plus.webview.currentWebview(); plus.key.addEventListe ...
分类:
移动开发 时间:
2020-03-16 15:04:25
阅读次数:
359
Given a non-negative integer represented as non-empty a singly linked list of digits, plus one to the integer. You may assume the integer do not conta ...
分类:
其他好文 时间:
2020-03-15 13:27:25
阅读次数:
48
常规的解决方案见:https://www.cnblogs.com/shaoyu/p/11477125.html 问题:当xml文件在src/main/java目录下时,在application.yml中配置Mapper文件路径无效,当xml文件在resource下时路径有效,原因不明。 我通过上面连 ...
分类:
其他好文 时间:
2020-03-15 13:26:13
阅读次数:
51
问题:使用CONN / AS SYSDBA(注意空格)命令登录win10系统的Oracle11g数据库,失败,显示没有权限。 C:\Users\25836>SQLPLUS/NOLOG SQL*Plus: Release 11.2.0.1.0 Production on 星期三 3月 7 18:18: ...
分类:
数据库 时间:
2020-03-13 11:28:33
阅读次数:
114
dedecms设置伪静态 1 rewrite "^/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last; 2 rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1 ...
分类:
其他好文 时间:
2020-03-13 10:18:51
阅读次数:
54