new test config
This commit is contained in:
		
							parent
							
								
									796c71a24a
								
							
						
					
					
						commit
						8fcd71639e
					
				| @ -0,0 +1,17 @@ | ||||
| package org.baeldung.test; | ||||
| 
 | ||||
| import org.baeldung.spring.PersistenceJPAConfig; | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.ComponentScan; | ||||
| import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; | ||||
| import org.springframework.security.crypto.password.PasswordEncoder; | ||||
| 
 | ||||
| @ComponentScan({ "org.baeldung.persistence.dao" }) | ||||
| public class TestConfig extends PersistenceJPAConfig { | ||||
| 
 | ||||
|     @Bean | ||||
|     public PasswordEncoder encoder() { | ||||
|         return new BCryptPasswordEncoder(11); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user