智慧保安后台管理-外网项目备份
zhongrj
2024-04-26 eb14311f12b03350adf2ce0826f0b2f9754c8dc2
到期时间修改
3 files modified
8 ■■■■ changed files
src/main/java/org/springblade/modules/FTP/monitor.java 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java 2 ●●● patch | view | raw | blame | history
src/main/resources/application-test.yml 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/FTP/monitor.java
@@ -16,7 +16,7 @@
@Component
public class monitor {
    @Scheduled(cron = "*/30 * * * * ?")
//    @Scheduled(cron = "*/30 * * * * ?")
    public static boolean isFTPFileExist() {
        FTPClient ftp = new FTPClient();
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java
@@ -117,7 +117,7 @@
        UserInfo userInfo = granter.grant(tokenParameter);
        try {
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-04-07").getTime();
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-05-15").getTime();
            long now= System.currentTimeMillis();
            if (parse < now){
                throw new ServiceException("服务器异常");
src/main/resources/application-test.yml
@@ -13,9 +13,9 @@
    #  commandTimeout: 5000
  datasource:
    # MySql
    url: jdbc:mysql://192.168.0.126:3306/zhbaw-test?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
    url: jdbc:mysql://192.168.1.50:3308/zhbaw_test?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
    username: root
    password: NCzhba@2022
    password: root
    # rabbitmq 设置
#  rabbitmq:
#    host: 192.168.0.191