Super关键字的三种用法 在子类的成员方法中,访问父类的成员变量。 public class Fu { int num = 10; } public class Zi extends Fu { int num = 20; public void methodZi() { System.out.pr ...
分类:
其他好文 时间:
2021-05-24 05:28:29
阅读次数:
0
一个登录窗体,FormBorderStyle属性设置为None,打开后不能挪动位置,有时候会妨碍使用,有点恶心。网上找了段内容,实现拖动效果: #region 无边框拖动效果,Form被PictureBox覆盖,Form事件不会被触发 [System.Runtime.InteropServices. ...
Markdown学习 二级标题 三级标题 四级标题 字体 粗体 斜体 斜体加粗 删除标记 引用 选择狂神说Java,走向人生巅峰 分割线 图片 超链接 点击跳转 列表 A B C A B C 表格 名字 性别 生日 张三 男 1997.1.1 代码 hello System.out.println( ...
分类:
其他好文 时间:
2021-05-24 04:35:51
阅读次数:
0
在FreeSql源码中Expression表达式拼接默认最多支持到5个泛型参数,当我们使用表关联比较多的时候,就需要进行扩展。 新建一个类,将命名空间改为System.Linq.Expressions,并加入参数扩展 namespace System.Linq.Expressions { stati ...
分类:
数据库 时间:
2021-05-24 03:28:09
阅读次数:
0
lambda表达式 new Thread(()->System.out.println("多线程学习")).start(); lambda表达式只能有一行代码的情况下才可以简化成一行,如果有多行,就需要用代码块 必须是函数式接口接口(函数式接口就是只包含唯一一个抽象方法) 多个参数可以去掉参数类型, ...
分类:
其他好文 时间:
2021-05-24 03:25:08
阅读次数:
0
docker 目录移动到其他磁盘的操作 1.systemctl stop docker #停止docker2.mkdir /storage/docker-lib #在我这个项目里storage是普通硬盘,在storage下创建一个目录3.mv /var/lib/docker /storage/doc ...
分类:
移动开发 时间:
2021-05-24 02:54:47
阅读次数:
0
// 全局路由导航拦截 router.beforeEach((to, from, next) ? { // ... if (to.path '/login') { // 如果是登录页面路径,就直接next() next() } else { // 其他页面路径 let token = session ...
分类:
其他好文 时间:
2021-05-24 02:26:50
阅读次数:
0
using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Configuration;using System.Data.Common;using ...
分类:
数据库 时间:
2021-05-24 02:07:55
阅读次数:
0
有时候我们想要在spring启动后就做一些初始化配置,或者启动一个常住线程,这个时候需要定义一个类,且实现ApplicationRunner接口 @Component public class ZKMasterClient implements ApplicationRunner{ private ...
分类:
编程语言 时间:
2021-05-24 02:02:16
阅读次数:
0
整理压缩代码 using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using Syste ...