We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796c71a commit 8fcd716Copy full SHA for 8fcd716
spring-security-login-and-registration/src/main/java/org/baeldung/test/TestConfig.java
@@ -0,0 +1,17 @@
1
+package org.baeldung.test;
2
+
3
+import org.baeldung.spring.PersistenceJPAConfig;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.ComponentScan;
6
+import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
7
+import org.springframework.security.crypto.password.PasswordEncoder;
8
9
+@ComponentScan({ "org.baeldung.persistence.dao" })
10
+public class TestConfig extends PersistenceJPAConfig {
11
12
+ @Bean
13
+ public PasswordEncoder encoder() {
14
+ return new BCryptPasswordEncoder(11);
15
+ }
16
17
+}
0 commit comments