`
文章列表
开发环境maven3.x,线上打包环境maven2.x,上线打包时出错,信息如:   maven 版本问题之类的信息 xxx.java:[14,16] -source 1.3 中不支持泛型(请使用 -source 5 或更高版本以启用泛型)  解决方式,修改pom.xml,新增如下内容:   <build> <resources> <resource> <directory>src/main/resources</directory> </resource> &l ...
常用手册 php手册 | python手册 | perl手册 | c#.net手册 | c++手册 | ruby手册 | jquery手册 | js手册 | prototype手册 | mysql手册 | smarty手册 | css手册 | html手册 | nginx手册 | apache手册 | shell手册 | svn手册
 maven编译时遇到问题: [FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-resources-plugin:2.3] urls[0] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar urls[1] = file:/C:/Docum ...
一直在用Google Chrome浏览器,不过安装过chrome的朋友都知道,从Google官方下载安装chrome,会先下载一个小的安装管理程序,安装时再从google下载所需的安装文件,速度很慢,很不爽。 现在终于在网上找到了在官方下载Google Chrome浏览器的方法。其实,下载chrome离线安装包的方法很简单的。 只需要在原来的下载网址上加上 standalone=1 参数,你下载下来的就是离线安装包,而不是几百K的安装管理程序。 如,原来的下载地址为 :    http://www.google.com/chrome/eula.html 更改后变为  :   http ...
解析类似 %u641c%u72d0 的编码。因为Java中的 char 类型采用的就是Unicode编码, 因此将其中的16进制数先读取成int型,再转成char类型就可以了。  import java.util.ArrayList; public class UnicodeDecoder {     public static String decode(String codes) {         ArrayList<String> code_list = new ArrayList<String>();         StringBuffer p ...
Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下: #配置根Loggerlog4j.rootLogger  =   [ level ]   ,  appenderName1 ,  appenderName2 ,  …#配置日志信息输出目的地Appenderlog4j.appender.appenderName  =
1。使用java.util.Properties类的load()方法 示例: InputStream in = lnew BufferedInputStream(new FileInputStream(name)); Properties p = new Properties(); p.load(in); 2。使用java.util.ResourceBundle类的getBundle()方法 示例: ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault()); 3。使用java.util.P ...

进度条

<html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Progressbar - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" /> ...
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /** * 日期格式解析 * User: yfzhangbin * Date: 13-1-9 * Time: 下午6:06 */ public class DateParse { public static void main(String[] args) throws ParseException { String d = "Wed Jan 02 ...
select top 10 wid, stuff( (select ','+convert(varchar(25), rwid) from CombineBuying as t2 where t2.wid = t1.wid FOR XML PATH('')), 1, 1, '' ) as rwids from CombineBuying as t1 where t1.wid = '1003376649' group by wid  结果: wid rwid 1003376649 214474,187698,188549,259662,187701,209419,3017 ...
import java.util.ArrayList; import java.util.List; /** * 通过wait和notify实现的生产者消费者demo * User: zhangb * Date: 12-12-1 * Time: 下午7:19 */ public class ProducerAndCustomerDemo { private static int capacity = 150; private static List<String> basket = new ArrayList<String> ...
grep " ERROR" -A 50 Recommend.log.los | more  # 查询所有ERROR日志并分页显示,-A 50 显示ERROR后50行,便于查看详细堆栈信息 grep " ERROR" -A 50 Recommend.log.los > error.log # 导出错误日志   cp filename{,.bak} # 备份文件
先看4个题目: ①int i = 0;     i = i++;   ②int i = 0;     i = ++i;   ③int i = 0;     int j = 0;     j = i++ + i++;   ④ int i = 0;      int j = 0;      j = i++ + i++ + i++; 每道题里的i和j都是多少? 用myeclipse测试,结果分别是①i = 0,②i = 1,③i = 2,j = 1,④i = 3,j = 3。 i++和++i的问题,困扰很多 ...
在当前目录查找指定后缀文件 find ./ -name *.properties   在文件列表中查找,包含指定内容的文件 find ./ -name *.properties | xargs grep product
在tomcat文件夹的conf\catalina\localhost (对于Tomcat6版本及其以上,需要自己创建catalina和localhost这两个文件夹) 增加project .xml文件(该文件名的project要和下面的“path=“/xxx"”的xxx相同) 文件内容: <Context path="/project" reloadable="true" docBase="E:\javastudio\oob" workDir="E:\javastudio\oob\wo ...
Global site tag (gtag.js) - Google Analytics