Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @Order(Ordered.HIGHEST_PRECEDENCE)
- public class PasswordEncoderConfig {
- @Bean
- public PasswordEncoder passwordEncoder() {
- return new BCryptPasswordEncoder();
- }
- }
- @Entity
- @Table(name = "USER")
- public abstract class UserTable implements Serializable {
- @Inject
- private PasswordEncoder encoder;
- // other fields
- 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