-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a22a76
commit 23cf01f
Showing
3 changed files
with
0 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
package ma.insea.connect; | ||
|
||
import ma.insea.connect.keycloak.DTO.AddKeycloakDTO; | ||
import ma.insea.connect.keycloak.controller.KeyCloakController; | ||
import ma.insea.connect.user.DTO.AddUserDTO; | ||
import ma.insea.connect.user.Role; | ||
import ma.insea.connect.user.UserController; | ||
|
||
|
||
import org.hibernate.mapping.List; | ||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.data.jpa.repository.config.EnableJpaAuditing; | ||
import org.springframework.security.crypto.password.PasswordEncoder; | ||
|
||
import ma.insea.connect.user.User; | ||
import ma.insea.connect.user.UserRepository; | ||
@SpringBootApplication | ||
@EnableJpaAuditing | ||
public class ConnectApplication { | ||
|
@@ -26,23 +12,4 @@ public static void main(String[] args) { | |
SpringApplication.run(ConnectApplication.class, args); | ||
} | ||
|
||
// @Profile("dev") | ||
// @Bean | ||
// public CommandLineRunner addAdmin(UserController userController, KeyCloakController keyCloakController) { | ||
// return args -> { | ||
// AddUserDTO user = AddUserDTO.builder() | ||
// .username("admin") | ||
// .email("[email protected]") | ||
// .firstName("admin") | ||
// .lastName("admin") | ||
// .role(Role.ADMIN) | ||
// .password("admin") | ||
|
||
// .build(); | ||
// System.out.println("here it is "+AddKeycloakDTO.mapToAddKeycloakDTO(user).toString()); | ||
// userController.addUser1(user); | ||
|
||
|
||
// }; | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters