更新配置文件,调整命名空间为material_mall,优化密码验证逻辑
This commit is contained in:
parent
32621a782f
commit
30c708bff9
|
|
@ -286,6 +286,7 @@ public class PasswordValidatorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void processLoginBlackList(SysUser user){
|
public void processLoginBlackList(SysUser user){
|
||||||
|
if (true) {return;}
|
||||||
// 获取黑名单列表
|
// 获取黑名单列表
|
||||||
List<Map<String, Object>> cacheList = redisService.getCacheObject(CacheConstants.SYS_LOGIN_BLACKIPLIST);
|
List<Map<String, Object>> cacheList = redisService.getCacheObject(CacheConstants.SYS_LOGIN_BLACKIPLIST);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,13 @@ spring:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
# server-addr: 192.168.1.2:8848
|
# server-addr: 192.168.1.2:8848
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
ip: 192.168.0.69
|
ip: 192.168.0.69
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
# server-addr: 192.168.1.2:8848
|
# server-addr: 192.168.1.2:8848
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,14 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
username: nacos
|
username: nacos
|
||||||
password: nacos123
|
password: nacos123
|
||||||
ip: 192.168.0.69
|
ip: 192.168.0.69
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
username: nacos
|
username: nacos
|
||||||
password: nacos123
|
password: nacos123
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,11 @@ spring:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
namespace: material_mall
|
namespace: material_mall
|
||||||
# namespace: material_mall_shanxi
|
|
||||||
ip: 192.168.0.69
|
ip: 192.168.0.69
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
namespace: material_mall
|
namespace: material_mall
|
||||||
# namespace: material_mall_shanxi
|
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,11 @@ import java.util.Map;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SysLogServiceImpl implements ISysLogService {
|
public class SysLogServiceImpl implements ISysLogService {
|
||||||
|
|
||||||
|
public final static String SUCCESS="成功";
|
||||||
@Value("${sql.schemaName}")
|
@Value("${sql.schemaName}")
|
||||||
private String schemaName;
|
private String schemaName;
|
||||||
|
|
||||||
@Resource(name = "SysLogMapper")
|
@Resource(name = "SysLogMapper")
|
||||||
private SysLogMapper mapper;
|
private SysLogMapper mapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ApplicationEventPublisher eventPublisher;
|
private ApplicationEventPublisher eventPublisher;
|
||||||
|
|
||||||
|
|
@ -207,7 +206,7 @@ public class SysLogServiceImpl implements ISysLogService {
|
||||||
}
|
}
|
||||||
return R.ok("设置成功","设置成功");
|
return R.ok("设置成功","设置成功");
|
||||||
}
|
}
|
||||||
public final static String SUCCESS="成功";
|
|
||||||
/**
|
/**
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
|
|
@ -287,8 +286,8 @@ public class SysLogServiceImpl implements ISysLogService {
|
||||||
double bfb=0.9;
|
double bfb=0.9;
|
||||||
String rl=mapper.getLogsRl(schemaName);
|
String rl=mapper.getLogsRl(schemaName);
|
||||||
String city=mapper.getLogsSet();
|
String city=mapper.getLogsSet();
|
||||||
Double d=Double.parseDouble(rl);
|
double d=Double.parseDouble(rl);
|
||||||
Double max=Double.parseDouble(city)*bfb;
|
double max=Double.parseDouble(city)*bfb;
|
||||||
if(d>=max){
|
if(d>=max){
|
||||||
String warningEvent = "日志容量告警,当日日志内存为" +d+ "GB,日志内存超过总内存的90%,请及时处理!";
|
String warningEvent = "日志容量告警,当日日志内存为" +d+ "GB,日志内存超过总内存的90%,请及时处理!";
|
||||||
eventPublisher.publishEvent(new WaringLogEvent(new SysWarning("0",warningEvent,"",null,null, "1")));
|
eventPublisher.publishEvent(new WaringLogEvent(new SysWarning("0",warningEvent,"",null,null, "1")));
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,13 @@ spring:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
# server-addr: 192.168.1.2:8848
|
# server-addr: 192.168.1.2:8848
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
ip: 192.168.0.69
|
ip: 192.168.0.69
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
#server-addr: 192.168.1.2:8848
|
#server-addr: 192.168.1.2:8848
|
||||||
server-addr: 14.103.246.124:8848
|
server-addr: 14.103.246.124:8848
|
||||||
# namespace: material_mall
|
namespace: material_mall
|
||||||
namespace: material_mall_shanxi
|
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue