“The Bean Validation API is on the classpath but no implementation could be found” preventing startup

前端 未结 3 1987
日久生厌
日久生厌 2021-02-19 08:32

I am using Spring Tool Suite to work with ReST services in Java. But at the very first point I am not able to start my first simple application. Please help. I am getting below

3条回答
  •  灰色年华
    2021-02-19 09:19

    Delete all files from /.m2/repository and try "maven --> install project.

    It seems that a file got corrupted. So in order to download the files correctly, try this procedure.

    It should not be required to add any other dependencies at all. 'web' injects the validators that are missing.

    Had the same issue here and it got solved by doing this procedure. You only need to do this once and then you will be good to go again. (sometimes - don't ask why - the local m2 repo gets corrupted).

    Hope it helps. Regards, Ivan

提交回复
热议问题