/*
 * MIT Licence
 * Copyright (c) 2017 Simon Frankenberger
 *
 * Please see LICENCE.md for complete licence text.
 */
package eu.fraho.spring.example;

import eu.fraho.spring.securityJwt.CryptPasswordEncoder;
import eu.fraho.spring.securityJwt.config.CryptConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.io.IOException;
import java.security.Security;

@SpringBootApplication(scanBasePackages = {"eu.fraho.spring.example", "eu.fraho.spring.securityJwt"})
@Slf4j
public class RegularNoRefreshApplication {
    static {
        Security.addProvider(new BouncyCastleProvider());
    }

    public static void main(String[] args) throws IOException {
        SpringApplication.run(RegularNoRefreshApplication.class, args);
    }

    @Bean
    public PasswordEncoder passwordEncoder(final CryptConfiguration configuration) {
        return new CryptPasswordEncoder(configuration);
    }
}

@@ -150,127 +150,8 @@
 e;%0A%0A
-import eu.fraho.spring.securityJwt.CryptPasswordEncoder;%0Aimport eu.fraho.spring.securityJwt.config.CryptConfiguration;%0A
 impo
@@ -180,16 +180,16 @@
 .Slf4j;%0A
+
 import o
@@ -362,129 +362,8 @@
 ion;
-%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.security.crypto.password.PasswordEncoder;
 %0A%0Aim
@@ -710,24 +710,24 @@
 Exception %7B%0A
+
         Spri
@@ -795,165 +795,7 @@
    %7D
-%0A%0A    @Bean%0A    public PasswordEncoder passwordEncoder(final CryptConfiguration configuration) %7B%0A        return new CryptPasswordEncoder(configuration);%0A    %7D
 %0A%7D%0A

Remove not needed bean declaration