title: How to use enum constant in request mapping annotation?
body: <pre><code>This is as enum of constants.     
      public enum LoginRequestMappingConstants 
      {
          LOGIN("/login"),
          LOGOUT("/logout"),
          ADMINISTRATION("/Administration");
          private LoginRequestMappingConstants(String requestMapping) {
              this.requestMapping = requestMapping;
          }
  
          private String requestMapping;
  
          public String getRequestMapping() {
              return requestMapping;
          }
      }
  
   In request mapping annotation I wanted to use the enum of constant.
      @RequestMapping(value =  LoginRequestMappingConstants.LOGIN.getRequestMapping(), method = RequestMethod.GET)
  </code></pre>
  
  <p>During compile time only I am getting this error.
  The value for annotation attribute RequestMapping.value must be a constant expression. What is meaning of this error ?
  What is the correct way to create constants for RequestMapping annotation?</p>