s.brief-mybatis-sample.3.6.8.source-code.application.yml Maven / Gradle / Ivy
The newest version!
server:
port: 9082
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
username: root
password: zqbxcmj
#spring:
# datasource:
# driver-class-name: org.h2.Driver
# username: sa
# password: password
# url: jdbc:h2:mem:mydb;MODE=MySQL;
# schema: h2.sql
# data: h2.sql
# h2:
# console:
# enabled: true
resources:
static-locations : classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/static/page/,classpath:/templates/
#配置mybatis
mybatis:
#扫描mapper 文件路径
#com.javaoffers.batis.modelhelper.mapper-locations : classpath*:com/mh/others/spring_/**/*.xml
mapper-locations : classpath*:static/**/**.xml
configuration:
#sql打印
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# brief 配置
brief:
# 慢sql超过10毫秒打印慢sql
print-sql: true
print-cost: true
slow-sql:
time : 0
filter:
jql-filter: com.javaoffers.base.modelhelper.sample.spring.filter.JqlSampleFilter
© 2015 - 2024 Weber Informatics LLC | Privacy Policy