debug: false
mybatis:
type-aliases-package: com.yuqiyu.jpf.entity
configuration:
cache-enabled: false
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost3306/sd_roulette?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root
password:root
mvc:
favicon:
enabled: false
view:
prefix: /home/
suffix: .html
redis:
# Redis数据库索引(默认为0)
database: 10
# Redis服务器地址
host: localhost
# Redis服务器连接端口
port: 7701
# Redis服务器连接密码(默认为空)
password: sd888
timeout: 0
pool:
# 连接池最大连接数(使用负值表示没有限制)
max-active: 8
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1
# 连接池中的最大空闲连接
max-idle: 8
# 连接池中的最小空闲连接
min-idle: 0
# 连接超时时间(毫秒)
timeout: 0
server:
port: 8080
jpa:
properties:
hibernate:
show_sql: true
format_sql: true
# 分页配置
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
# 与mybatis整合
mybatis:
mapperLocations: classpath:mapper/*.xml
typeAliasesPackage: tk.mapper.model
logging:
level:
com:
yuqiyu:
jpf:
mapper: debug
#logging.level.com.yuqiyu.jpf.mapper=debug
#添加sql语句
10.yml的一般配置
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- 最近看Dive into python第四章自省中提到getattr()函数,作为一个内建函数平时自己没怎么用过所...