daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EnableAutoConfiguration
  2. public class AutoPackageTest {
  3.     @Test
  4.     public void checkAutoPackage(){
  5.         SpringApplication app =
  6.             new SpringApplication(AutoPackageTest.class);
  7.         app.setBannerMode(Banner.Mode.OFF);
  8.         app.setLogStartupInfo(false);
  9.         String[] args = {"--debug"};
  10.         ConfigurableApplicationContext c = app.run(args);
  11.         List<String> packages = AutoConfigurationPackages.get(c);
  12.         System.out.println("packages: "+packages);
  13.     }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top