ivyazmitinov / micronaut-request-scope-workaround

Example of workaround with ThreadLocal-like variables for Reactive controllers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

POC of ThreadLocal type of @Bean, propagated throughout Reactive Flow

Takes APP_NAME value from HTTP header and puts it into ReactiveThreadLocal variable.

Usage

Start app and curl to /test with APP_NAME header

About

Example of workaround with ThreadLocal-like variables for Reactive controllers


Languages

Language:Java 100.0%