You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnClass.java
+7-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2017 the original author or authors.
2
+
* Copyright 2012-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -26,6 +26,12 @@
26
26
27
27
/**
28
28
* {@link Conditional} that only matches when the specified classes are on the classpath.
29
+
* <p>
30
+
* A {@link #value()} can be safely specified on {@code @Configuration} classes as the
31
+
* annotation metadata is parsed by using ASM before the class is loaded. Extra care is
32
+
* required when placed on {@code @Bean} methods, consider isolating the condition in a
33
+
* separate {@code Configuration} class, in particular if the return type of the method
34
+
* matches the {@link #value target of the condition}.
0 commit comments