mybatis-plus 集成oracle

1、mybatis-plus集成oracle的时候一个jar包不能再maven仓库中下载,我这边给出一个连接链接:https://pan.baidu.com/s/1tolviIq4uymiCV-vi96QQQ
提取码:j985
下载完成以后把jar包放入对应的本地maven仓库中。

2、pom文件


    org.springframework.boot
    spring-boot-starter-parent
    2.0.4.RELEASE
    



    UTF-8
    UTF-8
    1.8



    
    
        com.oracle
        ojdbc6
        11.2.0
    

    
    
        org.springframework.boot
        spring-boot-starter-web
    
    
        org.springframework.boot
        spring-boot-starter-test
        test
    
    

    
    
        com.baomidou
        mybatisplus-spring-boot-starter
        1.0.5
    
    
        com.baomidou
        mybatis-plus
        2.3
    
    
        
        
        
    
    
        org.springframework.boot
        spring-boot-starter-jdbc
    
    
    
    
        org.apache.velocity
        velocity
        1.7
    
    
        org.freemarker
        freemarker
        2.3.28
    
    
        org.springframework.boot
        spring-boot-starter-thymeleaf
    
    

    
    
        org.projectlombok
        lombok
        provided
    

    
        com.alibaba
        druid
        1.1.6
    

    
        commons-codec
        commons-codec
    

    
    
        org.projectlombok
        lombok
        provided
    



    
        
            src/main/java
            false
            
                **/*.xml
            
        
        
        
            src/main/resources
        
    

    
        
            org.springframework.boot
            spring-boot-maven-plugin
        
    

3、配置文件

server.port=8080
server.tomcat.uri-encoding=UTF-8

spring.datasource.initialSize=5  
spring.datasource.minIdle=5  
spring.datasource.maxActive=20  
spring.datasource.maxWait=60000  
spring.datasource.timeBetweenEvictionRunsMillis=60000  
spring.datasource.minEvictableIdleTimeMillis=300000  
spring.datasource.validationQuery=SELECT 1 FROM DUAL  
spring.datasource.testWhileIdle=true  
spring.datasource.testOnBorrow=false  
spring.datasource.testOnReturn=false  

spring.datasource.poolPreparedStatements=true  
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20  

spring.datasource.filters=stat,wall,log4j  
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000



spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=xxxxx
spring.datasource.username=xxxx
spring.datasource.password=xxxx
spring.datasource.db-name=xxxx


mybatis-plus.mapper-locations=classpath\:mybatis/*Mapper.xml
mybatis-plus.typeAliasesPackage=com.dream.team.model
mybatis-plus.global-config.id-type=2
mybatis-plus.global-config.field-strategy=2
mybatis-plus.global-config.auto-set-db-type=true
mybatis-plus.global-config.db-column-underline=true
mybatis-plus.global-config.refresh-mapper=true
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
mybatis-plus.configuration.jdbc-type-for-null=null


logging.level.root=info
logging.level.com.caody.muyi=debug
logging.path=logs/

你可能感兴趣的:(mybatis-plus 集成oracle)