SpringBoot 启动参数及vm参数获取

@Autowired
private ApplicationArguments applicationArguments;
@Autowired
private ApplicationContext applicationContext;
main方法通过ApplicationArguments获取
vm可以通过System.getProperties()或 applicationContext.getEnvironment()

浙公网安备 33010602011771号