title: @CrossOrigin cannot be resolved - Spring boot
body: <p>I've setup my Spring boot workspace using the following Github repository: 
  <a href="https://github.com/leanstacks/spring-boot-fundamentals/tree/repository" rel="nofollow noreferrer">https://github.com/leanstacks/spring-boot-fundamentals/tree/repository</a></p>
  
  <p>I successfully setup the Rest API and was also able to test all CRUD operations using Postman. 
  Now I was trying to call the Rest services from my Angular 2 application, but I get the following error when I perform a GET operation:</p>
  
  <p>'<a href="http://localhost:8080/api/greetings" rel="nofollow noreferrer">http://localhost:8080/api/greetings</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:4200" rel="nofollow noreferrer">http://localhost:4200</a>' is therefore not allowed access.'</p>
  
  <p>I tried to use:
  @CrossOrigin( methods = RequestMethod.GET, allowCredentials = "true") annotation for resolving the cross origin issue, but CrossOrigin isn't getting resolved. I get a message:
  'The import org.springframework.web.bind.annotation.CrossOrigin cannot be resolved'</p>
  
  <p>Any suggestion/feedback is very much appreciated.</p>