package wad.controller;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import wad.domain.Account;
import wad.domain.Permission;
import wad.repository.AccountRepository;
import wad.repository.PermissionRepository;
import wad.service.AuthenticationService;

@Controller
public class DefaultController {
    @Autowired
    private AuthenticationService authService;
    
    @PostConstruct
    public void init() {
        authService.initDefaultUsers();
    }

//    @RequestMapping("*")
//    public String handleDefault() {
//        return "redirect:/home";
//    }
}

@@ -675,16 +675,18 @@
 e;%0A    %0A
+//
     @Pos
@@ -696,16 +696,18 @@
 nstruct%0A
+//
     publ
@@ -723,16 +723,18 @@
 nit() %7B%0A
+//
         
@@ -765,16 +765,18 @@
 sers();%0A
+//
     %7D%0A%0A/

remove post construct