springboot(配置)版本(0.0.1)

spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/hotevent?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8
    username: root
    password: lcq123
  #关闭模板引擎缓存
  thymeleaf:
    cache: false
    #编码格式
    encoding: UTF-8
    #模板类型(默认是html)
    mode: HTML

#mybatis
mybatis-plus:
  #实体类别名
  type-aliases-package: com.example.hotevent.pojo
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    #是否开启驼峰命名自动映射,即从经典数据库列名 A_COLUMN 映射到经典 Java 属性名 aColumn。
    map-underscore-to-camel-case: false
    #<!--自动映射-->
    auto-mapping-behavior: full
  mapper-locations: classpath*:/mapper/*.xml

posted @   你是恩赐,也是劫  阅读(101)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

阅读目录(Content)

此页目录为空

点击右上角即可分享
微信分享提示