Closed sxcooler closed 5 years ago
支持的。 这种情况是因为修改了接口,需要修改版本号,以方便ServiceComb进行接口兼容管理。 可以参考这里的案例: https://bbs.huaweicloud.com/forum/thread-13931-1-1.html
@liubao68 多谢,这种情况1.0.0的时候遇到过,当时看到了提示,这次不知道为什么没看到,我在上面的log里搜索了看见了,抱歉。
您好 ,请问我也遇到同样的问题,我改怎么改我的配置呢? @RestSchema(schemaId = "index") @RestController public class IndexController {
@Autowired
private Environment env;
@GetMapping("/")
public String index() {
String[] profiles = env.getActiveProfiles();
if (profiles == null || profiles.length == 0) {
profiles = env.getDefaultProfiles();
}
String profileStr = "";
for (String profile : profiles) {
profileStr = profileStr + " " + profile;
}
return profileStr+"@lai2-cert";
}
}
谢谢谢谢!!!
我基于java-chassis 1.10 的springboot archetype建立了一个demo项目,修改HelloImpl的时候遇到当返回值是String的时候正常,返回List<某实体>或某实体时则报错。 我的pom
我的HelloImpl.java
这样的时候是正常的,但如果改成
就会报错:
改成
也类似 我看了https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints.html 以及https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/code-first.html 的文档,似乎应该是支持的啊?