spring: datasource: #数据库 type: com.alibaba.druid.pool.DruidDataSource username: root password: '1qaz!QAZ' # url: jdbc:mysql://221.229.107.118:30519/multidimensional_box?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT url: jdbc:mysql://127.0.0.1:30519/multidimensional_box?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT driver-class-name: com.mysql.cj.jdbc.Driver initialSize: 5 # 配置初始化大小、最小、最大 minIdle: 5 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 30000 validationQuery: SELECT 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false # 打开PSCache,并且指定每个连接上PSCache的大小。如果用Oracle,则把poolPreparedStatements配置为true,mysql可以配置为false。分库分表较多的数据库,建议配置为false。 poolPreparedStatements: false maxPoolPreparedStatementPerConnectionSize: 20 # 配置监控统计拦截的filters,wall防sql注入,日志 filters: stat, wall, log4j main: allow-circular-references: true jpa: show-sql: true properties: hibernate: format_sql: true rabbitmq: host: 221.229.107.118 port: 30529 username: root password: 'sm@rtC@m!n23ty' dynamic: true # rabbitmq: # host: 110.1.200.11 # port: 19000 # username: root # password: 'sm@rtC@m!n23ty' # dynamic: true #mybatis: # type-aliases-package: com.bootdo.pretreatment.*.entity # mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml,classpath:mapper/*/*/*.xml #wt: # version: 1.0.0 mybatis: configuration: map-underscore-to-camel-case: true mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml,classpath:mapper/*/*/*.xml typeAliasesPackage: com.bootdo.datasend.**.domain logging: level: org.hibernate.SQL: DEBUG org.hibernate.type.descriptor.sql.BasicBinder: TRACE server: port: 8301 config: file:config/logback.xml