spring-cloud

Upgrade from Spring Cloud Angel SR3 to Brixton M1 produces method not found error

*爱你&永不变心* 提交于 2019-12-11 18:32:39
问题 I updated from spring cloud Angel.SR3 to Brixton.M1 versions of spring cloud and suddenly I am getting a method not found error as follows: LARMITCH-M-700M:customerservice larrymitchell$ java -jar target/customerservice.jar java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java

where does the maven version get overridden?

久未见 提交于 2019-12-11 18:25:06
问题 I am building a spring boot starter, following the recommended convention with core / autoconfigure / starter module separation. When I look at the maven dependency-tree, this is what I have : [INFO] com.myDomain.myProject:myProject-starter:jar:1.0.8-SNAPSHOT [INFO] +- com.myDomain.myProject:myProject-autoconfigure:jar:1.0.8-SNAPSHOT:compile [INFO] | \- com.myDomain.myProject:myProject-core:jar:1.0.8-SNAPSHOT:compile [INFO] | +- io.github.openfeign:feign-gson:jar:9.5.1:compile [INFO] | | +-

Strange issue with spring-cloud-config-server with svn as repository

早过忘川 提交于 2019-12-11 18:05:37
问题 I am using spring-cloud-config-server with SVN as repository. When I start the cloud-config-server and client[microservice], configuration value is picked up properly. After changing a configuration value and SVN commit, I am firing refresh POST call, URL: http://localhost:8080/actuator/refresh [8080 is client port]. The updated value in SVN is not getting refreshed. It is known that config-server stores the SVN data locally.[In my case, folder location - /tmp/config-repo-5393789580706388886]

Spring Cloud Config Server configuration with local repository

邮差的信 提交于 2019-12-11 17:21:38
问题 I'm trying to set up Spring Cloud Config Server with backend repository (filesystem), but the endpoint( http://localhost:8888/licensingservice/default ) returns the following: {"name":"licensingservice","profiles":["default"],"label":null,"version":null,"state":null,"propertySources":[]} The Main: @EnableConfigServer @SpringBootApplication public class ConfigServerApplication { public static void main(String[] args) { SpringApplication.run(ConfigServerApplication.class, args); } } The

Alfresco Community OAuth2 SSO via CMIS

心不动则不痛 提交于 2019-12-11 17:06:40
问题 We are trying to implement SSO solution based on Spring Cloud microservices including separate Auth server. One of our services works with Alfresco through the CMIS client (Apache Chemistry). Having read lots of docs I still cannot find out how to make Alfresco check the Bearer "token" and login without password. I reviewed this solution but here is the idea of creating new people with predefined passwords. But Alfresco may be configured with LDAP (so is Auth server) - there's a good chance

Need help on Registering App on PCF with Spring Cloud Data Flow which is also on PCF

本小妞迷上赌 提交于 2019-12-11 17:05:13
问题 1) I have registered a sink app on PCF using cf push -p abcdef.jar sinkapp. it went good 2) Now I have my SCDF server also on PCF How can I register sinkapp on the SCDF server using dataflow which is on the same PCF , same org, same space. coz I have no clue what do I reference this to for registering it ? I am looking for the command that I can give to the SCDF from dataflow shell. Thank you. 回答1: I'd highly recommend going through the getting-started experience for Cloud Foundry. You should

Spring Cloud Streams Conditional Forwarding of Data to Kafka Topics

喜欢而已 提交于 2019-12-11 16:59:35
问题 I am trying to send Data to different topics based on some evaluation. I am using SPring CLoud Streams and Kafka How can I conditionally forward to kafka topics. I need to insert SCS-kafka related code in the places where I commented specifically. Thank you. @EnableBinding(Sink.class) public class SampleSink { private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired private SomeService someService; @ServiceActivator(inputChannel = Sink.INPUT) public void processor

SpringCloud -GateWay

别等时光非礼了梦想. 提交于 2019-12-11 16:28:46
一,简单的示例 入门 参考地址: http://www.ityouknow.com/spring-cloud 1.1 pom.xml 使用 Spring Cloud Finchley 版本,Finchley 版本依赖于 Spring Boot 2.0.6.RELEASE。 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> ​ <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Finchley.SR2</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> <

Make Spring Cloud app to wait for eureka clients to remove it before fully shutting down

余生颓废 提交于 2019-12-11 16:24:29
问题 We have an application that's receiving calls from other services that use Eureka to discover the different IP addresses of the different application instances/replicas. When deploying a new version of this app, our deployment system (kubernetes in our case) sends a SIGTERM to one of the instances of the application to shut it down. But the Eureka client in the services sending requests to the application, keeps a local cache of Eureka's information. Meaning that these applications won't

Spring Cloud Kubernetes + Spring Cloud Gateway: Unable to find instance for k8s service

 ̄綄美尐妖づ 提交于 2019-12-11 15:54:34
问题 I am using Spring Cloud Kubernetes + Spring Cloud Gateway(SCG) and I have some trouble to deploy my app on GKE. SCG does not find k8s service, I still get this error: There was an unexpected error (type=Service Unavailable, status=503). Unable to find instance for uiservice uiservice is Angular app. When I take a look at .../actuator/gateway/routes I have this result: [ { "route_id": "CompositeDiscoveryClient_gateway", "route_definition": { "id": "CompositeDiscoveryClient_gateway",