赞
踩
- server:
- # 项目端口号
- port: 9998
- tomcat:
- # 设置解码URI字节的字符编码
- uri-encoding: UTF-8
- spring:
- datasource:
- driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
- url: jdbc:sqlserver://99.199.99.999:1433;DatabaseName=emp99box99
- username: sa
- password: 9999
- # 连接池同时能维持的最大连接数,值为非正数时表示不限制
- maxActive: 20
- #连接池启动时要初始化连接数
- initialSize: 1
- #连接池出借连接的最长期限,单位是毫秒
- maxWait: 60000
- #最多维持空闲连接数,值为非正数时表示不限制
- maxIdle: 6
- #最少维持空闲连接数,值为0时表示不创建
- minIdle: 1
- # 配置检测间隔时间,单位毫秒,检测需要关闭的空闲连接。
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- # 用来检测连接是否有效的sql,要求是一个查询语句
- validationQuery: select 1
- #建议配置为true,不影响性能,并且保证安全性。如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
- testWhileIdle: true
- #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能
- testOnBorrow: true
- #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能
- testOnReturn: true
- #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭
- poolPreparedStatements: true
- maxOpenPreparedStatements: 20
- http:
- encoding:
- # 设置项目编码,用于解决乱码问题。
- charset: utf-8
- # 是否启用http编码支持
- enabled: true
- # 是否强制对HTTP请求和响应上配置的字符集进行编码
- force: true
- mybatis:
- # 配置mapper.xml命名
- mapper-locations: classpath*:mybatis/*/*Mapper.xml
- # mybatis对应的实体包的扫描路径
- type-aliases-package: com.example.empboxwarehousing.*.model.*
- configuration:
- # 打印SQL日志
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- # 是否遵循驼峰式命名
- map-underscore-to-camel-case: true
- #log path
- log:
- # 设置日志文件的路径
- path: C:\Users\user\Desktop\privte_project\log\
-
- logging:
- # 设置logback的配置文件位置
- config: classpath:logback-boot.xml

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。