问答详情
源自:2-1 构建Spring Boot 第一个demo

springboot2.0.1版本的,我加入web依赖时一直报以下错误,不知怎么解决

Description Resource Path Location Type Archive for required library: 'C:/Users/liuqing/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar' in project 'demo' cannot be read or is not a valid ZIP file demo Build path Build Path Problem

https://img1.mukewang.com/5acb36420001fe9312950071.jpg


提问者:罗小黑003 2018-04-09 17:45

个回答

  • DroganBrother
    2018-06-28 18:01:01

    这个一般都是依赖包下载过程中损坏或者下载不完整,需要删掉本地仓库对应的路径下的文件,然后重新update maven project:

    https://img2.mukewang.com/5b34b17d0001358b09460439.jpg

    https://img3.mukewang.com/5b34b1cc0001523208410705.jpg



  • BugMake
    2018-04-09 22:34:09

    jar包没办法正常解析,肯定是jar下载过程中损坏了,删掉jar包和依赖,然后重新配置依赖,重新下载一次就好了。