Skip to content
Advertisement

I have an error but dependencies include in gradle root and gradle module config, why?

I have root config gradle.build

JavaScript

and have build.gradle in module

JavaScript

After download dependencies and add in models annotations like @Entity, @Table @Id and etc. i have an error: cannot find symbol @Entity ^ symbol: class Entity But i have spring-boot-starter-jpa in dependencies, i don’t know why in module i can’t use dependencies.

Advertisement

Answer

With dependencyManagement you only manage dependencies like version, overrides etc. you don’t actually add dependencies to a project. For that use dependencies like you use in the other places.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement