目前,我正在尝试使用CommandLineRunner和ConfigurableApplicationContext来运行 spring boot 应用程序,默认情况下作为 Web 应用程序和按需作为独立的命令行应用程序(通过某种命令行参数)。当提供程序参数时,我正在努力弄清楚如何将它作为控制台应用程序单独运行。请任何建议都会有所帮助。
CommandLineRunner
ConfigurableApplicationContext
java eclipse command-line-arguments spring-boot
command-line-arguments ×1
eclipse ×1
java ×1
spring-boot ×1