I am having the class UriComponentsContributor in my classpath. But in run time it throwing java.lang.NoClassDefFoundError exception

I added spring-hateoas 0.1.0.RELEASE dependency in my build.gradle file and i am having all required dependencies.

dependencies{
compile group: 'org.springframework.hateoas', name: 'spring-hateoas', version: '0.1.0.RELEASE'
}

I am expecting that spring boot application should run without run time exceptions

This is the exception I'm seeing:

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/hateoas/mvc/UriComponentsContributor

0 Answers