摘要: java的类型转换让人忍不住在开始编码前骂一声 FUCK! 1 子类转父类 up List<SubClass> subs = ...; List<? extends BaseClass> bases = subs; 2 父类转子类 down //强转public class TestA {} pub 阅读全文
posted @ 2019-11-15 16:42 wolbo 阅读(10428) 评论(1) 推荐(0)
摘要: 1 在系统引导页面 按e 修改启动参数 2 将LANG改为en_US.UTF-8 并空格增加 init=/bin/sh 启动shell 改完后按ctrl+x 启动 3 重新挂载root mount -o remount, rw / 重置用户密码 password root 创建.autorelabe 阅读全文
posted @ 2019-11-11 17:05 wolbo 阅读(482) 评论(0) 推荐(0)
摘要: 1 首先想到的是递归遍历目录 筛选出符合条件的文件 dir命令递归遍历目录 /b控制显示格式 /s递归 /ad 只显示目录 dir /b/s .\* 判断文件类型 操作数得用`` rem 取出文件扩展名 %%~XI rem 判断相等 if `%%~XI` equ `.jar`( echo %%I ) 阅读全文
posted @ 2019-11-03 16:22 wolbo 阅读(541) 评论(0) 推荐(0)
摘要: 1 新建service配置文件 vi /etc/systemd/system/node.service [Unit]Description=My super nodejs app [Service]# set the working directory to have consistent rela 阅读全文
posted @ 2019-11-03 11:28 wolbo 阅读(582) 评论(0) 推荐(0)
摘要: 1 安装svnserve yum install subversion -y 2 创建仓库 mkdir /svn/rep1 -p mkdir /svn/rep2 -p svnadmin create /svn/rep1 svnadmin create /svn/rep2 3 修改仓库配置 rep2配 阅读全文
posted @ 2019-11-02 19:22 wolbo 阅读(210) 评论(0) 推荐(0)
摘要: 1 需要persistence.xml 完全通过属性配置没成功 2 引包 hibernate-core groupid 为hibernate的包已经过时了 要引org.hibernate 3 检查lib中是否有jpa1.x 需要移除掉 不然会报 Exception in thread "main" 阅读全文
posted @ 2019-10-24 21:26 wolbo 阅读(1082) 评论(0) 推荐(0)
摘要: 1 丢弃本地变更 重置为远端分支内容 git reset --hard origin/branchName 如 git reset --hard origin/F_AssetItem 阅读全文
posted @ 2019-10-21 19:41 wolbo 阅读(11787) 评论(0) 推荐(0)
摘要: 如果记住过远程计算机的用户名密码 阅读全文
posted @ 2019-10-21 11:22 wolbo 阅读(869) 评论(0) 推荐(0)
摘要: 1 忽略路径超长 git config --system core.longpaths true 2 比较全的gitignore https://www.gitignore.io/api/vim,node,java,linux,macos,emacs,nanoc,eclipse,windows,ja 阅读全文
posted @ 2019-10-16 14:33 wolbo 阅读(984) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace xxx.Common { static class TypeUtilities { public static List ... 阅读全文
posted @ 2019-10-12 14:10 wolbo 阅读(692) 评论(0) 推荐(0)