Ne pouvez pas obtenir Feindre Client de travailler pour un exemple de base

Ne pouvez pas obtenir Feindre Client pour travailler. Tout d'abord essayé avec la POSTE. Restent en cours d'exécution dans les erreurs liées à l'Encodeur/Décodeur dire le type n'est pas droit.
Ensuite trouvé un exemple sur github pour appeler GET simple API enfin et a décidé de donner un coup de feu.
Ne parvient toujours pas

Sur Github et en ligne, je suis de voir plusieurs versions de Feindre Client
Printemps-Cloud, OpenFeign, Netflix.feindre d'avoir des versions différentes.
Quelqu'un pourrait-il décrire ce qui est le meilleur et stable Feindre un seul client doit utiliser pour la production?

package com.paa.controllers;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient (name="test-service",url="https://www.reddit.com/r")
public interface GetFeignClient {

     @RequestMapping(method = RequestMethod.GET, value = "/java.json")
     public String posts();
}

Controller:

@RestController
@RequestMapping("/some/api")
public class TestWLCController {

  @Autowired
  private GetFeignClient getFeignClient;

  .. some stuff


    @RequestMapping(value="/postSomething",method = RequestMethod.POST)
    @ApiOperation(value = "Configures something",
            notes = "basic rest controller for testing feign")

    public ResponseEntity<SomeResponse> feignPost(
            UriComponentsBuilder builder,
            @ApiParam(name = "myRequest", 
            value = "request for configuring something", 
            required = true)
            @Valid @RequestBody SomeRequest someRequest) {

        String resp = null;
        try {
            resp = getFeignClient.posts();
        } catch (Exception er) {
            er.printStackTrace();
        }

    }
}

Application:

Essayé toutes les permutations possibles des annotations pensant qu'il allait résoudre AutoWire des trucs, mais ne parvient toujours pas

@Configuration
@ComponentScan
@EnableAutoConfiguration
//@EnableEurekaClient
@EnableFeignClients

//@SpringBootApplication
//@EnableFeignClients
//@EnableFeignClients(basePackages = {"com.paa.xenia.controllers", "com.paa.xenia.services"})
public class ServiceApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

        return application.sources(XeniaServiceApplication.class);
    }

    public static void main(String[] args) {

        SpringApplication.run(ServiceApplication.class, args);
    }
}

2016-07-20 18:15:42.406[0;39m [31mERROR[0;39m [35m32749[0;39m
[2m---[0;39m [2m[ principal][0;39m
[36mo.s.de démarrage.SpringApplication [0;39m [2m:[0;39m
Démarrage de l'Application a échoué

org.springframework.les haricots.usine.BeanCreationException: Erreur
la création de haricot avec le nom "testWLCController': Injection de autocâblés
dépendances a échoué; nested exception est
org.springframework.les haricots.usine.BeanCreationException: ne Peut pas
autowire domaine privé: com.aap.les contrôleurs.GetFeignClient
com.aap.les contrôleurs.TestWLCController.gfClient; nested exception est
org.springframework.les haricots.usine.BeanCreationException: Erreur
la création de haricot avec le nom " com.aa..contrôleurs.GetFeignClient':
L'interface factorybean jeté exception sur la création d'un objet; nested exception est
java.lang.NullPointerException à
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.les haricots.usine.de soutien.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.les haricots.usine.de soutien.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
~[printemps-contexte-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
~[printemps-contexte-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
~[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
org.springframework.de démarrage.SpringApplication.refresh(SpringApplication.java:766)
[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
org.springframework.de démarrage.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
org.springframework.de démarrage.SpringApplication.exécuter(SpringApplication.java:307)
[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
org.springframework.de démarrage.SpringApplication.exécuter(SpringApplication.java:1191)
[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
org.springframework.de démarrage.SpringApplication.exécuter(SpringApplication.java:1180)
[spring-boot-1.3.5.La LIBÉRATION.jar:1.3.5.LIBÉRATION]
com.aap.ServiceApplication.principale(ServiceApplication.java:44) [bin/:na]
Causés par: org.springframework.les haricots.usine.BeanCreationException:
Ne pouvait pas autowire domaine privé: com.aap.les contrôleurs.GetFeignClient
com.aap.les contrôleurs.TestWLCController.gfClient; nested exception est
org.springframework.les haricots.usine.BeanCreationException: Erreur
la création de haricot avec le nom " com.aap.les contrôleurs.GetFeignClient':
L'interface factorybean jeté exception sur la création d'un objet; nested exception est
java.lang.NullPointerException à
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.les haricots.usine.annotation.InjectionMetadata.injecter(InjectionMetadata.java:88)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.LIBÉRATION]
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
~[printemps-haricots-4.2.6.La LIBÉRATION.jar:4.2.6.COMMUNIQUÉ] ... 17 com.les n images
omis

OriginalL'auteur Rockoder | 2016-07-21