SSM整合的各类文件

九、全部的配置文件:

1、pom文件



    4.0.0

    org.example
    ssm
    1.0-SNAPSHOT
    war

    
        UTF-8
        1.8
    

    
        
        
            junit
            junit
            4.12
        
        
        
            org.springframework
            spring-webmvc
            5.2.6.RELEASE
        
        
        
            javax.servlet
            javax.servlet-api
            4.0.0
            provided
        
        
            javax.servlet.jsp
            jsp-api
            2.2
            provided
        

        
        
            commons-fileupload
            commons-fileupload
            1.4
        
        
        
            com.alibaba
            fastjson
            1.2.68
        

        
        
            org.mybatis
            mybatis
            3.5.2
        
        
        
            mysql
            mysql-connector-java
            5.1.47
        

        
        
            org.springframework
            spring-jdbc
            5.1.10.RELEASE
        
        
        
            org.aspectj
            aspectjweaver
            1.9.4
        
        
        
            org.mybatis
            mybatis-spring
            2.0.2
        
        
        
            com.alibaba
            druid
            1.1.18
        

        
            ch.qos.logback
            logback-classic
            1.2.3
        

        
            org.projectlombok
            lombok
            1.18.12
        

        
            com.alibaba
            druid
            1.1.18
        

        
            org.slf4j
            slf4j-api
            1.7.30
        
        
            ch.qos.logback
            logback-classic
            1.2.3
        
    

    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    ${java.version} 
                    ${java.version} 
                    ${project.build.sourceEncoding}
                
            
        
        
            
                src/main/java
                
                    **/*.properties
                    **/*.xml
                
                false
            
            
                src/main/resources
                
                    **/*.properties
                    **/*.xml
                
                false
            
        
    

2、mybatis-config.xml




    
        
        
        
        
        
        
    



3、springmvc-servlet.xml




    
    
    
    
        
            
                
                    
                        text/html;charset=UTF-8
                        application/json;charset=UTF-8
                    
                
            
        
    


    
    
        
        
        
        
        
    

    
    
    
    
    
    
        
        
        
        
    

4、db.properties

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/ssm?useSSL=true&useUnicode=true&characterEncoding=utf8
jdbc.username=root
jdbc.password=root

filters=wall,stat
maxActive=20
initialSize=3
maxWait=5000
minIdle=3
maxIdle=15
timeBetweenEvictionRunsMillis=60000
minEvictableIdleTimeMillis=300000
validationQuery=SELECT 'x'
testWhileIdle=true
testOnBorrow=false
testOnReturn=false
maxOpenPreparedStatements=20
removeAbandoned=true
removeAbandonedTimeout=1800
logAbandoned=true

5、application.xml




    
    
    
    

    

    
    
        
        
    

    
    
        
        
        
        

        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    

    
    
        
        
        
        
    

    
    
        
        
    

    
        
    


    
    
        
            
            
            
            
            
            
            
            
        
    
    
    
        
        
    


6、logback.xml



    
    
    
    
    
    
    
    
    
        
            ${log.pattern}
        
    
    
    
        
        ${log.filePath}/debug.log
        
        
            
            ${log.filePath}/debug/debug.%d{yyyy-MM-dd}.log.gz
            
            
            ${log.maxHistory}
        
        
            ${log.pattern}
        
        
            DEBUG
            ACCEPT
            DENY
        
    
    
    
        
        ${log.filePath}/info.log
        
            
            ${log.filePath}/info/info.%d{yyyy-MM-dd}.log.gz
            
            
            ${log.maxHistory}
        
        
            ${log.pattern}
        
        
            INFO
            ACCEPT
            DENY
        
    

    
    
        
        
    

    
    
        
    

    
    
        ${log.filePath}/sql_log/mybatis-sql.log
        
            ${log.filePath}/sql_log/mybatis-sql.log.%d{yyyy-MM-dd}
            30
        
        
            %thread|%d{yyyy-MM-dd HH:mm:ss.SSS}|%level|%logger{36}|%m%n
        
    

    
        
    


你可能感兴趣的:(SSM整合的各类文件)