【SpringBoot】yml配置时区的配置项

时区参数定义yml文件:

environment:
      - TZ=Asia/Shanghai
services:
  systemManage:
    image: **********************
    ports:
      - "8082:8082"
    environment:
      - spring.profiles.active=test
      - TZ=Asia/Shanghai
    deploy:
      replicas: 1

你可能感兴趣的:(#,SpringBoot小技巧,spring,boot,spring,java)