Skip to content

Conversation

wujimin
Copy link
Contributor

@wujimin wujimin commented Jun 13, 2017

JAV-92 create a pom profile to make demos can run by java -jar xxx.jar

mvn install -Pdemo-run-release
will create demo-bin directory in the root of java-chassis

wujimin 00202985 and others added 7 commits June 9, 2017 15:26
Login消息的请求应答中分别增加一个字段,表示是否支持标准的protobuf map编码
只有双方同时支持,才使用标准的protobuf map编码
否则,当作兼容场景,使用旧格式的编码

* 动态生成接口时,应该提供更友好的api

* Endpoint在consumer流程中使用时,增加目标实例信息

* 解决map直接作为body参数时,契约生成出错的问题

* 解决protostuff中map编码与protobuf不兼容的问题

先实现了功能,因为涉及兼容性,所以功能暂时不启用

* 删除grpc

* 删除lock部分不使用的代码

* 增加consumer对invocation context的设置支持

* 多个方法没有httpmethod、没有@path路径,生成契约成功但格式有误,应该报错提示

1.透明rpc模式,不需要设置path/http method,path分别是class名和method名,http method只能是POST
2.jaxrs模式:
	定义:class上有path标注
	method:
		标有http method的作为RESTful方法
		未标path,则作为class的默认operation,超过一个method不标path,则报错
	class/method上的path都为空,则报错
3.springmvc模式:
	定义:class上有RequestMapping标注
	method:
		标有RequestMapping的作为RESTful方法
		RequestMapping中未标path,则作为class的默认operation
			超过一个method不标path,则报错
		RequestMapping中未标http method,则使用 class上的RequestMapping的http method,如果仍然没有http method,则报错
	class/method上的path都为空,则报错

* cse内置log4j的配置文件独立规则,不影响用户级配置的优先级处理

默认在终端上输出日志

* 提供灰度发布能力

* SSL算法列表缺省去掉SHA

* 服务实现类在有的aop场景下,实例的父类不是原class,此时丢失了这个schame

* 增加一个接口多个Java实现类的支持

* optimized transport demo code by deleting unused code and highway

* demo中增加ResponseEntity携带Date的用例

* rest 入参支持text/plain格式

* 增强契约中的枚举处理

根据契约生成的class时,枚举名不变

* producer发现自己的契约列表与服务中心不匹配时打印error日志

* 改变consumer、swagger、producer参数映射的规则

不再使用参数名映射,而是根据参数顺序映射,取消对jdk8编译参数的依赖
允许consumer、swagger、producer类型不完全一致,只要求信息量一致,不一致时,自动转换(会损失性能,提升易用性)

* 透明rpc的生成契约规则与jaxrs、springmvc隔离

* 对于不支持接口、虚类这部分场景,应该直接报错提示

* 微服务被外界删除后,不应该继续使用原有的instanceId注册实例,可能会导致instanceId重复的问题

* transport与 cse-transport-rest-vertx / cse-provider-springmvc 存在依赖

* 支持容器部署功能:监听IP地址和注册中心注册的IP地址需要分别支持配置

* 可以显示的声明哪些接口作为外部接口发布

* 类中多个method上无@path路径,生成契约时应该报错提示
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 81.441% when pulling 044f7a3 on wujimin:demo-run-profile into 8771009 on ServiceComb:master.

.gitignore Outdated

# SVN metadata
.svn/
demo-bin
Copy link
Member

@WillemJiang WillemJiang Jun 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put the demo-bin into the target directory which is ignored by the git?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to root/demo/target

demo/pom.xml Outdated
<plugin>
<groupId>org.commonjava.maven.plugins</groupId>
<artifactId>directory-maven-plugin</artifactId>
<version>0.1</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the version numbers of the 3 plugins can be inherited from parent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed these versions

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.448% when pulling 10f8c1f on wujimin:demo-run-profile into 8771009 on ServiceComb:master.

@WillemJiang WillemJiang merged commit c1c3866 into apache:master Jun 13, 2017
@wujimin wujimin deleted the demo-run-profile branch June 16, 2017 17:03
@wujimin wujimin changed the title Demo run profile JAV-92 Demo run profile Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants