Skip to content
Advertisement

EnableConfigServer cannot be resolved to a type

I want to connect my spring cloud config server by adding @EnableConfigServer but getting error that EnableConfigServer cannot be resolved to a type. Already check the application.properties, name, git repository path and i also already try to clean the project still gettin same error.I cant view localhost:8888/limits-service/default.Please help me

This my pom.xml

JavaScript

Advertisement

Answer

You can try, as in here, to clean your local .m2 maven cache.

(rename it, to force maven to re-create a new m2 folder).
See if the dependencies are imported then.

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