mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-25 01:36:50 +08:00
Make MustacheViewResolver bean back off without Spring MVC
See gh-30456
This commit is contained in:
parent
05b7befc7a
commit
7101b5099f
@ -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;
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnWebApplication(type = Type.SERVLET)
|
||||
@ConditionalOnClass(MustacheViewResolver.class)
|
||||
class MustacheServletWebConfiguration {
|
||||
|
||||
@Bean
|
||||
|
Loading…
Reference in New Issue
Block a user