One way to find out how it looks is to see for yourself. This is an example for eclipse, but it should work similarly for other IDEs:
First of all, make sure you have the spring library sources that you use. This is easiest if you use maven using the maven-eclipse plugin or using m2eclipse .
Then in Eclipse select Navigate -> Open Type... Enter the type you are looking for (something like RequestMa* should do for lazy models like me). Type / OK. Now right-click the class name in the source file and select References -> Project . All applications of this class or annotation appear in the search view.
One of them is DefaultAnnotationHandlerMapping.determineUrlsForHandlerMethods (class, logical) , where this piece of code will tell you that the language of the expression is not evaluated:
ReflectionUtils.doWithMethods(currentHandlerType, new ReflectionUtils.MethodCallback() { public void doWith(Method method) { RequestMapping mapping = AnnotationUtils.findAnnotation( method, RequestMapping.class); if (mapping != null) { String[] mappedPatterns = mapping.value(); if (mappedPatterns.length > 0) { for (String mappedPattern : mappedPatterns) {
Remember that it is called Open Source. It makes no sense to use open source software if you are not trying to understand what you are using.
Sean Patrick Floyd
source share