环境准备:
1.在karaf_home下新建 config及logs文件夹
2.将mylog4j.properties复制到config目录下
查看log4j-1.2.17.jar/MANIFEST.MF
Manifest-Version: 1.0
Export-Package: org.apache.log4j.net;uses:="org.apa...
分类:
其他好文 时间:
2014-08-09 00:20:16
阅读次数:
575
一、只读取单个 properties 文件1、在 spring 的配置文件中,加入引入命名空间:xmlns:util="http://www.springframework.org/schema/util"xsi:schemaLocation="http://www.springframework....
分类:
编程语言 时间:
2014-08-08 20:51:06
阅读次数:
259
lo4j 是特别常用的记录日志,调试代码的工具代码。我对它的了解并不深,仅限于使用。下边我就说说怎么个使用法吧。第一步:添加jar包,这两个必不可少第二步:创建log4j.properties文件并配置自己需要的信息如:log4j.rootLogger=debug, stdoutlog4j.appe...
分类:
其他好文 时间:
2014-08-08 17:23:06
阅读次数:
173
在Android中使用开源代码或者自己开发项目的时候,经常会遇到R.java文件丢失的情况,如何重新生成呢?网上一般给出这样的两种方法:方法 1:右击你的工程(项目)——>Android Tools——>Fix Project Properties 即可。方法 2:右击你的工程(项目)——>Prop...
分类:
移动开发 时间:
2014-08-08 17:18:56
阅读次数:
190
一,新建模型时要注意选择DBMS类型 二,给表字段加注释,点击图标,勾选comment 三,指定建表时使用的编码和数据库引擎 工具栏-》database-》edit current DBMS 然后,选中:MYSQL50::Script\Objects\Table\Optio...
分类:
其他好文 时间:
2014-08-08 16:40:09
阅读次数:
354
Edit the following file manually and change the path to the icons folder (it appears 2 times in the file)File to edit:\wamp\bin\apache\apache2.2.6\con...
分类:
其他好文 时间:
2014-08-08 16:00:36
阅读次数:
192
Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下:#配置根Loggerlog4j.rootLogge...
分类:
其他好文 时间:
2014-08-08 15:50:46
阅读次数:
223
VS2008 如何将Release版本设置可以调试的DEBUG版本只需设置三个部分:项目->属性->C/C++->General->Debug Information Format->Program Database for Edit & Continue (/ZI) 项目->属性->C/C++->...
分类:
其他好文 时间:
2014-08-08 15:37:06
阅读次数:
258
VS中的Properties下的AssemblyInfo.cs可以设置相应的版本号。下面是AssemblyInfo.cs设置版本的方式。
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]但是,这个需要每次都设定,而且与SVN上的版本号并不一致,追塑起来不是很方便。所以就想着取SVN上...
分类:
其他好文 时间:
2014-08-08 08:29:15
阅读次数:
486
log4j.properties:
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.la...
分类:
其他好文 时间:
2014-08-08 02:06:35
阅读次数:
236