spring cloud config配置自动刷新
使用github webhook配置,Payload URL填的是: http://436d3d0b.ngrok.io/actuator/bus-refresh,当sprig cloud config配置文件修改后,自动刷新到各个服务,然后出现异常:
2018-05-14 10:49:47.291 WARN [config-server,5c61eb199497d9f9,5c61eb199497d9f9,false] 11248 --- [nio-8001-exec-8] .w.s.m.s.DefaultHandlerExceptionResolver : Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
at [Source: (PushbackInputStream); line: 1, column: 290] (through reference chain: java.util.LinkedHashMap["commits"])
使用curl命令可以正常刷新curl -X POST http://436d3d0b.ngrok.io/actuator/bus-refresh
求高手指点迷津!