Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何禁用Springbean加载日志_Spring - Fatal编程技术网

如何禁用Springbean加载日志

如何禁用Springbean加载日志,spring,Spring,如何禁用spring日志。当通过xml加载bean时,它会显示spring日志。 有没有办法像这样禁用spring日志。 我使用Jboss时是否有特定于服务器的设置 [STDOUT]13:13:55765信息[XmlBeanDefinitionReader]从URL加载xmlbean定义[file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp27157businesscalible-exp.war/WEB-INF/businesscalible se

如何禁用spring日志。当通过xml加载bean时,它会显示spring日志。 有没有办法像这样禁用spring日志。 我使用Jboss时是否有特定于服务器的设置

[STDOUT]13:13:55765信息[XmlBeanDefinitionReader]从URL加载xmlbean定义[file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp27157businesscalible-exp.war/WEB-INF/businesscalible servlet.XML] [STDOUT]13:13:55781信息[FileSystemXmlApplicationContext]应用程序上下文的Bean工厂[org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=15981314]:org.springframework.beans.factory.support.DefaultListableBeanFactory定义Bean[数据源,dao,contactUsDao,userDao,advertisementDao,businessDao,miscellaneousDao,contactusController,Logiuser,userController,homeController,advertisementController,businessController,miscellaneousController,adminController,exceptionController,fileUploadController,captchaEngine,captchaService,imageEngine,CaptchaFactory,wordgen,filedict,wordtoimage、fontGenRandom、fontArial、backGenUni、simpleWhitePaster、colorGreen、captchaController、urlMapping、查询、multipartResolver、org.springframework.web.servlet.handler.SimpleMappingExceptionResolver];BeanFactory层次结构的根
[STDOUT]13:13:55781信息[FileSystemXmlApplicationContext]34在应用程序上下文[org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=15981314]中定义的bean

如果您使用的是log4j,您可以在文件log4j.properties中关闭Spring日志记录(您可以在WEB-INF文件夹中找到它)。只需使用
org.springframework
子字符串注释掉所有行。

根据您的注释,现在我在/WEB-INF中使用了log4j.xml,并使用了默认的混淆配置。谢谢,Yuri,谢谢