code: public static WebMvcLinkBuilder linkTo(Class<?> controller, Object... parameters) {
  
  		Assert.notNull(controller, "Controller must not be null!");
  		Assert.notNull(parameters, "Parameters must not be null!");
  
  		String mapping = DISCOVERER.getMapping(controller);
  
  		UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(mapping == null ? "/" : mapping);
  		UriComponents uriComponents = HANDLER.expandAndEncode(builder, parameters);
  
  		return new WebMvcLinkBuilder(UriComponentsBuilderFactory.getBuilder()).slash(uriComponents, true);
  	}
docs: Creates a new {@link WebMvcLinkBuilder} with a base of the mapping annotated to the given controller class. The
  additional parameters are used to fill up potentially available path variables in the class scop request mapping.
  
  @param controller the class to discover the annotation on, must not be {@literal null}.
  @param parameters additional parameters to bind to the URI template declared in the annotation, must not be
  {@literal null}.
  @return