Commit e806646
committed
Broaden ConditionalOnClass checks for Web MVC
Expand the @ConditionalOnClass list in ConditionalOnWebMvcAvailable to include ApplicationContext, WebApplicationInitializer and EnableWebMvcExtension alongside Servlet and DispatcherServlet. This makes the conditional check more robust by requiring presence of core Servlet API, Spring Context, Spring Web initializer, Spring Web MVC and the Microsphere Web MVC extension APIs. Also adds corresponding imports and switches the annotation to a multi-line value with explanatory comments.1 parent 9542a50 commit e806646
1 file changed
Lines changed: 10 additions & 1 deletion
File tree
- microsphere-spring-boot-webmvc/src/main/java/io/microsphere/spring/boot/webmvc/autoconfigure/condition
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
0 commit comments