Unable to resolve class EnableZuulProxy when starting customer-stores-ui/app.groovy using Spring Boot CLI -
Unable to resolve class EnableZuulProxy when starting customer-stores-ui/app.groovy using Spring Boot CLI -
i'm quite new spring boot , spring cloud , trying start customer-stores example. got microservices running each time when seek start the ui with
spring run app.groovy
i next exception:
startup failed: file:/c:/workspace/git/customers-stores/customers-stores-ui/app.groovy: 1: unable resolve class enablezuulproxy , unable find class annotation @ line 1, column 1. @enablezuulproxy ^ 1 error
ok, seems missing dependency. don't have clue of how add together dependency. tried with:
@grab("org.springframework.cloud:spring-cloud-netflix-core:1.0.0.build-snapshot")
but doesn't alter anything. ideas? in advance.
some give-and-take here tends suggest there's windows platform issue "install" command, readme tells use.
this workaround works me on windows
$ gvm utilize springboot 1.1.5.release $ cat grabber.groovy @grab('org.springframework.cloud:spring-cloud-cli:1.0.0.m1') class app {} $ spring grab grabber.groovy $ find ./repository -name \*.jar -exec cp {} ~/.gvm/springboot/1.1.5.release/lib \;
then should have dependencies installed.
the @grab
version work if a) add together starter zuul, not bare core dependency, i.e.
@grab("org.springframework.cloud:spring-cloud-starter-zuul:1.0.0.build-snapshot")
and b) explicitly add together imports classes use.
spring-boot spring-cloud netflix-zuul
Comments
Post a Comment