我正在使用Spring在Java上创建Selenium框架。 Spring配置文件可以被多个名称中的任何一个引用吗?这是有效的代码,因为它似乎有效但我找不到任何有关揭示真相的@Profile
注释的文档。这真的像'别名'机制一样吗?有谁知道我可以从哪里获得这些信息?
@Configuration
@Profile({ "ie", "iexplore", "internetExplorer" })
public class IEx64 {
...
这在我的框架中通过使用此参数执行测试来引用:
-Dspring.profiles.active=iexplore