티스토리 뷰
jaxb parsing 중에 namespace 등의 문제로 pasring unmarshal이 안되는 문제가 발생함.
feign decoder 설정 중 아래와 같이 withNamespaceAware를 false로 설정함.
return new JAXBDecoder.Builder()
.withJAXBContextFactory(jaxbFactory)
.withNamespaceAware(false) // true by default
.build();
참고
https://github.com/OpenFeign/feign/pull/471/files/1c5f00121338e657d0013bfe5164b95dcb0dfb99
https://docs.oracle.com/javaee/7/api/javax/xml/bind/Unmarshaller.html
https://stackoverflow.com/questions/9909465/how-to-disable-dtd-fetching-using-jaxb2-0
반응형
댓글