Skip to content

Commit

Permalink
[bug] resolving memory-leak issue related to httpMessageConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
mosidev committed Sep 25, 2023
1 parent c003478 commit 8fb6762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public Decoder feignDecoder(HttpMessageConverter<Object> httpMessageConverter) {
public HttpMessageConverter<Object> httpMessageConverter(ObjectMapper objectMapper) {
MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter =
new MappingJackson2HttpMessageConverter(objectMapper);
messageConverters = () -> new HttpMessageConverters(mappingJackson2HttpMessageConverter);
HttpMessageConverters httpMessageConverters = new HttpMessageConverters(mappingJackson2HttpMessageConverter);
messageConverters = () -> httpMessageConverters;
return mappingJackson2HttpMessageConverter;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @since 1/22/2021
*/
public abstract class TosanWebServiceException extends Exception implements TosanWebServiceBaseException {
private static final long serialVersionUID = 7501000302649392364L;
private Map<String, Object> errorParam;
private String message;

Expand Down

0 comments on commit 8fb6762

Please sign in to comment.