(自用)Spring常用配置

spring:
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/mycnblog?characterEncoding=utf8&useSSL=false
    username: root
    password: root
    driver-class-name: com.mysql.cj.jdbc.Driver
  mvc:
    favicon:
      enable: false
  profiles:  #多平台配置
    active: dev
# 设置 Mybatis 的 xml 保存路径
mybatis:
  mapper-locations: classpath:mapper/*Mapper.xml
  configuration: # 配置打印 MyBatis 执行的 SQL
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: true  #自动驼峰转换
# 配置打印 MyBatis 执行的 SQL
logging:
  file:
    name: logs/springboot.log
  logback:
    rollingpolicy:
      max-file-size: 1KB
      file-name-pattern: ${LOG_FILE}.%d{yyyy-MM-dd}.%i
  level:
    com:
      example:
        demo: debug

相关推荐

  1. (自用)Spring配置

    2024-03-14 12:30:02       39 阅读
  2. Spring Kafka配置详解

    2024-03-14 12:30:02       51 阅读
  3. spring boot rabbitmq配置

    2024-03-14 12:30:02       54 阅读
  4. 自用-

    2024-03-14 12:30:02       26 阅读
  5. Spring注解!!!

    2024-03-14 12:30:02       67 阅读
  6. spring语法

    2024-03-14 12:30:02       49 阅读
  7. spring 注解

    2024-03-14 12:30:02       30 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-14 12:30:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-14 12:30:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-14 12:30:02       87 阅读
  4. Python语言-面向对象

    2024-03-14 12:30:02       96 阅读

热门阅读

  1. sheel和setuptools两个包的作用

    2024-03-14 12:30:02       35 阅读
  2. 【Scala】一、Scala 语法基础

    2024-03-14 12:30:02       44 阅读
  3. JVM是如何解决跨代引用的?

    2024-03-14 12:30:02       34 阅读
  4. 【etcd】的限流设计

    2024-03-14 12:30:02       42 阅读
  5. 计算机视觉(CV)技术的优势和挑战

    2024-03-14 12:30:02       37 阅读
  6. vue3路由跳转时,页面如何滚动到顶部

    2024-03-14 12:30:02       42 阅读