Author: kagula
Last Update Date: 2016-9-7
环境:
[1]Eclipse Mars.2
[2]JDK 1.7
[3]slf4j-log4j12 1.7.2
[4]junit 4.11
Introduction
这里记下免得每次为web app配log4j又得摸索一遍。
第一步:pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nuoke</groupId>
<artifactId>icbc_gbk</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>icbc_gbk Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>GBK</project.build.sourceEncoding>
<project.reporting.outputEncoding>GBK</project.reporting.outputEncoding>
<spring.version>3.1.2.RELEASE</spring.version>
<cxf.version>3.0.9</cxf.version>
<junit.version>4.11</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<depende