【在 w**z 的大作中提到】 : we are moving services from PHP to Java. not going to mess up with PHP too : much.
w*z
13 楼
rest用HTTP, post用Json. php都有现成的HTTP client, 我们还用node 写了个 client lib, 我们所有的post JSON 都有固定的format, 统一了JSON format 剩下的就 是无脑加business logic, 所以我一个星期一个小service, 没问题。对了, 我们用 spring di inject datasource, Jackson parse Json, very powerful and easy. I guess that is what most people do.
【在 w**z 的大作中提到】 : we are moving services from PHP to Java. not going to mess up with PHP too : much.
w*z
26 楼
rest用HTTP, post用Json. php都有现成的HTTP client, 我们还用node 写了个 client lib, 我们所有的post JSON 都有固定的format, 统一了JSON format 剩下的就 是无脑加business logic, 所以我一个星期一个小service, 没问题。对了, 我们用 spring di inject datasource, Jackson parse Json, very powerful and easy. I guess that is what most people do.