V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  RedBeanIce  ›  全部回复第 7 页 / 共 54 页
回复总数  1075
1 ... 3  4  5  6  7  8  9  10  11  12 ... 54  
@rm0gang0rf 可能是因为习惯了,一至都是在 vscode 开发。

微信开发工具很像是 vscode ,但是总是差了一点东西。所以使用起来很尴尬。
审批流,是指 flowable 那些么。
友情提示,没有写预算。
164 天前
回复了 JinTianYi456 创建的主题 Java rpc 调用,通常怎么保证一致性?
@JinTianYi456
视具体业务而定

一般情况下,

假如要修改一条数据,,,第一次调用进行中,第二次调用,应该直接报错。
shein ?
闪电贷
招行,3.6 ,仅供参考
@Strive0630
注意 base64 加密,请百度
171 天前
回复了 cMoon 创建的主题 Java mybatisplus @TableName 注解中 excludeProperty 赋值问题
我不理解,,请问你可以再描述一下你的根本问题呢,请不要问 AB 问题。
因为 A 问题,问了 B 问题。

@tableName 描述的就是数据库的一个单表,为什么会存在父类的情况呢。
除非是公共字段,,,但是公共字段就是每张表都存在的。
172 天前
回复了 jgh004 创建的主题 广州 广州性文化节怎么报名看展?
@jgh004 60 元一张票。
@Strive0630

个人微信:MTgwMDA4NTU5MDM=
有过此种体验,非常清晰,
如果对 Amazon 后台操作有问题,可以联系我。
我是负责这一块的对接 Amazon 的开发人员。

但是能不能做这个问题,请自己想清楚,
176 天前
回复了 28painters 创建的主题 Linux RocketMQ 在线上使用需要多大的内存和 cpu?
@RedBeanIce 用的是 jar 包启动。
176 天前
回复了 28painters 创建的主题 Linux RocketMQ 在线上使用需要多大的内存和 cpu?
@oneisall8955 请问是用的 docker 么,,,我们 16 个 Java 的 springboot ,占了 20G 内存
@xiaokongwu

hhhh ,是我让你产生误解了。很抱歉。

最开始的时候,result 的处理在下面,,现在挪到上面去就好了,
@RedBeanIce

apache http ,,,伪代码
```
// 执行请求
CloseableHttpResponse response = httpClient.execute(post, new BasicHttpContext());
// 返回的状态 200 404 等等
int statusCode = response.getStatusLine().getStatusCode();

HttpEntity entity = response.getEntity();
if (entity != null) {
InputStream instream = entity.getContent();
result = IOUtils.toString(instream, StandardCharsets.UTF_8);
}
if (statusCode != 200) {
logger.info("request url failed, http code={}, url={}, result={}", response.getStatusLine().getStatusCode(), url, result);
return null;
}


result 里面就是,成功信息,或者是异常信息

```
@RedBeanIce

apache http ,,,伪代码
```
// 执行请求
CloseableHttpResponse response = httpClient.execute(post, new BasicHttpContext());
// 返回的状态 200 404 等等
int statusCode = response.getStatusLine().getStatusCode();
int statusCode = response.getStatusLine().getStatusCode();
HttpEntity entity = response.getEntity();
if (entity != null) {
InputStream instream = entity.getContent();
result = IOUtils.toString(instream, StandardCharsets.UTF_8);
}
if (statusCode != CONNCET_SUCCESS) {
logger.info("request url failed, http code={}, url={}, result={}", response.getStatusLine().getStatusCode(), url, result);
return null;
}
if (statusCode != 200) {
logger.info("request url failed, http code={}, url={}", response.getStatusLine().getStatusCode(), url);
return null;
}



```
@xiaokongwu

apache http ,,,伪代码
```
// 执行请求
CloseableHttpResponse response = httpClient.execute(post, new BasicHttpContext());
// 返回的状态 200 404 等等
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != 200) {
logger.info("request url failed, http code={}, url={}", response.getStatusLine().getStatusCode(), url);
return null;
}
```
如果像是上述代码获取,,则只能获取到 bad request


报错都在日志打印里面,org.apache.http.wire ,carrier 字段有问题
1 ... 3  4  5  6  7  8  9  10  11  12 ... 54  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2617 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
Developed with CodeLauncher
♥ Do have faith in what you're doing.