Browse Source

Make MustacheViewResolver bean back off without Spring MVC

See gh-30456
pull/30505/head
Craig Andrews 4 years ago committed by Andy Wilkinson
parent
commit
7101b5099f
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheServletWebConfiguration.java

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheServletWebConfiguration.java

@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.mustache; @@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.mustache;
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.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
@ -29,6 +30,7 @@ import org.springframework.core.Ordered; @@ -29,6 +30,7 @@ import org.springframework.core.Ordered;
@Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication(type = Type.SERVLET)
@ConditionalOnClass(MustacheViewResolver.class)
class MustacheServletWebConfiguration {
@Bean

Loading…
Cancel
Save