opts config.

feihu.wang
This commit is contained in:
王飞虎
2022-01-12 19:05:41 +08:00
parent a7eef7c187
commit 9f05c8ada2
10 changed files with 38 additions and 23 deletions

View File

@@ -114,7 +114,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.66</version>
<version>1.2.75</version>
</dependency>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 WangFeiHu
* Copyright (c) 2019-2022 WangFeiHu
* Radar is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:

View File

@@ -120,13 +120,5 @@ public class DateUtils {
return c;
}
/**
* <p>main.</p>
*
* @param args an array of {@link String} objects.
*/
public static void main(String[] args) {
System.out.println(formatDate(new Date(), "yyyy-MM-ww-dd"));
}
}

View File

@@ -83,13 +83,4 @@ public class MD5Utils {
return md5StrBuff.toString();
}
/**
* <p>main.</p>
*
* @param args an array of {@link String} objects.
*/
public static void main(String[] args) {
System.out.println(encrypt("222222","admin"));
System.out.println(encrypt("123456","test"));
}
}

View File

@@ -17,7 +17,6 @@ public class MobileLocationUtil {
}
public static String getLocation(String mobile) {
//TODO: 需要重新寻找手机号码段API 通道.
String httpUrl = "http://apis.baidu.com/apistore/mobilenumber/mobilenumber";
String httpArg = "phone=" + mobile;
String jsonResult = get(httpUrl, httpArg);

View File

@@ -102,6 +102,10 @@
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<build>

View File

@@ -0,0 +1,19 @@
package com.pgmmers.radar.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix = "sys.conf")
@Data
public class SystemProperties {
private String mongoRestoreDays;
private String machineLearning;
private String workdir;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 WangFeiHu
* Copyright (c) 2019-2022 WangFeiHu
* Radar is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 WangFeiHu
* Copyright (c) 2019-2022 WangFeiHu
* Radar is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:

View File

@@ -1,3 +1,13 @@
/*
* Copyright (c) 2019-2022 WangFeiHu
* Radar is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package com.pgmmers.radar.controller;
import io.swagger.annotations.ApiModelProperty;