SSM框架配置整合

applicationContext.xml配置信息




	
	

	
		
		
			
				classpath:db.properties
			
		
	

	
	
		
		
		
		
	

	
	
		
		
		
		
		
	

	
	
		
	

	

	
	


	
		
	

	
		
			
			
		
	
	
	

		
		
	

db.properties配置信息

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql:///zhcx
jdbc.user=root
jdbc.password=root
log4j.properties配置信息
    log4j.rootLogger=DEBUG,A1
log4j.logger.com.taotao = DEBUG
log4j.logger.org.mybatis = DEBUG

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%5p - %m%n

mybatis-config.xml配置信息





	
		
		
	
	
	
		
	
	
		
			
			
		
	

springmvc-config.xml配置信息


  


	
	

	
	

	
	
	
	
	
	
	

	
	
		
		
	

	
	
		
			
			
			
			
			
			
			
			
			
			
			
		
	

	
	
		
		
		
		
	

	
	
	
	
	
	
		
	

web.xml配置信息



	traffics
	
		index.html
		index.htm
		index.jsp
		default.html
		default.htm
		default.jsp
	
	
		contextConfigLocation
		classpath:applicationContext.xml
	
	
		org.springframework.web.context.ContextLoaderListener
	
	
	
		springmvc
		org.springframework.web.servlet.DispatcherServlet
		
			contextConfigLocation
			classpath:springmvc-config.xml
		
		1
	
	
		springmvc
		/
	
	
		encodingFilter
		org.springframework.web.filter.CharacterEncodingFilter
		
			encoding
			utf-8
		
	
	
		encodingFilter
		/*
	

	

你可能感兴趣的:(SSM框架配置整合)