Marked @Profile as @Documented
(cherry picked from commit e812b6c)
Consistent use of Class<?>
(cherry picked from commit 091712d)
AnnotationConfigWebApplicationContext allows for repeated register/scan calls

Restoring consistency with AnnotationConfigApplicationContext.

Issue: SPR-10852
(cherry picked from commit 01b8d93)