xiaoyong931011
2022-10-25 81bf5f33e7356df461013e44420b4764023fc435
20221021
3 files modified
48 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/service/impl/ApiIgtOnHookPlanServiceImpl.java 5 ●●●● patch | view | raw | blame | history
src/main/resources/application-prod.yml 41 ●●●●● patch | view | raw | blame | history
src/main/resources/application.yml 2 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/service/impl/ApiIgtOnHookPlanServiceImpl.java
@@ -94,7 +94,7 @@
        DataDictionaryCustom endTimeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.END_TIME.getType(), DataDictionaryEnum.END_TIME.getCode());
        DateTime startTime = DateUtil.parseTimeToday(startTimeDic.getValue());
        DateTime endTime = DateUtil.parseTimeToday(endTimeDic.getValue());
        DateTime nowTime = DateUtil.parseTimeToday(DateUtil.now());
        DateTime nowTime = DateUtil.parseTimeToday(DateUtil.format(DateUtil.date(),"HH:mm:ss"));
        if(DateUtil.compare(nowTime,startTime) < 0){
            return new FebsResponse().fail().message(MessageSourceUtils.getString("member_err_0015"));
        }
@@ -330,6 +330,9 @@
    }
    public static void main(String[] args) {
        DateTime nowTime = DateUtil.parseTimeToday(DateUtil.format(DateUtil.date(),"HH:mm:ss"));
        System.out.println(nowTime);
        int maxTimes = 10;
        for(int i =1;i<maxTimes;){
            maxTimes --;
src/main/resources/application-prod.yml
@@ -20,32 +20,37 @@
          driver-class-name: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://127.0.0.1:3306/db_tfc?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8
  ## redis配置
  redis:
    # Redis数据库索引(默认为 0)
    database: 4
    # Redis服务器地址
    ## Redis数据库索引(默认为0)
    database: 5
    ## Redis服务器地址
    host: 127.0.0.1
    # Redis服务器连接端口
    ## Redis服务器连接端口
    port: 6379
    # Redis 密码
    password: zhongji-mall=-0
    lettuce:
    ## Redis服务器连接密码(默认为空)
    password: ann123!@#
    jedis:
      pool:
        # 连接池中的最小空闲连接
        ## 连接池最大连接数(使用负值表示没有限制)
        #spring.redis.pool.max-active=8
        max-active: 300
        ## 连接池最大阻塞等待时间(使用负值表示没有限制)
        #spring.redis.pool.max-wait=-1
        max-wait: -1
        ## 连接池中的最大空闲连接
        #spring.redis.pool.max-idle=8
        max-idle: 100
        ## 连接池中的最小空闲连接
        #spring.redis.pool.min-idle=0
        min-idle: 8
        # 连接池中的最大空闲连接
        max-idle: 500
        # 连接池最大连接数(使用负值表示没有限制)
        max-active: 2000
        # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: 10000
    # 连接超时时间(毫秒)
    timeout: 5000
    ## 连接超时时间(毫秒)
    timeout: 30000
  rabbitmq:
    host: 127.0.0.1
    port: 5672
    username: zj_mall
    password: zj_mall123
    username: abc_user
    password: abc123
    publisher-confirm-type: correlated
  jackson:
src/main/resources/application.yml
@@ -1,11 +1,13 @@
server:
  port: 8095
#  port: 8075
  tomcat:
    uri-encoding: utf-8
spring:
  profiles:
    active: test
#    active: prod
  thymeleaf:
    cache: false