System.out.println("App context initialized successfully");
CategoryService categoryService = ctx.getBean("categoryService", CategoryService.class);
List<Category> categories = categoryService.findAll();
for (Category category: categories) System.out.println("Category: " + category.getCategoryId());
List<Category> parentCategories = categoryService.findAllParentCategory();