|
@@ -10,9 +10,9 @@ public class ProducerTest {
|
|
|
public static void main(String[] args) {
|
|
|
Properties properties = new Properties();
|
|
|
// AccessKey 阿里云身份验证,在阿里云服务器管理控制台创建
|
|
|
- properties.put(PropertyKeyConst.AccessKey, "LTAImNZed054h0YV");
|
|
|
+ properties.put(PropertyKeyConst.AccessKey, "");
|
|
|
// SecretKey 阿里云身份验证,在阿里云服务器管理控制台创建
|
|
|
- properties.put(PropertyKeyConst.SecretKey, "8hmhlhiQ2ikmVeLKujwMNWsktFpSzm");
|
|
|
+ properties.put(PropertyKeyConst.SecretKey, "");
|
|
|
//设置发送超时时间,单位毫秒
|
|
|
properties.setProperty(PropertyKeyConst.SendMsgTimeoutMillis, "3000");
|
|
|
// 设置 TCP 接入域名,进入控制台的实例管理页面的“获取接入点信息”区域查看
|