1
RequestContextHolder.currentRequestAttributes().request
對性能有什麼影響嗎?我知道這是不好的訪問服務方法內的請求,但我真的需要它。因此,如果我每個請求撥打RequestContextHolder.currentRequestAttributes().request
20-30次,是否會降低性能?可以在生產中使用RequestContextHolder.currentRequestAttributes()。request嗎?