欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

application

程序员文章站 2022-03-20 23:00:58
后端application.yaml模板server: port: 8080 servlet: context-path: /spring: datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://localhost:3306/bookshopping?serverTimezone=UTC&useSSL=true&useUnicode=true&ch...

后端application.yaml模板

server:
  port: 8080
  servlet:
    context-path: /

spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://localhost:3306/bookshopping?serverTimezone=UTC&useSSL=true&useUnicode=true&characterEncoding=utf8
    username: root
    password: 123456
    tomcat:
      max-active: 20
      max-wait: 5000
      initial-size: 1
    driver-class-name: com.mysql.cj.jdbc.Driver
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
  web:
    resources:
      static-locations: classpath:/resources/,classpath:/static/
      chain:
        cache: true
      cache:
        period: 2592000
  devtools:
    remote:
      restart:
        enabled: true
  servlet:
    # 文件上传下载
    multipart:
      enabled: true
      # 最大支持文件大小
      max-file-size: 5MB
      # 最大支持请求大小
      max-request-size: 5MB
  profiles:
    active: logger
mybatis:
  type-aliases-package: com.cqipc.entity
  mapper-locations: classpath:mapper/*.xml
  configuration:
    map-underscore-to-camel-case: false


本文地址:https://blog.csdn.net/sumyx/article/details/110296306

相关标签: spring