Make MustacheViewResolver bean back off without Spring MVC

See gh-30456
pull/30505/head
Craig Andrews 3 years ago committed by Andy Wilkinson
parent 05b7befc7a
commit 7101b5099f

@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.mustache;
import com.samskivert.mustache.Mustache.Compiler; import com.samskivert.mustache.Mustache.Compiler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
@ -29,6 +30,7 @@ import org.springframework.core.Ordered;
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication(type = Type.SERVLET) @ConditionalOnWebApplication(type = Type.SERVLET)
@ConditionalOnClass(MustacheViewResolver.class)
class MustacheServletWebConfiguration { class MustacheServletWebConfiguration {
@Bean @Bean

Loading…
Cancel
Save