daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 46 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
Top