spring-cloud

You have defined query method in the repository but you don't have any query lookup strategy defined

心不动则不痛 提交于 2019-12-11 15:42:21
问题 Yesterday this solution was working fine. Today I woke up to rerun the tests & it failed stating in the stacktrace that You have defined query method in the repository but you don't have any query lookup strategy defined. The infrastructure apparently does not support query methods! at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:533) As clearly shown I did not define any query methods. :-( I'm stuck, I

Error creating bean with name 'scopedTarget.oauth2ClientContext': Scope 'session' is not active for the current thread;

别等时光非礼了梦想. 提交于 2019-12-11 15:06:09
问题 First of all I want to say that I googled my problem and apllied the advice but it doesn't help me. My source look like this: @SpringBootApplication @EnableEurekaClient @RibbonClient(name = "say-hello"/*, configuration = RibbonConfig.class*/) @EnableAutoConfiguration @EnableOAuth2Sso public class HelloWorldStarter { public static void main(String[] args) { SpringApplication.run(HelloWorldStarter.class, args); } @Bean public RequestContextListener requestContextListener() { return new

Spring cloud Feign Client cant use @ModelAttribute?

感情迁移 提交于 2019-12-11 12:14:25
问题 How can i use @ModelAttribute with GET method of request @FeignClient("xx") interface UserService{ @RequestMapping(value="/users",method=GET) public List<User> findBy(@ModelAttribute User user); } userService.findBy(user); 来源: https://stackoverflow.com/questions/35456991/spring-cloud-feign-client-cant-use-modelattribute

Spring cloud config with Subversion backend

江枫思渺然 提交于 2019-12-11 11:35:38
问题 is this possible? What about Perforce? I would need to use one of these or a file based and check it in with the crontab or something. 回答1: It is certainly possible to implement SVN or Perforce. You would need to implement EnvironmentRepository. See JGitEnvironmentRepository for an example. See this question for working with local files: Spring Cloud Configuration Server not working with local properties file 回答2: I have been working on getting SVN as a backend working. There is support for

Which Java version is supported by Spring Cloud?

岁酱吖の 提交于 2019-12-11 11:24:14
问题 Under http://start.spring.io (Initializr) you can create a Spring Cloud application for Java 6. The Spring Boot reference documentation still gives the hint that Java 6 is supported: http://docs.spring.io/spring-boot/docs/1.2.2.RELEASE/reference/htmlsingle/#howto-use-java-6 I can compile the generated "Initializr" project with Java 6, but when I try to run the application on Java 6 I get the following UnsupportedClassVersionError: java.lang.reflect.InvocationTargetException at sun.reflect

How do I wire up spring oauth using spring eureka?

守給你的承諾、 提交于 2019-12-11 10:34:55
问题 I have created a Single Page Application using the Spring Tutorial for making one with AngularJS and OAuth and such found here: https://spring.io/guides/tutorials/spring-security-and-angular-js/#_multiple_ui_applications_and_a_gateway_single_page_application_with_spring_and_angular_js_part_vi This is the application.yml files for the SPA application: security: user: password: none oauth2: client: accessTokenUri: localhost:7777/uaa/oauth/token userAuthorizationUri: localhost:7777/uaa/oauth

micro-service: Zuul & consul require authentification

本秂侑毒 提交于 2019-12-11 10:33:44
问题 I'm trying to create a Spring cloud microservice application using Zuul and Consul. I have 2 components in my project: api-gateway microservice using Zuul Hello world microservice (a simple hello world Rest Webservice) Here is the code of The api-gateway: @SpringBootApplication @EnableZuulProxy @EnableDiscoveryClient public class ZuulApplication { public static void main(String[] args) { SpringApplication.run(ZuulApplication.class, args); } } The pom.xml <parent> <groupId>org.springframework

Getting Oracle 11.2 Unsupported Error when using Spring Cloud Data Flow 2.0.1

匆匆过客 提交于 2019-12-11 08:59:33
问题 I am trying to set up SCDF 2.x (Spring Cloud Data Flow) server, to register Spring Boot applications (e.g. Tasks type) , to leverage out of box administration and other capabilities. In setting up SCDF 2.x, was trying to connect to new 'dataflow' schema on Oracle 11.2 (for job registry), but upon starting the dataflow server from command line (with Oracle JDBC in classpath), getting below error. Any suggestions will be helpful to resolve (as we are tied to Oracle as enterprise supported. org

Spring Cloud AWS SQS SendTo annotation with property placeholder

老子叫甜甜 提交于 2019-12-11 08:37:15
问题 This issue suggests that the @SendTo annotation supports property placeholders, but I can't get it to work. Here's some simplified code snippets of what I'm trying to do (easier than trying to explain with words). I'm on spring-cloud-aws version 1.2.1. This works: @Component public class InputQueueListener { @Value("${replyQueueProperty}") private String replyQueue; @Autowired private QueueMessagingTemplate messagingTemplate; @SqsListener(value = "${inputQueueProperty}", deletionPolicy =

Provider org.springframework.cloud.cloudfoundry.CloudFoundryConnector could not be instantiated

戏子无情 提交于 2019-12-11 08:09:46
问题 I am working on a grails 2.5.3 app that will be deployed to cloudfoundry. The app is bound with few services and in order to get the values for those services I use two connectors: //s3 service connector compile ("org.cloudfoundry.community:spring-cloud-s3-service-connector:1.0.0") { excludes "aws-java-sdk", 'slf4j-api', 'slf4j-log4j12', 'slf4j' } //sso service connector compile (group: 'io.pivotal.spring.cloud', name: 'spring-cloud-sso-connector', version: '1.1.0.RELEASE') { excludes 'slf4j