public class SpringProfileSpecificNameResolver
extends java.lang.Object
Constructor and Description |
---|
SpringProfileSpecificNameResolver(javax.servlet.ServletContext servletContext) |
SpringProfileSpecificNameResolver(java.lang.String activeProfiles) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getDerivedNames(java.lang.String baseName)
Returns a list containing the given base name and then one derived name for each active profile,
e.g.
|
public SpringProfileSpecificNameResolver(javax.servlet.ServletContext servletContext)
public SpringProfileSpecificNameResolver(java.lang.String activeProfiles)
public java.util.List<java.lang.String> getDerivedNames(java.lang.String baseName)
app.properties
base name and dev,foo
active profiles the result will be:
classpath:com/company/demo/app.properties classpath:com/company/demo/dev-app.properties classpath:com/company/demo/foo-app.properties