From ec759126ac72fd71103c9a2e30ae7f48c3db6a58 Mon Sep 17 00:00:00 2001 From: calaglin Date: Fri, 6 Dec 2024 20:28:38 +0100 Subject: [PATCH] Refacto applicationStarter --- .../simpleatBack/SimpleatApplication.java | 23 ++++--------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/main/java/fr/vincentRamiere/simpleatBack/SimpleatApplication.java b/src/main/java/fr/vincentRamiere/simpleatBack/SimpleatApplication.java index 85feeda..5c7fcd2 100644 --- a/src/main/java/fr/vincentRamiere/simpleatBack/SimpleatApplication.java +++ b/src/main/java/fr/vincentRamiere/simpleatBack/SimpleatApplication.java @@ -1,33 +1,18 @@ package fr.vincentRamiere.simpleatBack; -import java.util.ArrayList; -import java.util.Arrays; - import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; -import fr.vincentRamiere.simpleatBack.exception.ExistingUsernameException; -import fr.vincentRamiere.simpleatBack.model.EnumRole; -import fr.vincentRamiere.simpleatBack.model.Personne; -import fr.vincentRamiere.simpleatBack.service.PersonneService; - @SpringBootApplication public class SimpleatApplication { - - - public static void main(String[] args) { SpringApplication.run(SimpleatApplication.class, args); } + @Bean - public BCryptPasswordEncoder bCryptPasswordEncoder() { - return new BCryptPasswordEncoder(); - } - - - - - + public BCryptPasswordEncoder bCryptPasswordEncoder() { + return new BCryptPasswordEncoder(); + } }