Announcement Announcement Module
Collapse
No announcement yet.
org.springframework.web.bind.annotation cannot be resolved Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.springframework.web.bind.annotation cannot be resolved

    Hi I'm trying to build application in which spring is used and when I import package org.springframework.web.bind.annotation.RequestMap ping. I found error org.springframework.web.bind.annotation not resolved.

    Pl suggest.

    Thanks

  • #2
    Include the spring-web.jar and spring-webmvc.jar on your classpath.

    Comment


    • #3
      Hi,

      Thanks for reply.

      I include that jars in classpath but still getting same problem.

      Comment


      • #4
        Then I would recheck your classpath because it really is in the spring-webmvc.jar.

        Comment


        • #5
          After adding jars in classpath I explore to check but, I found after exploring spring-web.jar - org.springframework.web.bind not org.springframework.web.bind.annotation.RequestMap ping

          org.springframework.web.bind.(all is different and not getting annotation here)

          It not exiest in spring-mvc.jar

          Comment


          • #6
            I wasn;t alking about spring-web.jar but about spring-webmvc.jar.

            Comment


            • #7
              No it's not in spring-webmvc.jar

              Comment


              • #8
                Trust me it is.... (See attached screenshot).

                Comment


                • #9
                  Can u send me please spring-webmvc.jar from your system using my emailid

                  shobhit23@hotmail.com

                  or if possible by using skype:

                  ID: "shobhit.singh."

                  Comment


                  • #10
                    Simply download spring and it is there. That is how I did it so it shouldn't be any different from your case. You are using spring 2.5 aren't you?!

                    Comment


                    • #11
                      spring 1.2
                      I think that was the problem.

                      Comment


                      • #12
                        I used spring-1.2 which not introduces annotation.Now I am looking all in spring-2.5 whatever I couldn't get in old.

                        Regards,

                        Thanks

                        Comment

                        Working...
                        X