摘要:
package com.leyou.common; import java.util.List; public class PageResult<T> { private long total;//总条数 private Integer totalPage;//总页数 private List<T>
阅读全文
posted @ 2020-01-04 21:09
西门夜说
阅读(2011)
推荐(1)
摘要:
分页结果集封装 public class PageResult<T> { private long total;//总条数 private Integer totalPage;//总页数 private List<T> list; public PageResult() { } public Pag
阅读全文
posted @ 2020-01-04 18:16
西门夜说
阅读(8725)
推荐(0)
摘要:
在根目录上创建一个vue.config.js文件 const path = require("path"); const resolve = function(dir) { return path.join(__dirname, dir); }; module.exports = { publicP
阅读全文
posted @ 2019-12-29 04:31
西门夜说
阅读(416)
推荐(0)
摘要:
public class Result<T> { private Integer code; private String msg; private T data; public Result() { super(); } public Result(Integer code, String msg
阅读全文
posted @ 2019-12-29 00:40
西门夜说
阅读(2480)
推荐(1)
摘要:
1.组件之间共享数据的方式 父向子传值:v-bind 属性绑定 子向父传值:v-on 事件绑定 兄弟组件之间共享数据:EventBus $on 接收数据的那个组件 $emit 发送数据的那个组件 2.Vuex 是实现组件全局状态(数据)管理的一种机制,可以方便的实现组件之间数据的共享。 好处: ①能
阅读全文
posted @ 2019-12-19 02:12
西门夜说
阅读(231)
推荐(0)
摘要:
Windows:用户 create temporary tablespace SP_MINES_TMP tempfile 'E:\Oracle\oradata\orcl\SP_MINES_TMP.dbf' size 50m autoextend on next 50 maxsize 2048m ex
阅读全文
posted @ 2019-12-18 16:15
西门夜说
阅读(1106)
推荐(0)
摘要:
1 --创建表空间 2 create tablespace test 3 datafile 'c:\test.dbf' 4 size 100m 5 autoextend on 6 next 10m; 7 --删除表空间 8 drop tablespace test; 9 10 --创建用户 11 c
阅读全文
posted @ 2019-12-15 22:27
西门夜说
阅读(434)
推荐(0)
摘要:
/** * 查询所有用户 * @return */ @Select("select * from user") @Results(id="userMap",value={ @Result(id=true,column = "id",property = "userId"), @Result(colu
阅读全文
posted @ 2019-12-15 21:34
西门夜说
阅读(4762)
推荐(0)
摘要:
mybatis 的常用注解说明 @Insert:实现新增 @Update:实现更新 @Delete:实现删除 @Select:实现查询 @Result:实现结果集封装 @Results:可以与@Result 一起使用,封装多个结果集 @ResultMap:实现引用@Results 定义的封装 @On
阅读全文
posted @ 2019-12-15 18:04
西门夜说
阅读(187)
推荐(0)
摘要:
这里我们以用户 user 表和 角色role 表为例,假定一个用户能被分配成多重角色,而一种角色也能分给多个用户,故用户和角色构成多对多的关系 需求:给定角色id,查询这个角色所属的所有用户信息 ①、在数据库中建立相应的表 user 表 role 表 两者之间的关联表user_role public
阅读全文
posted @ 2019-12-15 17:53
西门夜说
阅读(308)
推荐(0)