Guest User

Untitled

a guest
Jan 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment