-
-
Save karol-lotkowski/b2cea708cd07db838a64 to your computer and use it in GitHub Desktop.
Dropwizard application example without any resource.
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
package com.karollotkowski.cleancode; | |
import io.dropwizard.Application; | |
import io.dropwizard.setup.Environment; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class CleanCodeApplication extends Application<AppConfiguration> { | |
public static final Logger LOGGER = LoggerFactory.getLogger(CleanCodeApplication.class); | |
public static void main(final String[] args) throws Exception { | |
new CleanCodeApplication().run(args); | |
} | |
@Override | |
public void run(final AppConfiguration configuration, final Environment environment) | |
throws Exception { | |
LOGGER.info("Application name: {}", configuration.getAppName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment