ssm框架的简单整合!!!(配置环境)

 项目结构:

ssm框架的简单整合!!!(配置环境)_第1张图片

 pom.xml:

war

    
        8
        8
        UTF-8
        5.1.8.RELEASE
        1.6.6
        1.2.12
        5.1.47
        3.4.5
        1.1.0
    

        
            org.springframework
            spring-context
            ${spring.version}
        
        
            org.springframework
            spring-aspects
            ${spring.version}
        
        
            org.springframework
            spring-tx
            ${spring.version}
        
        
            org.springframework
            spring-jdbc
            ${spring.version}
        
        
            org.springframework
            spring-web
            ${spring.version}
        
        
            org.springframework
            spring-webmvc
            ${spring.version}
        
        
        
            org.mybatis
            mybatis
            ${mybatis.version}
        
        
            org.mybatis
            mybatis-spring
            1.3.0
        
        
            mysql
            mysql-connector-java
            ${mysql.version}
        
        
            com.alibaba
            druid
            1.1.0
        
        
        
            javax.servlet
            servlet-api
            2.5
            provided
        

        
            javax.servlet.jsp
            jsp-api
            2.0
            provided
        

        
            jstl
            jstl
            1.2
        

        
        
            org.slf4j
            slf4j-log4j12
            ${slf4j.version}
        
        
        
            commons-fileupload
            commons-fileupload
            1.3.1
        
        
        
            com.auth0
            java-jwt
            3.8.2
        
    
    
        
            
            
                org.apache.tomcat.maven
                tomcat7-maven-plugin
                2.2
                
                    
                    8080
                    
                    /
                    
                    UTF-8
                
            
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.2
                
                    1.8
                    1.8
                    UTF-8
                
            
        
        
            
                src/main/java
                
                    **/*.xml
                
            
            
                src/main/resources
            
        
    

applicationContext-dao.xml:



    
    
    
    
        
        
        
        
    
    
    
        
    
    
    
        
    

applicationContext-service.xml



    
    

applicationContext-tx.xml:




    
    
        
    

    
    
    
    
        
            
            
            
        
    
    
    
        
        
        
        
    
  

db.properties:

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3305/ssm?characterEncoding=UTF-8
jdbc.username=root
jdbc.password=

log4j.properties:

# Global logging configuration
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

springmvc.xml:



    
    

    
    
        
        
    

    
    

    
    
        
        
            
                
                
            
        
    

    
    
        
        
    

    
    

web.xml:




    
    
    
        contextConfigLocation
        classpath:applicationContext-*
    
    
        org.springframework.web.context.ContextLoaderListener
    

    
    
        springmvc
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            classpath:springmvc.xml
        
        1
    
    
        springmvc
        /
    
    
    
        CharacterEncodingFilter
        
            org.springframework.web.filter.CharacterEncodingFilter
        
        
        
            encoding
            UTF-8
        
    

    
    
        CharacterEncodingFilter
        /*
    

你可能感兴趣的:(mvc,spring,java,intellij-idea)