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