-
-
Save lance/05a1496031ca25a88d20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws Exception { | |
Container container = new Container(); | |
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class, "swagger-app.war"); | |
deployment.addClass(TimeResource.class); | |
deployment.addAllDependencies(); | |
container | |
.fraction(LoggingFraction.createDebugLoggingFraction()) | |
.fraction(new SwaggerFraction()) | |
.start() | |
.deploy(deployment) | |
.deploy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment