Example usage for org.springframework.web.context.support StandardServletEnvironment JNDI_PROPERTY_SOURCE_NAME

List of usage examples for org.springframework.web.context.support StandardServletEnvironment JNDI_PROPERTY_SOURCE_NAME

Introduction

In this page you can find the example usage for org.springframework.web.context.support StandardServletEnvironment JNDI_PROPERTY_SOURCE_NAME.

Prototype

String JNDI_PROPERTY_SOURCE_NAME

To view the source code for org.springframework.web.context.support StandardServletEnvironment JNDI_PROPERTY_SOURCE_NAME.

Click Source Link

Document

JNDI property source name: .

Usage

From source file:org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor.java

private String findPropertySource(MutablePropertySources sources) {
    if (ClassUtils.isPresent(SERVLET_ENVIRONMENT_CLASS, null)
            && sources.contains(StandardServletEnvironment.JNDI_PROPERTY_SOURCE_NAME)) {
        return StandardServletEnvironment.JNDI_PROPERTY_SOURCE_NAME;

    }//from  w  ww  .  j ava 2 s.co  m
    return StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME;
}