title: Configure default Kotlin coroutine context in Spring MVC
body: <p>I need to configure default coroutine context for all requests in Spring MVC. For example <code>MDCContext</code> (similar question as <a href="https://stackoverflow.com/questions/63358233/is-there-a-way-to-modify-the-default-coroutine-context-created-by-spring">this</a> but for MVC not WebFlux).</p>
  <p>What I have tried</p>
  <ol>
  <li>Hook into Spring - the coroutine code is <a href="https://github.com/spring-projects/spring-framework/blob/main/spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java#L402" rel="nofollow noreferrer">here</a> but there is no way to change the default behavior (need to change <code>InvocableHandlerMethod.doInvoke</code> implementation)</li>
  <li>Use AOP - AOP and coroutines do not <a href="https://github.com/spring-projects/spring-framework/issues/22462" rel="nofollow noreferrer">play well together</a></li>
  </ol>
  <p>Any ideas?</p>