Pgm
eclipse中一键全部展开目录树 在package explorer中使用*能展开全部的目录树 但是会把引用的包也都全部展开,java文件的成员
使用thymeleaf和spring security提供的csrf方法 只需要在html内的form在设置action时使用thymeleaf
windows修改右鍵“發送到”菜單&如何快速打開SendTo文件夾 右鍵“發送到”所在的文件夾 C:\Users\UserName\AppData\Roaming\Microsoft\Windows\SendTo 如何快速打開 使用shell:send
VirtualBox主机虚拟机共享剪贴板设置之后没用的问题 在设置中启用共享剪贴板之后,还要虚拟机本身安装增强功能之后才可以使用。 具体方法为:
Java 将对象序列化为字符串 读取字符串反序列化为对象 import java.io.Serializable; class test { public static String object2String(Object obj) { String objBody = null; ByteArrayOutputStream baops = null; ObjectOutputStream oos = null; try { baops = new ByteArrayOutputStream(); oos = new ObjectOutputStream(baops); oos.writeObject(obj); byte[] bytes = baops.toByteArray(); objBody = Base64.encodeToString(bytes, Base64.DEFAULT); } catch(IOException e) { Log.e(tag,
判断日期是否是工作日(sqlserver),判断一个月中有多少工作日(C#) print (datepart(weekday, '2017-04-24') + 5) % 7 print (datepart(weekday, '2017-04-26') + 5) % 7 print (datepart(weekday, '2017-04-30') + 5) % 7 --周一到周日 0-6 public static int
C#重命名文件夹下的文件 var files = System.IO.Directory.EnumerateFiles(desPath); if(formatStr.Length == 0) { formatStr = "{0}.jpg"; } int count = 1; foreach(String fileName in files) { if (new System.IO.FileInfo(fileName).Length > 1024 * 75) { System.IO.File.Move(fileName, System.IO.Path.Combine(desPath, String.Format(formatStr, count)));//对文件进行重命名 count++; } } 判断系统
sqlserver 修改主键约束 sp_help book if exists (select 1 from sysobjects where name = 'PK__book__AFEBF550AD55A29F') begin print 'pk exists' alter table book drop constraint PK__book__AFEBF550AD55A29F end alter table book add constraint PK__book primary key clustered ( book_name asc, id asc ) reference SQL Server 创建表 添加主键 添加列常用SQL语句
win10中去掉资源管理器的OneDrive项目\隐藏工具栏 打开注册表编辑器,修改HKEY_CLASSES_ROOT\CLSID\{018D
在C#项目中使用sqlite 引入文件 从官网下载了几个dll文件都有问题之后,最终放弃,使用VS自带的NuGet包管理工具,搜索安装即可,没有