天天看點

Spring Boot(四)Accessing application arguments

如果需要通路SpringApplication.run(…​)傳入的參數,可以通過注解的形式注入

ApplicationArguments接口執行個體,該接口提供了一套通路String[]參數的方法和【不知道怎麼翻譯,原文是】as well as parsed option and non-option arguments: