title: Upgrade from spring 4.3.2 to 5.0.2 is causing missing @AliasFor error
body: <p>When I try to upgrade a spring web-mvc application from version 4.3.2 to 5.0.2, I get an error in servlet xml. The error happens in the following line,</p>
  
  <pre><code>&lt;context:component-scan base-package="com.mypackage" /&gt;
  </code></pre>
  
  <p>Error is as follows,</p>
  
  <p>Error occured processing XML '@AliasFor declaration on attribute [value] in annotation [org.springframework.stereotype.Controller] is missing required 'attribute' value.'. See Error Log for more details</p>
  
  <p>This is how my servlet xml looks like.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:security="http://www.springframework.org/schema/security"
  xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
      http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
      http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.2.xsd"&gt;
  
  
  &lt;security:global-method-security secured-annotations="enabled"/&gt;
  
  &lt;context:component-scan base-package="com.mypackage" /&gt;
  
  &lt;mvc:view-controller path="/" view-name="index"/&gt;
  
  &lt;mvc:resources mapping="/resources/**" location="/resources/" /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>If I use 5.0.0 this error is not happening. As it is complaining about a missing annotation in org.springframework.stereotype.Controller, I tried to find out what is newly added or missing in the Controller. I could see that a new line is added in version 5.0.2 and it has a missing 'attribute'. </p>
  
  <pre><code>@AliasFor(annotation = Component.class)
  </code></pre>
  
  <p>I am sure I am missing something in my bean class definition which is required from version 5.0.2.</p>