Skip to content

Commit 3001478

Browse files
committed
Merge branch '1.5.x'
2 parents ad3a141 + dbaaf2a commit 3001478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public FreeMarkerConfigurationFactoryBean freeMarkerConfiguration() {
130130
}
131131

132132
@Configuration
133-
@ConditionalOnClass(Servlet.class)
133+
@ConditionalOnClass({ Servlet.class, FreeMarkerConfigurer.class })
134134
@ConditionalOnWebApplication(type = Type.SERVLET)
135135
public static class FreeMarkerWebConfiguration extends FreeMarkerConfiguration {
136136

0 commit comments

Comments
 (0)