Recently I was working with some code which defined beans as request scope. Junit tests failed with the following exception while trying to initialize the application context:
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: …; nested exception is java.lang.IllegalStateException: No Scope registered for scope ‘request’
I found the solution by searching around (unfortunately I didn’t record the [...]

