|
|
@ -2,6 +2,7 @@ package es.fp.edu.conecta2; |
|
|
|
|
|
|
|
import es.fp.edu.conecta2.modelo.user.User; |
|
|
|
import es.fp.edu.conecta2.repo.user.IUserRepo; |
|
|
|
import es.fp.edu.conecta2.servicios.AdminService; |
|
|
|
import es.fp.edu.conecta2.servicios.UserService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.CommandLineRunner; |
|
|
@ -15,9 +16,13 @@ public class Conecta2Application implements CommandLineRunner { |
|
|
|
SpringApplication.run(Conecta2Application.class, args); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private UserService repositorioUser; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private AdminService repositorioAdmin; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run(String... args) throws Exception { |
|
|
|
User user1 = new User(); |