org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication Java Examples
The following examples show how to use
org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OghamThymeleafV3Configuration.java From ogham with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(ThymeleafContextConverter.class) @ConditionalOnNotWebApplication public ThymeleafContextConverter springStandaloneThymeleafContextConverter( StaticVariablesProvider staticVariablesProvider, ThymeleafEvaluationContextProvider thymeleafEvaluationContextProvider, ContextMerger contextMerger) { return springThymeleafContextConverter(staticVariablesProvider, thymeleafEvaluationContextProvider, contextMerger); }
Example #2
Source File: OghamThymeleafV2Configuration.java From ogham with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(ThymeleafContextConverter.class) @ConditionalOnNotWebApplication public ThymeleafContextConverter springStandaloneThymeleafContextConverter( StaticVariablesProvider staticVariablesProvider, ThymeleafEvaluationContextProvider thymeleafEvaluationContextProvider, ContextMerger contextMerger) { return springThymeleafContextConverter(staticVariablesProvider, thymeleafEvaluationContextProvider, contextMerger); }
Example #3
Source File: BasicHasorConfiguration.java From hasor with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnNotWebApplication public AppContext normalAppContext(ApplicationContext applicationContext) { return this.createAppContext(null, applicationContext); }