- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 vue跨域的简单实现
学习目标:解决简单的vue跨域问题学习内容:1.在config下的index.js中的proxyTable中配置如下代码'/demo': {//需要跳转的路径开头,例如/demo/user/list、/demo/role/list会被跳转,但是/user/list、/dem/user/list都不会进入 target: 'http://109.22.67.193:8089', // 后台路径 pathRewrite: { // 路径重写, '
2021-03-22 10:09:47 161 2
原创 数组复制Arrays.copyOf与System.arraycopy的用法
方法简介:Arrays.copyOf与System.arraycopy能够快速的复制数组,速度是for循环复制效率的两倍左右,原因就是其是native方法。Arrays.copyOf:需要传递两个参数: * @param original the array to be copied 需要复制的数组 * @param newLength the length of the copy to be returned 需要复制数组的长度方法使用代码:int[] initArr = {1,2,3,
2021-03-01 11:18:08 348 2
原创 ArrayList去除重复数据
问题描述:ArrayList是我们经常使用的功能,最容易想到的就是双层for循环去重,这里列举出其他的两种方式,如下:方法一:使用list的contains方法实现,代码如下:List<String> list = new ArrayList<String>(); list.add("序号【99990aa1】不符合规范"); list.add("序号【99990aa1】不符合错误"); list.add("序号【99990a
2021-02-24 14:49:11 2279 2
原创 mybatis动态order by 排序问题
问题sql查询需要根据条件动态修改排序字段以及升降序;刚开始尝试在sql中直接使用choose when进行判断:<choose> <when test="flag== '5'"> order by A_DATE desc </when> <otherwise> order by B_DATE asc </otherwise>
2021-02-23 11:15:50 2133 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人