ThreadLocal - using as context information for REST API with spring-boot

前端 未结 4 1509
温柔的废话
温柔的废话 2021-01-26 09:00

I have some spring-boot application (it exposes rest api). The mentioned REST API is secured by spring-security. Everything is fine, however now I need

4条回答
  •  心在旅途
    2021-01-26 09:25

    it's single threaded unless you purposely initiate child threads. in such case use InheritableThreadLocal to store information.

提交回复
热议问题