SSM框架+Maven+Hibernate(校验)+Mysql整合

知识总是会遗忘,写下来,加深记忆.

项目:

SSM框架+Maven+Hibernate(校验)+Mysql整合_第1张图片


pom.xml


	4.0.0
	com.xiaoye
	ArtMooc
	0.0.1-SNAPSHOT
	war
	http://maven.apache.org
	
		
		4.3.16.RELEASE
		
		3.2.6
		
		1.7.7
		1.2.17
		2.5.0
	
	
		
			junit
			junit
			4.11
			
			test
		
		
		
			org.springframework
			spring-core
			${spring.version}
		

		
			org.springframework
			spring-web
			${spring.version}
		
		
			org.springframework
			spring-oxm
			${spring.version}
		
		
			org.springframework
			spring-tx
			${spring.version}
		

		
			org.springframework
			spring-jdbc
			${spring.version}
		

		
			org.springframework
			spring-webmvc
			${spring.version}
		
		
			org.springframework
			spring-aop
			${spring.version}
		

		
			org.springframework
			spring-context-support
			${spring.version}
		

		
			org.springframework
			spring-test
			${spring.version}
		
		
		
			org.mybatis
			mybatis
			${mybatis.version}
		
		
		
			org.mybatis
			mybatis-spring
			1.2.2
		
		
		
			javax
			javaee-api
			7.0
		
		
		
			mysql
			mysql-connector-java
			5.1.30
		
		
		
			commons-dbcp
			commons-dbcp
			1.2.2
		
		
		
			jstl
			jstl
			1.2
		
		
		
		
			log4j
			log4j
			${log4j.version}
		


		
		
			com.alibaba
			fastjson
			1.1.41
		


		
			org.slf4j
			slf4j-api
			${slf4j.version}
		

		
			org.slf4j
			slf4j-log4j12
			${slf4j.version}
		
		
		
		
			org.codehaus.jackson
			jackson-mapper-asl
			1.9.13
		
		
		
			commons-fileupload
			commons-fileupload
			1.3.1
		
		
			commons-io
			commons-io
			2.4
		
		
			commons-codec
			commons-codec
			1.9
		
		
		
			org.quartz-scheduler
			quartz
			2.3.0
		
		
		
		
		
		
		
		
			com.fasterxml.jackson.core
			jackson-databind
			${jackson.version}
		
		
			com.fasterxml.jackson.core
			jackson-core
			${jackson.version}
		
		
		
		
		
			com.google.appengine
			appengine-api-1.0-sdk
			1.9.13
			provided
		
		
		

		    
            mysql    
            mysql-connector-java    
            5.1.30    
         
             
            commons-dbcp    
            commons-dbcp    
            1.2.2    
           
        
		
		    org.hibernate
		    hibernate-validator
		    5.4.2.Final
		
        
		
		    javax.validation
		    validation-api
		    2.0.1.Final
		
	
	
		src
		
			
				src
				
					**/*.java
				
			
			
				config
				
					**/*.java
				
			
		
		
			
				maven-compiler-plugin
				3.3
				
					1.6
					1.6
				
			
			
				maven-war-plugin
				2.6
				
					WebRoot
					false
				
			
		
		
			
			src/com/xiaoye/app
			
				
					src/config
				
			
		
	

applicationContext-mvc.xml



	
	
	
	
	
	 
		
		 
		 
	 
	 
		
             
                  classpath:validation/user
             
          
		
		   
	
	
	
		
			
				
				
				
					
						text/plain;charset=UTF-8
						text/html;charset=UTF-8
						
					
				
			
			
				
					
						text/json;charset=UTF-8
					
				

			
		
	
	
	
		   
           
		
		
		   
            
	

applicationContext.xml



	

	
	
	
	   
  
	
		
		
		
		
		   
          
          
          
          
          
          
          
          
         
	
	
		
		
	

	    
	
		
		
	
	
      
          
     

	


sqlMapConfig.xml




		
		
				
		
		
		
		
				
		

jdbc.properties

db.driverClassName=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/art_mooc?useUnicode=true&characterEncoding=utf8
db.username=root
db.password=root
db.maxPoolSize=150
#\u5B9A\u4E49\u521D\u59CB\u8FDE\u63A5\u6570  
db.initialSize=0  
#\u5B9A\u4E49\u6700\u5927\u8FDE\u63A5\u6570    
db.maxActive=20  
#\u5B9A\u4E49\u6700\u5927\u7A7A\u95F2    
db.maxIdle=20  
#\u5B9A\u4E49\u6700\u5C0F\u7A7A\u95F2  
db.minIdle=1  
#\u5B9A\u4E49\u6700\u957F\u7B49\u5F85\u65F6\u95F4  
db.maxWait=60000  

下载地址:点击打开链接

你可能感兴趣的:(Java,JavaEE,Mybatis,Spring,MySql,Maven)