Skip to content

Commit

Permalink
Make MustacheViewResolver bean back off without Spring MVC
Browse files Browse the repository at this point in the history
  • Loading branch information
candrews authored and wilkinsona committed Mar 30, 2022
1 parent 05b7bef commit 7101b50
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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;
Expand All @@ -29,6 +30,7 @@

@Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication(type = Type.SERVLET)
@ConditionalOnClass(MustacheViewResolver.class)
class MustacheServletWebConfiguration {

@Bean
Expand Down

0 comments on commit 7101b50

Please sign in to comment.