Guest User

Untitled

a guest
Jul 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @Configuration
  2. @Order(Ordered.HIGHEST_PRECEDENCE)
  3. public class PasswordEncoderConfig {
  4.  
  5. @Bean
  6. public PasswordEncoder passwordEncoder() {
  7. return new BCryptPasswordEncoder();
  8. }
  9.  
  10. }
  11.  
  12. @Entity
  13. @Table(name = "USER")
  14. public abstract class UserTable implements Serializable {
  15.  
  16. @Inject
  17. private PasswordEncoder encoder;
  18.  
  19. // other fields
  20.  
  21. Caused by: org.hibernate.MappingException: Could not determine type for: org.springframework.security.crypto.password.PasswordEncoder, at table: USER, for columns: [org.hibernate.mapping.Column(encoder)]
Add Comment
Please, Sign In to add comment