如何消除Console的warn:Could not find property [struts.valueStack]

初次使用struts2每次控制台(console)都会输出一些警告(warn)信息:

+++++++++++++++++++++++++++++++

加入log4j.jar包前运行:

2010-11-28 14:47:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2010-11-28 14:47:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [org.apache.catalina.jsp_file]
2010-11-28 14:47:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2010-11-28 14:47:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.valueStack]
-----------调用了ActionSupport.add方法!----------
2010-11-28 14:47:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [org.apache.catalina.jsp_file]
+++++++++++++++++++++++++++++++++++++++++
这样的非常不便于我们看后台打印,于是在网上搜索了一下:Could not find property [struts.valueStack]
有一些解决方案:[url=http://hi.baidu.com/hanxiaoyidi/blog/item/73685c139d54e5d9f6039e67.html]关于struts2.x中(警告: Could not find property [struts.valueStack])的解决方法[/url]但是还是没有找到那个log4j.jar包。
然而今天无意中看一个项目时发现了这个log4j.jar包!

+++++++++++++++++++++++++++++++++++++++

加入log4j.jar包后运行:

-----------调用了ActionSupport.add方法!----------


++++++++++++++++++++++++++++++++++++++++++
那些警告就不见了哦!干净清爽了不多啊!

在下面的附件中可以下载哈!


.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Using VFS adapter com.baomidou.mybatisplus.autoconfigure.SpringBootVFS Checking to see if class com.lxyk.pojo.Account matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.Customer matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.History matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.MainMenu matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.Salary matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.WaterDetails matches criteria [is assignable to Object] Checking to see if class com.lxyk.pojo.Worker matches criteria [is assignable to Object] Scanned package: 'com.lxyk.pojo' for aliases Warn: Could not find @TableId in Class: com.lxyk.pojo.Customer. Parsed mapper file: 'file [E:\Java_Pro\Project\basic-code\Springboot_Pro\target\classes\mapper\CustomerMapper.xml]' Warn: Could not find @TableId in Class: com.lxyk.pojo.History. Parsed mapper file: 'file [E:\Java_Pro\Project\basic-code\Springboot_Pro\target\classes\mapper\HistoryMapper.xml]' Warn: Could not find @TableId in Class: com.lxyk.pojo.Salary. Parsed mapper file: 'file [E:\Java_Pro\Project\basic-code\Springboot_Pro\target\classes\mapper\SalaryMapper.xml]' Warn: Could not find @TableId in Class: com.lxyk.pojo.WaterDetails. Parsed mapper file: 'file [E:\Java_Pro\Project\basic-code\Springboot_Pro\target\classes\mapper\WaterDetailsMapper.xml]' Warn: Could not find @TableId in Class: com.lxyk.pojo.Worker. Parsed mapper file: 'file [E:\Java_Pro\Project\basic-code\Springboot_Pro\target\classes\mapper\WorkerMapper.xml]' Warn: Could not find @TableId in Class: com.lxyk.pojo.Account.
最新发布
05-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值