spring.profiles.active parameter to the JVM or by modifying the <beans profile="mysql"> to <beans profile="default,mysql"> in env.xml successfully# Configuration in this file is overridden by an external file# if any of these exist: # [$UAA_CONFIG_URL, $UAA_CONFIG_PATH/uaa.yml, $CLOUDFOUNDRY_CONFIG_PATH/uaa.yml]# Configuration in this file is overridden by an external file# if any of these exist: # [$UAA_CONFIG_URL, $UAA_CONFIG_PATH/uaa.yml, $CLOUDFOUNDRY_CONFIG_PATH/uaa.yml]
spring_profiles: mysql
database: driverClassName: org.mariadb.jdbc.Driver url: jdbc:mysql://localhost:3306/uaa username: root password: 1
scim: users: - admin|c1oudc0w|scim.write,scim.read,openidprivate Resource getResource(ServletContext servletContext, ConfigurableWebApplicationContext applicationContext, String locations) { Resource resource = null; String[] configFileLocations = locations == null ? DEFAULT_PROFILE_CONFIG_FILE_LOCATIONS : StringUtils .commaDelimitedListToStringArray(locations); for (String location : configFileLocations) { location = applicationContext.getEnvironment().resolvePlaceholders(location); servletContext.log("Testing for YAML resources at: " + location); resource = applicationContext.getResource(location); if (resource != null && resource.exists()) { break; } } return resource; }I changed "UAA/src/main/resources/uaa.yml" without moving it,and it appeared under target/classes directory.