# re: 关于Spring中Log文件的位置问题!  回复  更多评论
						  
					
					2006-08-18 16:54 by 
				
 
				在bean配置文件中定义一个PropertyPlaceholderConfigurer的bean,指定locations属性为你的包的相对路径。详细讨论参见spring in action 的自定义属性编辑器的相关内容。
			 
		
			
				
					
						# re: 关于Spring中Log文件的位置问题!  回复  更多评论
						  
					
					2006-08-19 21:14 by 
				
 
				我定义了以下的bean:
<bean id="propertyConfigurer"  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> 
      <property name="locations"> 
	<list> 			<value>com/log/log4j.properties</value> 
	</list> 
     </property> 
</bean> 
但运行时仍然提示没有log配置。不知道怎么设置才好。
网上查了一些关于PropertyPlaceholderConfigurer的资料,都是配置数据库连接的,不知道非web project 的log怎么配置!还望指点!
			 
		
			
				
					
						# re: 关于Spring中Log文件的位置问题!  回复  更多评论
						  
					
					2007-04-18 10:35 by 
				
 
				前面加个classpath就会从classpath里找了