All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.redskap.swagger.brake.SwaggerBrakeMain Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package io.redskap.swagger.brake;

import io.redskap.swagger.brake.cli.Cli;
import io.redskap.swagger.brake.cli.CliConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.SimpleCommandLinePropertySource;

public class SwaggerBrakeMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CliConfiguration.class);
        ConfigurableEnvironment environment = context.getEnvironment();
        environment.getPropertySources().addFirst(new SimpleCommandLinePropertySource(args));
        Cli cli = context.getBean(Cli.class);
        cli.start();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy