Update javadoc

This commit is contained in:
Rossen Stoyanchev 2015-02-26 11:45:50 -05:00
parent 6b07c53c61
commit 2beca4d75e
1 changed files with 7 additions and 5 deletions

View File

@ -132,11 +132,13 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
} }
/** /**
* Register {@link org.springframework.web.bind.annotation.ControllerAdvice * Register one or more
* ControllerAdvice} instances to be used with this MockMvc instance. * {@link org.springframework.web.bind.annotation.ControllerAdvice
* <p>Normally {@code @ControllerAdvice} are auto-detected. However since the * ControllerAdvice} instances to be used in tests.
* standalone setup does not load Spring configuration they need to be * <p>Normally {@code @ControllerAdvice} are auto-detected as long as they're
* registered explicitly instead. * declared as Spring beans. However since the standalone setup does not load
* any Spring configuration they need to be registered explicitly here
* instead much like controllers.
* @since 4.2 * @since 4.2
*/ */
public StandaloneMockMvcBuilder setControllerAdvice(Object... controllerAdvice) { public StandaloneMockMvcBuilder setControllerAdvice(Object... controllerAdvice) {