@@ -0,0 +1,1708 @@
+package org.crunchytorch.coddy.user.runner;%0A%0Aimport org.crunchytorch.coddy.application.utils.AppUtils;%0Aimport org.crunchytorch.coddy.user.data.in.UpdateUser;%0Aimport org.crunchytorch.coddy.user.service.UserService;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.boot.ApplicationArguments;%0Aimport org.springframework.boot.ApplicationRunner;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class AdminCreationOnStartup implements ApplicationRunner %7B%0A%0A    private static final Logger LOGGER = LoggerFactory.getLogger(AdminCreationOnStartup.class);%0A%0A    @Autowired%0A    UserService service;%0A%0A    @Value(%22$%7B%22 + AppUtils.CONF_ADMIN_LOGIN + %22:admin%7D%22)%0A    private String adminUsername;%0A%0A    @Value(%22$%7B%22 + AppUtils.CONF_ADMIN_PASSWORD + %22:admin%7D%22)%0A    private char%5B%5D adminPassword;%0A%0A    @Value(%22$%7B%22 + AppUtils.CONF_ADMIN_EMAIL + %22:admin.coddy@crunchy-torch.org%7D%22)%0A    private String adminEmail;%0A%0A    @Value(%22$%7B%22 + AppUtils.CONF_BOT_LOGIN + %22:coddyBot%7D%22)%0A    private String botUsername;%0A%0A    @Value(%22$%7B%22 + AppUtils.CONF_BOT_PASSWORD + %22:coddyBot%7D%22)%0A    private char%5B%5D botPassword;%0A%0A    @Override%0A    public void run(ApplicationArguments args) throws Exception %7B%0A        LOGGER.info(%22create admin user if exists%22);%0A        if (!service.isExist(adminUsername)) %7B%0A            service.create(new UpdateUser(adminUsername, adminPassword, adminEmail));%0A        %7D%0A        LOGGER.info(%22create bot user is exists%22);%0A        if (!service.isExist(botUsername)) %7B%0A            service.create(new UpdateUser(botUsername, botPassword));%0A        %7D%0A    %7D%0A%7D%0A

add AdminCreationOnStartUp to create admin account