Delete UserCreator
This commit is contained in:
@ -1,31 +0,0 @@
|
|||||||
package ch.dlmw.swisssignchallenge;
|
|
||||||
|
|
||||||
import ch.dlmw.swisssignchallenge.entities.User;
|
|
||||||
import ch.dlmw.swisssignchallenge.repositories.UserRepository;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
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.security.crypto.password.PasswordEncoder;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
public class UserCreator {
|
|
||||||
|
|
||||||
// @Autowired
|
|
||||||
// private PasswordEncoder passwordEncoder;
|
|
||||||
//
|
|
||||||
// public static void main(String[] args) {
|
|
||||||
// SpringApplication.run(UserCreator.class, args);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Bean
|
|
||||||
// public CommandLineRunner commandLineRunner(UserRepository userRepository) {
|
|
||||||
// return args -> {
|
|
||||||
// var user = new User();
|
|
||||||
// user.setUsername("john");
|
|
||||||
// user.setPasswordHash(passwordEncoder.encode("password"));
|
|
||||||
// userRepository.save(user);
|
|
||||||
// };
|
|
||||||
// }
|
|
||||||
}
|
|
Reference in New Issue
Block a user