mirror of
https://gitee.com/freshday/radar.git
synced 2026-03-22 12:47:16 +08:00
opts config.
feihu.wang
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -114,7 +114,7 @@
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.66</version>
|
||||
<version>1.2.75</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user