在SpringApplication的run(String... args)方法中有相关的代码,使用DefaultApplicationArguments封装参数,该类为ApplicationArguments接口的一个实现子类。
封装的代码为:
ApplicationArguments applicationArguments =new DefaultApplicationArguments(args);
在SpringApplication的run(String... args)方法中有相关的代码,使用DefaultApplicationArguments封装参数,该类为ApplicationArguments接口的一个实现子类。
封装的代码为:
ApplicationArguments applicationArguments =new DefaultApplicationArguments(args);