title: How to set a long as hex in Spring XML config
body: <p>I am trying to do something like this:</p>
  
  <pre><code>&lt;bean id="myBean" class="com.example.SomeThing"&gt;
      &lt;property name="longValue"&gt;
          &lt;bean class="java.lang.Long"&gt;
              &lt;constructor-arg value="0x0418a14372d4186eL" type="long"/&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>But this results in the following exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'java.lang.Long#19190b75' defined in file [/apollo/env/path/to/config.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
  </code></pre>