为什么RouterFunctions<ServerResponse>报错
@Configuration
public class RouterFunctionConfiguration {
@Bean
@Autowired
public RouterFunction<ServerResponse> findAll(UserRepository userRepository){
Collection<User> users = userRepository.findAll();
RouterFunctions.route(RequestPredicates.GET(pattern:""));
}
}