log4j2.7整合到web3.0 (spring4.3.3)
来源:互联网 发布:阿里云的作用 编辑:程序博客网 时间:2024/06/06 05:32
今天再整合框架 spring4.3.3 + springMVC4.3.3+myBatis3.4.0 + log4j2.7 时,遇到了整合log4j2.7报错的问题,在web.xml中配置了 org.apache.logging.log4j.web.Log4jServletContextListener log4jServletFilter org.apache.logging.log4j.web.Log4jServletFilter log4jServletFilter /* REQUEST FORWARD INCLUDE ERROR ASYNC 发现报错 NoClassDeffoundError,最后在官网中发现:Log4j 2 "just works" in Servlet 3.0 and newer web applications. It is capable of automatically starting when the application deploys and shutting down when the application undeploys. Thanks to the ServletContainerInitializer API added to Servlet 3.0, the relevant Filter and ServletContextListener classes can be registered dynamically on web application startup. 在web3.0中log4j2.7是自动启停的,不需要在web.xml中配置只需要将log4j2.xml放在src目录下即可
0 0
- log4j2.7整合到web3.0 (spring4.3.3)
- web3.0
- web3.0
- web3.0
- Spring4-7 Spring整合Hibernate
- spring4.1.6整合hibernate4.0
- Spring4整合MyBatis3 (1)
- Spring4整合MyBatis3(2)
- Spring4整合MyBatis3(3)
- Spring4整合MyBatis3(4)
- Spring4整合MyBatis3(5)
- spring boot整合log4j2输出日志到mongodb
- 福布斯:Web3.0尚未到来 仍需5到7年
- Spring4--Spring4整合mybatis3
- log4j+slf4j迁移到log4j2+slf4j (Servlet3.0)
- Spring4与log4j2的集成
- Spring4与log4j2的集成
- spring4 + log4j2+ slf4j的配置
- Android6.0运行时权限处理-超简单封装
- sublimeText 解决中文乱码插件
- STL学习2——序列容器
- [poj 2104 K-th Number] 主席树 区间第K大
- ffmpeg 2.3版本, 关于ffplay音视频同步的分析
- log4j2.7整合到web3.0 (spring4.3.3)
- qt环境搭建
- HTML中表格和表单的基础写法
- python 数字的四舍五入的问题
- Android一个好用的更新库
- 使用雨过天晴还原软件实现系统还原
- AsyncTask介绍
- IE8不支持H5和CSS3
- 顺序队列