Get Spring profile name with spring EL
问题 Consider a web based application with spring 4. The spring bean profiles is defined in web.xml like: <context-param> <param-name>spring.profiles.active</param-name> <param-value>prod,edb,cas</param-value> </context-param> Now consider a bean is defined in spring-applicaiton-context.xml as <util:properties id="myPolicy" location= "classpath:/configs/${ACCESS-ACTIVE-PROFILE-SECOND-ITEM}/my-policy.properties" /> Is it possible that I can access the list of active profiles and select the second