tx-lcn icon indicating copy to clipboard operation
tx-lcn copied to clipboard

tx-lcn 5.0.2.RELEASE版本不支持RestTemplate这种形式调用接口吗,我测试这种形式调用接口的时候发生错误时不会回滚

Open yahuishi opened this issue 6 years ago • 2 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

1. Bug Description

2. Environment:

  • JDK version:
  • OS:
  • TX-LCN version:
  • Others:

3. Exception Stacktrace

Paste your Exception Stacktrace here!

4. Tour Idea

yahuishi avatar Oct 16 '19 09:10 yahuishi

解决了吗? 遇到同样的问题,group id 没有带过去

hairongwang avatar Oct 28 '19 03:10 hairongwang

@Autowired RestTemplateRequestInterceptor restTemplateRequestInterceptor;

@Bean @LoadBalanced public RestTemplate restTemplate( HttpMessageConverters fastJsonHttpMessageConverters) { RestTemplate restTemplate = new RestTemplate( fastJsonHttpMessageConverters.getConverters()); restTemplate.setInterceptors(Collections.singletonList(restTemplateRequestInterceptor)); return restTemplate; }

xiongxiong-op avatar Jan 16 '20 07:01 xiongxiong-op