ssm三大框架基本配置

web.xml


  	
  
  
	
		contextConfigLocation
		classpath:spring/applicationContext-*.xml
	
	
		org.springframework.web.context.ContextLoaderListener
	
	
	
	
		springmvc
		org.springframework.web.servlet.DispatcherServlet
		
			contextConfigLocation
			classpath:spring/springmvc.xml
		
		
		
		
		1
	
	
		springmvc
		
		/
	
  
    
	
		CharacterEncodingFilter
		org.springframework.web.filter.CharacterEncodingFilter
		
			encoding
			UTF-8
		
	
	
		CharacterEncodingFilter
		/*
	
  


springmvc.xml


	
	
	
	
	

	
	
	
		
	
	
		
		
		
		
	
	
	

	
	
	
	
	

applicationContext-dao.xml


	
	
	
	
	
		
		
		
		
	
	
	
	
		
		
		
		
	
	
	
	
		
		
			
		
	

applicationContext-service.xml


		
	
	
	

	

applicationContext-trsaction.xml



	
	
		
		
	

	
	
		
			
			
			
			
			
			
			
			
		
	
	
	
	
		
	


	


sqlMapConfig.xml


	
	
	


db.properties
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/myblog?characterEncoding=utf8
jdbc.username=root
jdbc.password=

log4j.properties

# Global logging configuration
#在开发环境下日志级别设置成DEBUG,生产环境设置成info或error
log4j.rootLogger=DEBUG, stdout
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n


你可能感兴趣的:(ssm框架)