title: Accessing static variable in spring annotations using spel
body: <p>I have a value in annotation, for which I want to assign a static variable
  I tried something like this</p>
  
  <pre><code>@Cacheable(value = "#com.test.App.VALUE")
   public   List  someCachableMethod() {
   }
  </code></pre>
  
  <p>After trying this its still same Exception : field or Property cannot be  found or null</p>
  
  <pre><code>public class App {
      private static String MY_NAME = " XXXX";
          public static void main(String[] args) {
                      ExpressionParser parser = new SpelExpressionParser();
              Expression exp = parser.parseExpression("#MY_NAME)");
              String message = (String) exp.getValue();
              System.out.println("----------------&gt;"+message);
          }
  
      }
  </code></pre>