Commit 2bb2b669 authored by zhangsen's avatar zhangsen

漏洞文件漏洞修改 -配置文件随机数

parent 05a60bae
......@@ -82,9 +82,8 @@ public class YeeAmosFireAutoSysStart implements ApplicationContextAware {
environment.getPropertySources().addFirst(new MapPropertySource("securityRandomSource",
Collections.singletonMap("security-random-int", randomClientId)));
application.setEnvironment(environment);
ApplicationContext context = SpringApplication.run(YeeAmosFireAutoSysStart.class, args);
Environment env = context.getEnvironment();
String appName = env.getProperty("spring.application.name");
application.run();
String appName = environment.getProperty("spring.application.name");
log.info(
"\n----------------------------------------------------------\n\t"
+ "Application {} is running!\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment