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:
@Controller
public class LexicalAnalysisController {
@CrossOrigin
@GetMapping(value = "api/LexicalAnalysis/test")
public String test(){
return "111";
}
}
Here is my javaScript code:
scan(){
this.$axios
.get('/LexicalAnalysis/test')
.then((response) => {
console.log(reponse.data);
})
.catch(failResponse =>{
})
}
Here is my error information:
So what's wrong? Thank you very much!
