war部署在jboss6 ,Log4j若不起作用,需要做如下配置
在war的web-inf添加文件jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.apache.log4j" />
<module name="org.slf4j" />
<module name="org.apache.commons.logging" />
</exclusions>
</deployment>
</jboss-deployment-structure>
參考來源
沒有留言:
張貼留言