Skip to content

Commit 8fcd716

Browse files
author
eugenp
committed
new test config
1 parent 796c71a commit 8fcd716

File tree

1 file changed

+17
-0
lines changed
  • spring-security-login-and-registration/src/main/java/org/baeldung/test

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)