title: Spring Boot GetMapping 404
body: <p>I'm studying Java Spring Boot. But my get request always return 404, but my post request could succeed. I'm so confused.
  Here is my Java code:</p>
  <pre><code>@Controller
  public class LexicalAnalysisController {
  
  
      @CrossOrigin 
      @GetMapping(value = &quot;api/LexicalAnalysis/test&quot;)
      public String test(){
          return &quot;111&quot;;
      }
  
  
  }
  </code></pre>
  <p>Here is my javaScript code:</p>
  <pre><code>scan(){
          this.$axios
            .get('/LexicalAnalysis/test')
            .then((response) =&gt; {
              console.log(reponse.data);
            })
            
            .catch(failResponse =&gt;{
  
            })
          
        }
  </code></pre>
  <p>Here is my error information:</p>
  <p><a href="https://i.stack.imgur.com/6iWw5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6iWw5.png" alt="enter image description here" /></a></p>
  <p>So what's wrong? Thank you very much!</p>