To generate Spring Services for every @RequestMapping add following to your pom.xml in the build/plugins section.
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<processor>de.neofonie.surlgen.processor.spring.UrlFactoryServiceGenerator</processor>
</configuration>
</execution>
</executions>
</plugin>
This will generate for each Controller methods to generate (compiler-safe) methods for url-construction. These are based on MvcUriComponentsBuilder.
Adding the UrlFunctionGenerator as processor will generate a UrlFunction-Class. Applying a additional tld-filename, a TLD-File will also be generated.
<processors>
<processor>de.neofonie.surlgen.processor.spring.UrlFactoryServiceGenerator</processor>
<processor>de.neofonie.surlgen.processor.spring.UrlFunctionGenerator</processor>
</processors>
<options>
<tld.file>${project.build.directory}/${project.build.finalName}/WEB-INF/tld/urls.tld</tld.file>
</options>