SHARE
TWEET

Untitled

a guest Jun 15th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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