some error while running spring mvc project

后端 未结 3 2031
闹比i
闹比i 2020-12-21 03:39

Springsource tool suite is the tool am using.

these are the errors..

>     Description   Resource    Path    Location    Type
>     Error occur         


        
相关标签:
3条回答
  • 2020-12-21 04:08

    I had the same problem. I fixed it changing my maven path of settings.xml in STS, it was on .m2 (in my user directory) and changed it for maven installation directory/conf/settings.xml

    The .m2 directory, was shared with Netbeans and other version of STS, when I create my first Spring MVC project with the newest version of STS, it doesn't work because of this. I suppose that Netbeans and the older version of STS did some kind of their configuration over this folder or installed some software that does not work with the new version of STS-Spring MVC project template.

    0 讨论(0)
  • 2020-12-21 04:10

    This means the jar files in your project class path are corrupt. Just delete the jar files and download them again.

    If you are using Maven:

    #delete repository
    rm -rf ~/.m2/repository/*
    
    #use maven
    mvn test
    

    This will delete all files in ~/.m2/repository/ first and then, mvn test will download all dependent jar files before building your project and running junit tests.

    Read more here: Maven:: Invalid CEN (bad signature) Invalid LOC (bad signature)

    0 讨论(0)
  • 2020-12-21 04:22

    see the error logs in eclipse, delete the corrupt jar folder and let maven install it again. This should solve the problem.

    0 讨论(0)
提交回复
热议问题