Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SpringBootApplication
- public class DemoSpringApplication {
- public static void main(String[] args) {
- ApplicationContext ctx = SpringApplication.run(DemoSpringApplication.class, args);
- LevelRepository levelRepository = ctx.getBean(LevelRepository.class);
- levelRepository.save(new Level("SUPERADMIN"));
- levelRepository.save(new Level("ADMIN"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement