此时我有以下要素类:
@ContextConfiguration(classes = MainApplication.class, loader = SpringApplicationContextLoader.class)
@IntegrationTest
@WebAppConfiguration
public abstract class AbstractFeature {
protected RestTemplate restTemplate = new TestRestTemplate();
@Value("${testing.server}")
protected String url;
public URI getURI(String endpoint) {
return URI.create("http://" + url + endpoint);
}
}
Run Code Online (Sandbox Code Playgroud)
这是我所有要素类的基础,使用 spring boot 和黄瓜 jvm。在这里,我还执行了一个本地服务器以对其进行测试。
是否有可能基于 spring 配置文件 [远程,本地],仅当“本地”配置文件处于活动状态时才执行本地服务器?也许使用某种依赖注入?
在我当前使用提供的注释的实现中,本地服务器总是被执行,即使在“远程”配置文件上,我使用配置文件将 testing.server url 更改为远程的。
是否可以通过相同的AQL查询查询几个有效(具有索引速度)的集合是这些边缘或文档集合中的一些?我想使用边缘在表上的RDBM上或多或少地模拟外键的行为.
感谢名单