SSH web.xml+applicationContext.xml

web.xml 配置



	OnlineOA
	
		org.springframework.web.context.ContextLoaderListener
	
	
		contextConfigLocation
		classpath:applicationContext.xml
	
	
		解决Hibernate延迟加载的配置
		OpenSessionInView
		org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
	
	
		OpenSessionInView
		/*
	
	
		struts2的配置
		struts2
		org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
	
	
		struts2
		/*
	

 

applicationContext.xml 配置


	
	
		
		
		
		
	
	
	
		
			
		
		
			
				
					org.hibernate.dialect.Oracle10gDialect
				
				
					true
				
			
		
		
			
				cn/entity/Answers.hbm.xml
				cn/entity/Duestions.hbm.xml
			
		
	
	
	
		
			
		
	
	
	
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
		
	
	
	
		
		
	
	
	
		
	
	
		
	
	
	
		
		
	
	
	
		
	

 

 

你可能感兴趣的:(item10,问答,运维,java,数据库)