Spring Boot Controller not mapping

前端 未结 9 1621
慢半拍i
慢半拍i 2021-02-05 02:55

I have used STS and now I am using IntelliJ Ultimate Edition but I am still getting the same output. My controller is not getting mapped thus showing 404 error. I am completely

9条回答
  •  感动是毒
    2021-02-05 03:11

    In my case, it was missing the dependency from pom.xml, otherwise everything compiled just fine. The 404 and missing mappings info from Spring logs were the only hints.

        
            org.springframework.boot
            spring-boot-starter-web
        
    

提交回复
热议问题