seavers
seavers · 共 68 篇文章
maven war:war命令
本文翻译自: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html war:war 全路径: org.apache.maven.plugins:maven-war-plugin:3.1.0:war描述: 构建一个 WAR文件. 特征: * [必须] 一个maven工程用于执行 * [必须] artifacts的依赖范围: compile+runtime * 此目标是线程安全的, 支持并行构建 * 绑定的默认的lifecycle phase: package 必须的参数 Name Type Since Descriptio…
2017-07-11 22:09 · maven · 评论(0)
mac idea 所有全部快捷键列表 按字母排序
通过idea的api导出来的,所以可以保证是最全的快捷键 按字母排序快捷键, 可以清楚的全面记忆快捷键 idea "mac os X 10.5+" 版本的 CMD+A $SelectAll CMD+B GotoDeclaration CMD+C $Copy CMD+D CompareTwoFiles CMD+D Diff.ShowDiff CMD+D EditorDuplicate CMD+D FileChooser.GotoDesktop CMD+D SendEOF CMD+E RecentFiles CMD+E Vcs.ShowMessageHistory CMD+F Find CMD+…
2017-06-08 07:45 · idea · 评论(0)
小清新网站标准
小清新网站标准 纯属YY 采用微博登录 提供iphone,android,html5版本 采用小新清设计原则: 色块背景, 图文混排, 配色明亮, 合适留白 新删改采用ajax请求, 支持滚动式翻页 restful url icon式文字, 文字式按钮 赞, 评论, 分享, 收藏, 加关注
2013-11-26 23:19 · 思考 · 评论(0)
wget 整站下载
下载整站 wget -r -nv --restrict-file-names=nocontrol http://seavers.iteye.com/ 下载时可以加 -np, 不下载父目录 wget -r -nv --restrict-file-names=nocontrol -np http://seavers.iteye.com/blog/ 下载时, 加入断点续传 wget -r -nv -c --restrict-file-names=nocontrol http://seavers.iteye.com/ --restrict-file-names=nocontrol 用来解决中文乱码问…
2013-11-26 10:22 · ubuntu · 评论(0)
ubuntu ipconfig
sudo vi /sbin/ipconfig #! /bin/bash for word in `ifconfig eth0 | grep "inet addr" | sed 's/ inet addr/addr/g'`; do echo $word | sed 's/:/\t/g'; done route -n | awk '/UG/ {printf "gateway %-21s %s\n", $2,$8}' ; grep nameserver /etc/resolv.conf ; sudo chmod +x /sbin/ipconfig ipconfig 待改进 支持eth0 与 wla…
2013-11-06 13:45 · ubuntu · 评论(0)
ubuntu 注册 wins
以下是为了让ubuntu进入windows网络,实现互ping,互连 ubuntu进入windows网络,必须安装samba sudo apt-get install samba 修改/etc/samba/smb.conf, 将wins server修改为正确的ip 可以在windows上, 敲入ipconfig /all得到具体ip 重启服务 sudo service nmbd restart 验证下 nmblookup -R -U <wins_server_ip> <hostname> 这时windows就可访问ubuntu,可以直接ping通 ubuntu互ping, 需要设置sear…
2013-11-06 12:17 · ubuntu · 评论(0)
ubuntu 五笔
ubuntu 使用五笔输入法 ubuntu 13.10 测试通过 sudo apt-get install ibus-table-wubi ibus-daemon -x -r -d 选择五笔输入,生效 使用SHIFT+SPACE切换全半角 使用SHIFT切换中英文输入
2013-11-04 15:36 · ubuntu · 评论(0)
pycompile not found
sudo apt-get remove python 后, 出现了很多错误, 导致后续的无法进行 pycompile not found 解决方案: 删掉 /usr/bin/pycompile, 然后继续apt-get -f install / remove gconf2 not found 错误 sudo dpkg-reconfigure gconf2 sudo apt-get --purge remove gconf2 gconf2安装时 gconf-schemas not found 因安装gconf2时,需执行脚本,脚本中需要python,而python需要gconf2 导致了这个地…
2013-10-17 16:10 · ubuntu · 评论(0)
maven的全局去除依赖
我们在maven中有时候希望将某个依赖包彻底去除 如我们的系统使用的是spring3.1.2, 但是依赖的二方包中, 总是或多或少依赖了spring2.5.6, 希望有个方法, 能全局去除掉 <!-- globally exclusion --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.5.6.SEC03</version> <scope>provided</scope> </dependency> 以上方式, 有个弊端, 就是eclipse中…
2013-09-22 15:01 · maven · 评论(0)
Class.forName 返回 String[].class
A: 如何通过Class.forName 返回 String.class Q: Class.forName(".class.getName() => " <typeHandler javaType="
2013-08-13 11:38 · java · 评论(0)
ibatis typehandler
今天配置typehandler时碰到一个问题 主要解决的问题是 java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 18 to TIMESTAMP 解决方案: 替换掉系统默认的 typehandler, 抛出异常时,改为null <?xml version="1.0" encoding="GBK"?> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://www.ibatis.co…
2013-08-09 18:57 · java · 评论(0)
下列签名无效: NODATA 1 NODATA 2
ubuntu下 apt-get update 时,报错 下列签名无效: NODATA 1 NODATA 2 原因是: 网络连接出错了, 对应的网址连不上去 比如: archive.ubuntu.com, 连接不上, 可换成 cn.archive.ubuntu.com 或者: 网络有代理, 什么的被拦截了
2013-07-15 11:42 · ubuntu · 评论(0)
ubuntu安装maven3
ubuntu 安装 maven3的方法就是 sudo apt-get install maven 一直以来, 以为 install maven安装的是 maven1.x 而 install maven2 安装的是 maven2.x 而看到某些论坛说安装maven3, 要使用 ppa , 后来才知道错了 install maven 安装的就是最新版本的maven 在 12.04, 13.04 测试通过
2013-06-28 13:39 · maven · 评论(0)
git 与 svn 同步
svn 与 git 保持同步 先svn checkout url 把svn上的代码checkout下来 进入工程目录 git init git remote add origin git@github.com:username/project.git git pull git branch --set-upstream master origin/master git reset git status git commit -a -m "update" git push 其中 git reset 不好处理,可以 git reset --hard svn -R revert . 另外: svn…
2013-06-26 15:44 · git · 评论(0)
nginx expires 绝对过期时间
nginx expires 绝对过期时间 参考: http://wiki.nginx.org/HttpHeadersModule expires 24h; expires modified +24h; expires @15h30m; expires 0; expires -1; expires epoch; @time 表示绝对过期时间, 基于一天的某个时间点来过期 @15h30m, 这里的意思是每天15点30分的时候,请求过期 举例, 比如 访问时间为 08:00, 则过期时间为 15:30 访问时间为 21:33, 则过期时间为 第二天的15:30分 原文中的解释: Times wri…
2013-06-22 00:09 · nginx · 评论(1)