摘要:
原因:jar包里面META-INF/MANIFEST.MF文件缺了“Main-Class”的键值对 解决办法: <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <art 阅读全文
摘要:
File菜单下的“Power Save Mode” 的勾勾去掉就可以了。 阅读全文
摘要:
效果如下: 稍微组合一下: 关键资源样式如下: <Window.Resources> <Style x:Key="LabelStyle1" TargetType="{x:Type Label}"> <Setter Property="Foreground" Value="{DynamicResour 阅读全文
摘要:
最终效果: 后台代码: private void Canvas_MouseMove(object sender, MouseEventArgs e) { Canvas.SetLeft(el, e.GetPosition((UIElement)sender).X - 135/2); Canvas.Se 阅读全文
摘要:
select COLUMN_NAME,COLUMN_COMMENT from information_schema.columns where table_schema = 'mydb' #表所在数据库 and table_name = 'mytb' ; #你要查的表 select COLUMN_N 阅读全文
摘要:
int[][] arr = new int[][]{{3},{6},{5},{4},{1},{2}}; Arrays.sort(arr, (a, b) -> a[0] - b[0]); // 自定义Comparator由小到打排序 for (int i = 0; i < 6; i++) System 阅读全文
摘要:
代码: PriorityQueue<Integer> pq = new PriorityQueue<>((x, y) -> y - x); for (int i = 1; i <= 5; i++) { pq.add(i); System.out.println( pq.toString()); } 阅读全文
摘要:
第一步:打开注册表 快捷键:win + R 输入并回车:regedit 第二步:打开右键主目录 位置:\HKEY_CLASSES_ROOT\Directory\Background\shell shell下新建的项是右键名称,可以修改默认值(代替项的名称) 同目录下可设置Icon图标 效果 阅读全文
摘要:
今天突然在逛网站的时候想要找该网站里面是否有匹配的一些信息,但是挨个挨个页面找比较麻烦,就弄个这个方法来进行查找。 下面方法是找一个页面里面的信息的方法,如此类推找到自己需要的信息。 /** * 查找网站里面匹配的信息 * @param addr 查找的网站 * @param regex 匹配规则 阅读全文
摘要:
有时候使用wps的表格时,工作表一多,就会出现查看工作表后,返回查看找半天的问题。 通过自带的宏,实现快速返回的功能 步骤如下: 第一步打开开发工具 开发工具 >> 查看代码 第二步:选择Module1,粘贴代码到编辑框 代码如下: var NewSh; var OldSh; function Go 阅读全文