maven ssm 项目傻瓜式搭建

注意配置文件放置路径

pom.xml jar依赖



		UTF-8
		1.8
		3.2.7
		4.11
		1.7.7
		1.1.2
		4.1.0.RELEASE
		2.5.1
		17.0
		2.11.2
		2.4
		4.3.6
		1.8.4
	
	
		
		
			org.springframework
			spring-context
			${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-context-support
			${spring.version}
		
		
		
			com.fasterxml.jackson.core
			jackson-databind
			${jackson.version}
		
		
		
			org.mybatis
			mybatis
			${mybatis.version}
		
		
		
			org.mybatis
			mybatis-spring
			1.2.2
		
		
			mysql
			mysql-connector-java
			5.1.33
		
		
			org.apache.commons
			commons-lang3
			3.3.2
		
		
			commons-beanutils
			commons-beanutils
			1.9.2
			
				
					commons-logging
					commons-logging
				
			
		
		
			commons-io
			commons-io
			${commons-io.version}
		
		
			commons-codec
			commons-codec
			1.9
		
		
			commons-net
			commons-net
			3.3
		
		
			commons-pool
			commons-pool
			20030825.183949
		
		
			commons-dbcp
			commons-dbcp
			20030825.184428
		
		
		    com.alibaba
		    druid
		    1.1.8
		
		
			commons-fileupload
			commons-fileupload
			1.2.2
		
		
			log4j
			log4j
			1.2.14
		
		
			org.aspectj
			aspectjweaver
			${aspectjweaver.version}
		
		
			cglib
			cglib
			3.1
		
		
			javax.servlet
			javax.servlet-api
			3.1.0
			compile
		
		
			javax.servlet.jsp
			jsp-api
			2.2.1-b03
			provided
		
		
			javax.servlet
			jstl
			1.2
		
		
		
			junit
			junit
			${junit.version}
			test
		
		
		
			freemarker
			freemarker
			2.3.8
		
		
			org.apache.maven.plugins
			maven-resources-plugin
			2.4.3
		
		
		
		
		    org.apache.poi
		    poi
		    3.16
		
		
		
		    org.apache.poi
		    poi-ooxml
		    3.16
		
	
	
	
		
			
				
				org.apache.maven.plugins
				maven-compiler-plugin
				2.3.2
				
					${java.verison}
					${java.verison}
				
			
		
	


web.xml

   

  
    contextConfigLocation
    classpath:spring/spring-context.xml
  
  
  
    CharacterEncodingFilter
    org.springframework.web.filter.CharacterEncodingFilter
    
      encoding
      utf-8
    
  
  
    CharacterEncodingFilter
    /*
  
  
  
    org.springframework.web.context.ContextLoaderListener
  
  
  
    dispatcherServlet
    org.springframework.web.servlet.DispatcherServlet
    
      spring mvc 配置文件
      contextConfigLocation
      classpath:spring/spring-mvc.xml
    
    1
  
  
    dispatcherServlet
    *.action
  
  
  
    log4jConfigLocation
    classpath:config/log4j.properties
  
  
    log4jRefreshInterval
    6000
  
  
    org.springframework.web.util.Log4jConfigListener
  

springmvc.xml





	
	
	
	
	
	
	
		
		
	
	
	


spring_context.xml





	
 	
	  
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
	  
	
	
		
	
	
	
	
	    
	        
	        
	        
	        
	        
	        
	    
	
	
	    
	    
	
	
	
		
	


	
		
	


jdbc.properties

jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/city
jdbc.username=root
jdbc.password=root


#upload.file=G://image


validationQuery=SELECT 1

你可能感兴趣的:(maven ssm 项目傻瓜式搭建)