`
黑色联想
  • 浏览: 26554 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
这几天一直在调试JS,调试的都快吐了,偶然间发现一个调试工具logger2js,非常棒,特拿出来同各位分享,都不知道为啥这么牛的JS调试工具没有得到推广,唉!   Shift + D在控制台输出当前活动元素的源码 Shift + S显示控制台 $alert() 万能的显示控制台,对象,Json等,无所不能啊   项目地址:http://code.taobao.org/p/kingfishers/wiki/index/ 下载地址:http://code.taobao.org/p/kingfishers/src/trunk/jslogger/rar/logger2js-1.0. ...
解决方案:在 $CATALINA_BASE/conf/context.xml中增加至<Context>代码块中如下代码: <Resources cachingAllowed="true" cacheMaxSize="100000" />    
点击链接使用迅雷即可下载。   ***_database_*.zip   是oracle数据库服务端 软件的安装包 ***_client_*.zip   是oracle数据库客户端 软件的安装包 ***_gateways_*.zip  oracle透明网关 ***_clusterware_*.zip   oracle集群软件
今天同事在C#开发时,按月的时间段进行查询,在一个月的第一天与最后一天的判断有失误 /// 取得某月或某天所在月的第一天 public static DateTime FirstDayOfMonth(DateTime datetime) { return datetime.AddDays(1 - datetime.Day); } /// 取得某月或某天所在月的最后一天 public static DateTime LastDayOfMonth(DateTi ...
合并war包 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <overlays> <overlay> <groupId>com.htht</groupId> <artifac ...
1、MySQL可以安装在Windows与linux平台,配置文件分别为:my.ini/my.cnf,在linux中查看mysql的安装目录命令为: 写道 ps -ef|grep mysql 2、在配置文件中配置MySQL的日志文件很重要,主要有以下几种日志: 它们都要写入到配置文件中[mysqld]下 错误日志:log-error=地址二进制日志:log-bin=地址查询日志:log=地址慢查询日志:log-slow-queries=地址  3、MySQL架构 最上层为Connectors层,主要是不同的语言与SQL的交互 中间层为MySQL的核心层,它提供了SQL的解析器 ...
在介绍JK可配属性之前,先了解一下它的几个属性配置的小知识:JK的属性设置格式如下:worker.<worker name>.<directive>=<value>a,起始位置永远以worker为开头,b,directive为指令名称,或称之为属性名称c,等号后面为所要设置的值当然,如果你愿意也可以在proerties文件中自定义变量,格式如下:
声明URL <s:url action="downloadDocumentItem" id="downloadDocumentItem"> <s:param name="id" value="id"></s:param> </s:url> <s:url action="updatePDocumentItem" id="updatePDocumentItem"> <s:param name=&quo ...

Struts2下载

struts.xml配置中加入   <action name="generateExcelFile" class="generateExcelFileAction">    <result type="stream">     <param name="contentType">application/vnd.ms-excel</param>     <!-- 默认是inline -->     <param name="con ...
一、传统的方法 File file=new File("."); File[] subFile=file.listFiles(); for(File theFile:subFile){ if(theFile.getName().endsWith(".xls")){ theFile.delete(); } }  二、通过FileFilter来实现   File file = new File("."); File[] files = file.listFiles(n ...

Struts2校验

第一种方法:普通配置文件校验 在Action所在包下建立Action-validation.xml或Action-method-validation.xml,前者是对Action中所有的方法进行校验,而后者是对某一个method进行校验,具体格式如下(对用户姓、名、年龄校验) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" ...
在struts.xml中加入以下语句 struts.devMode=true #是否设置为开发模式 struts.i18n.reload=true #国际化自动重新部署 struts.configuration.xml.reload=true #重新加载xml文件      
1、在项目中建立struts.properties 2、在struts.properties中加入 struts.custom.i18n.resources=globalMessage 3、在src中建立globalMessage_zh.properties和globalMessage_en.properties文件 4、在两个不同的文件中加入以下代码 firstname=姓 lastname=名 age=年龄  与   firstname=firstname lastname=lastname age=age  4、在JSP页面中引用使用   <s:te ...
Sonatype Nexus   http://respository.sonatype.org   Jarvana   http://www.jarvana.com/jarvana/   MVNbrowser   http://www.mvnbrowser.com   MVNrepository   http://mvnrepository.com  
Eclipse中安装了SVN插件,当连接到SVN服务器后,便无法从客户端更改连接帐号百度一下,也就知道查看Eclipse中使用的是什么SVN Interface,位置在windows > preference > Team > SVN     如果是JavaHL,那么删除以下文件夹中的文件XP系统为:C:\Documents and Settings\[UserName]\Application Data\Subversion\authWin7系统为:C:\用户\[UserName]\AppData\Roaming\Subversion     如果用的是SVNKi ...
Global site tag (gtag.js) - Google Analytics