title: Annotation RequestMapping() giving the error
body: <p>I am starting with Spring Boot and trying to make a Rest service.
  I am writing a controller where there are RequestMappings to 3 methods.
  Two of them are working fine while the thirl annotation is giving this error while writing the code.</p>
  
  <blockquote>
    <p>Multiple markers at this line
      - Syntax error, insert "enum Identifier" to complete     EnumHeader
      - Syntax error, insert "EnumBody" to complete    EnumDeclaration</p>
  </blockquote>
  
  <p>I tried everything from other answers but cant seem to find out the issue. Here is my code for the Controller-</p>
  
  <pre><code>package io.springboot.topics;
  
  import java.util.Arrays;
  import java.util.List;
  
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  public class TopicsController {
  
      @Autowired
      private TopicSrvice topicService;
  
      @RequestMapping("/topics")
      public List&lt;Topic&gt; getAllTopics() {
          return topicService.getAllTopics();
      }
      @RequestMapping("/topics/{id}")
      public Topic getTopic(@PathVariable String id) {
          return topicService.getTopic(id);
      }
  
   @RequestMapping(method=RequestMethod.POST,value="/topics")
  </code></pre>
  
  <p>}</p>
  
  <p>The error is coming in the last line ie last Requestmapping().</p>