These are chat archives for spring-cloud/spring-cloud

17th
Aug 2017
JillWen
@JillWen
Aug 17 2017 08:56
Hi~I am a girl from China,and I just met some problems using spring.cloud Feign,the error message isrequired a bean of type 'org.springframework.cloud.netflix.feign.FeignContext' that could not be found.Is there anyone who can tell me how to fix it? Thanks a lot~
Andrew Fitzgerald
@fitzoh
Aug 17 2017 20:44
spring-cloud-vault question… Is there an easy way to use the token found in ~/.vault-token to authenticate with vault?
Spencer Gibb
@spencergibb
Aug 17 2017 20:55
@Aloren Netflix/zuul#351. This is also one of the reasons we are doing spring-cloud-gateway
@JillWen I'm afraid we'll need more than just that error.
@Fitzoh I don't know, maybe @mp911de knows
Andrew Fitzgerald
@fitzoh
Aug 17 2017 23:14
fun setTokenIfPresent() {
    val tokenFile = Paths.get(System.getProperty("user.home")).resolve(".vault-token").toFile()
    if (tokenFile.exists()) {
        System.setProperty("spring.cloud.vault.token", tokenFile.readText())
    }
}


fun main(args: Array<String>) {
    setTokenIfPresent()
    SpringApplication.run(MyApplication::class.java, *args)
}
I suppose that works