Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @SpringBootApplication
  2. public class DemoSpringApplication {
  3.  
  4. public static void main(String[] args) {
  5. ApplicationContext ctx = SpringApplication.run(DemoSpringApplication.class, args);
  6. LevelRepository levelRepository = ctx.getBean(LevelRepository.class);
  7. levelRepository.save(new Level("SUPERADMIN"));
  8. levelRepository.save(new Level("ADMIN"));
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement