How to get username from mono<user> on spring boot webflux?
问题 I try to make handler and router classes of spring boot webflux. The model class is user class. Codes are @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Document(collection="Users") public class User { @Id private String _id; @Indexed(unique = true) private Long id; @Indexed(unique=true) private String username; private String password; private String email; private String fullname; private String role; } And below is the handler class of webflux project. In register method, I make