最初,我从Spring Idea Tomcat Local Server configuration (一切正常)开始这个项目,但我决定使用IntelliJ Boot Application。我添加了主类changed pom.xml (删除spring-context并添加spring-boot-starter-parent、spring-boot、spring-boot-starter-tomcat、sp
for actual request parameters: ","path":"/api/createleave"}"
当我从@PostMapping注释中删除params参数时,我会得到一个更普遍的错误,它会说它找不到第一个必需的参数(start),而它实际上是与参数end、时数和用户名一起发送的。我在这篇文章中看到,@RequestParam只能用于get方法,但是如果我删除@RequestParam并坚持使用<