我是靠谱客的博主 热心雨,这篇文章主要介绍.yml文件配置,现在分享给大家,希望可以做个参考。

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
server: port: 8090 #spring整合数据源 最快的数据源 servlet: context-path: / spring: datasource: #cj:使用高版本驱动时使用cj driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/jt?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true username: root password: root #如果密码以数组0开头,则用“”包裹 #SpringBoot整合MybatisPlus mybatis-plus: #设置别名包 type-aliases-package: com.jt.pojo #加载映射文件:路径 mapper-locations: classpath:/mappers/*.xml #开启驼峰映射 configuration: map-underscore-to-camel-case: true #打印SQL语句 logging: level: #指定包路径,日志输出 com.jt.mapper: debug

最后

以上就是热心雨最近收集整理的关于.yml文件配置的全部内容,更多相关内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部