All Downloads are FREE. Search and download functionalities are using the official Maven repository.

demo.mars.yml Maven / Gradle / Ivy

#此配置文件只是个demo,对开发没什么卵用

#配置端口号(默认8080)
port: 8088
#配置jwt有效期(默认1),单位:秒
jwtTime: 20
#上传文件大小(默认 1M,10M),单位k
fileUpload:
  fileSizeMax: 100
  sizeMax: 1000

#配置跨域请求
cross_domain:
  origin: "*"
  methods: "GET,POST"
  maxAge: 9
  headers: "x-requested-with,Cache-Control,Pragma,Content-Type,Token"
  credentials: "true"

#配置持久层
jdbc:
  #配置数据源,必须是数组,必须是阿里巴巴的 druid数据源
  dataSource:
    - #左边这条斜杠千万不能省略,缩进也必须有; 下面的属性请参照druid数据源
      name: dataSource
      url: jdbc:mysql://10.211.55.5:3306/test?serverTimezone=GMT%2B8
      username: root
      password: rootroot
      driverClassName: com.mysql.cj.jdbc.Driver

#redis配置
redis:
  maxTotal: 1000
  maxIdle: 100
  numTestsPerEvictionRun: 10
  timeBetweenEvictionRunsMillis: 10
  minEvictableIdleTimeMillis: 10
  softMinEvictableIdleTimeMillis: 10
  maxWaitMillis: 10
  testOnBorrow: false
  testWhileIdle: false
  testOnReturn: false
  jmxEnabled: false
  jmxNamePrefix: pool
  blockWhenExhausted: false
  # redis连接,必须是数组 因为可能需要连多个redis
  jedisShardInfos:
    -
      name: master
      host: 10.211.55.5
      port: 6379
      password: 123456
      # 这两个可以不配置
      connectionTimeout: 1000
      soTimeout: 1000


#以下配置 必须在导入Mars-extends 中的相应的jar包后 才生效

#邮件配置 只支持smtp
mail:
  host: smtp.sina.com
  port: 465
  smtpSslEnable: true
  debug: false
  # 发件箱
  sendMail: 发件箱
  sendMailPwd: 发件箱密码
  auth: true




© 2015 - 2025 Weber Informatics LLC | Privacy Policy