yanghb
2023-03-29 67dfbb94edb50a07bf2155097d0de442b8ded5ce
init
2个文件已修改
19 ■■■■■ 已修改文件
UserTravel/guns-admin/docker/Dockerfile 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserTravel/guns-admin/src/main/resources/application.yml 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserTravel/guns-admin/docker/Dockerfile
@@ -8,8 +8,5 @@
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 5001
ENV JAVA_OPTS="-Xmx400m -Xms400m -Djava.security.egd=file:/dev/./urandom"
# 配置容器启动后执行的命令
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /server.jar","--spring.profiles.active=prod"]
#ENTRYPOINT ["java","-Xmx400m","-Xms400m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/server.jar", "--spring.profiles.active=prod"]
ENTRYPOINT ["java","-Xmx400m","-Xms400m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/server.jar", "--spring.profiles.active=prod"]
UserTravel/guns-admin/src/main/resources/application.yml
@@ -88,16 +88,16 @@
spring:
  profiles: dev
  datasource:
    url: jdbc:mysql://192.168.5.102:3306/jyxtravel-sjdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    password: 123456
    db-name: jyxtravel-sjdb #用来搜集数据库的所有表
    db-name: kuanzhaiyx #用来搜集数据库的所有表
    filters: wall,mergeStat
#多数据源情况的配置
guns:
  muti-datasource:
    open: false
    url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
    url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    #    password: Root2020!
    password: 123456
@@ -108,16 +108,16 @@
spring:
  profiles: prod
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowPublicKeyRetrieval=true&&serverTimezone=Asia/Shanghai
    url: jdbc:mysql://122.9.140.208:10010/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    password: kuanzhaiyx
    db-name: kuanzhaiyx #用来搜集数据库的所有表
    password: 123456
    db-name: 123456 #用来搜集数据库的所有表
    filters: wall,mergeStat
#多数据源情况的配置
guns:
  muti-datasource:
    open: false
    url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
    url: jdbc:mysql://122.9.140.208:10010/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    #    password: Root2020!
    password: 123456