How to create a data class implements Spring Secuirty specific UserDetails
问题 I am trying to migrate some spring-webflux sample codes to kotlin. Currently I want to convert my Spring Data Mongo sample to kotlin. There is a User , the original Data Mongo version looks: @Data @ToString @Builder @NoArgsConstructor @AllArgsConstructor @Document class User implements UserDetails { @Id private String id; private String username; private String password; @Builder.Default() private boolean active = true; @Builder.Default() private List<String> roles = new ArrayList<>();