mybatis

server:
port: 8080

mybatis:
# #标注mybatis配置文件的位置
# config-location: classpath:mybatis-config.xml
#标注待解析的mapper的xml文件位置
mapper-locations: classpath:mappers/*.xml
# #标注实体类位置
# type-aliases-package: com.example.spring_mybatis.pojo
configuration:
#开启mybatis驼峰式命名规则自动转换
map-underscore-to-camel-case: true

spring:
# 数据源配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/springboot_mybatis?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
username: root
password: root
posted @   千里兮兮  阅读(9)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
点击右上角即可分享
微信分享提示