web

#web#

已有7人关注此标签

内容分类

xianyu

Waf对比咨询

阿里云的弹性web虚拟机和百度云的商务虚拟机相比,都带有waf功能,有用过的亲说说两者谁的性价比和防御最好

游客43ieegkethh7s

弹性 Web 托管还是EMAS适合做app后端服务?

弹性 Web 托管还是EMAS适合做app后端服务?

游客vbcowsavl3ld2

Android App在公司WiFi下访问部署在ECS的https API,经常连接超时

具体情况描述: 1.Android、iOS两个版本的App,Android访问部署阿里云ECS上的API经常出现超时的情况2.当Android访问API超时,马上通过手机的浏览器访问该ECS下的Web站点也不能访问 3.当Android访问API超时,马上关闭Wifi切换到4G、3G、2G网络,访问正常 4.Android App代码中设置 连接超时的时间为30s,读取数据的超时时间也为30s

china丶moli

求助php生成InitiateMultipartUpload中的SignatureValue

最近在研究web前端分片上传文件到oss,前面自己通过查阅资料成功写出过一个web前端上传到oss不是分片。是利用OSS的api PostObject 上传到oss 这个api 提交的时候需要提交policy和Signature这两个参数,我都通过php成功计算出来了但是分片上传的 api InitiateMultipartUpload 里面提到的 Authorization: SignatureValue 出现的这个SignatureValue我不知道该怎么通过PHP算出来InitiateMultipartUpload操作文档:https://help.aliyun.com/document_detail/31992.htmlAuthorization字段计算的方法:https://help.aliyun.com/document_detail/31951.html才接触到OSS,所以有点不懂,麻烦大家提供一下php计算Authorization字段计算的方法,或者指点一二谢谢大家了

国新

阿里云短信SDK报错“Content has not been provided”

代码如下: package com.airlook.service.sms.sender.impl; /** * @author guoxin * @since 2019-06-26 20:37 */ import com.aliyuncs.CommonRequest; import com.aliyuncs.CommonResponse; import com.aliyuncs.DefaultAcsClient; import com.aliyuncs.IAcsClient; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.http.MethodType; import com.aliyuncs.profile.DefaultProfile; /* pom.xml <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>4.0.3</version> </dependency> */ public class SendSms { public static void main(String[] args) { DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "<accessKeyId>", "<accessSecret>"); IAcsClient client = new DefaultAcsClient(profile); CommonRequest request = new CommonRequest(); request.setMethod(MethodType.POST); request.setDomain("dysmsapi.aliyuncs.com"); request.setVersion("2017-05-25"); request.setAction("SendSms"); request.putQueryParameter("RegionId", "cn-hangzhou"); request.putQueryParameter("PhoneNumbers", "18612130100,15765561564"); request.putQueryParameter("SignName", "空网科技"); request.putQueryParameter("TemplateCode", "SMS_127161463"); request.putQueryParameter("TemplateParam", "{ \"applyId\": \"12312321\" }"); request.putQueryParameter("OutId", "3123123123"); request.putQueryParameter("SmsUpExtendCode", "32131"); try { CommonResponse response = client.getCommonResponse(request); System.out.println(response.getData()); } catch (ServerException e) { e.printStackTrace(); } catch (ClientException e) { e.printStackTrace(); } } } <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>4.0.3</version> </dependency> 错误信息(log) java.lang.IllegalStateException: Content has not been provided at org.apache.http.util.Asserts.check(Asserts.java:34) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:75) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.entity.BasicHttpEntity.writeTo(BasicHttpEntity.java:112) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.impl.execchain.RequestEntityProxy.writeTo(RequestEntityProxy.java:121) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) ~[httpcore-4.4.10.jar!/:4.4.10] at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.6.jar!/:4.5.6] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.6.jar!/:4.5.6] at com.aliyuncs.http.clients.ApacheHttpClient.syncInvoke(ApacheHttpClient.java:246) ~[aliyun-java-sdk-core-4.0.1.jar!/:?] at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:272) ~[aliyun-java-sdk-core-4.0.1.jar!/:?] at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:209) ~[aliyun-java-sdk-core-4.0.1.jar!/:?] at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:93) ~[aliyun-java-sdk-core-4.0.1.jar!/:?] at com.aliyuncs.DefaultAcsClient.getCommonResponse(DefaultAcsClient.java:167) ~[aliyun-java-sdk-core-4.0.1.jar!/:?] at com.xxx.service.sms.sender.AbstractAliyunSmsSender.send(AbstractAliyunSmsSender.java:75) ~[airlook-service-sms-service-1.0.0-SNAPSHOT.jar!/:?] at com.xxx.service.sms.sender.impl.AliYunBatchSmsSender.send(AliYunBatchSmsSender.java:20) ~[airlook-service-sms-service-1.0.0-SNAPSHOT.jar!/:?] at com.xxx.service.sms.service.impl.NotificationSmsSendService.send(NotificationSmsSendService.java:42) ~[airlook-service-sms-service-1.0.0-SNAPSHOT.jar!/:?] at com.xxx.service.sms.service.impl.SmsServiceImpl.send(SmsServiceImpl.java:54) ~[airlook-service-sms-service-1.0.0-SNAPSHOT.jar!/:?] at com.xxx.service.sms.controller.SmsSendController.send(SmsSendController.java:40) ~[classes!/:?] at com.xxx.service.sms.controller.SmsSendController $$ FastClassBySpringCGLIB $$ 3bd767cb.invoke(<generated>) ~[classes!/:?] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:55) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at com.xxx.service.sms.controller.SmsSendController $$ EnhancerBySpringCGLIB $$ da0bc8f2.send(<generated>) ~[classes!/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) ~[spring-webmvc-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) ~[druid-1.1.10.jar!/:1.1.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) ~[spring-boot-actuator-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) ~[spring-boot-actuator-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) ~[spring-boot-actuator-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.14.jar!/:9.0.14] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]

爱吴

社交app或者 web端 共用一套java后端

社交的java后端 对于 发来发去的消息 用什么做载体(或者 怎么处理 那些用户 发送的消息呢)当然希望满足 消息的不会丢失,redis还是什么队列呢,希望各位大佬指教

博奥智学

为啥我的弹性web托管访问速度那么慢

打开网站和切换页面我觉得得有差不多5-6秒长的话10多秒有时候还打不开,这是怎么回事啊

凝望

阿里云ECS网站访问速度慢是什么原因?

我的网站放在阿里云华东的服务器上,但是最近检测访问速度都发现比较慢不知道是什么问题,买了两台服务器,一台在香港一台在华东区域,两台服务器的访问速度都比较慢,其中jk.found5.com的网站放在香港的服务器,而web.found5.com和www.found5.com是放在华东的服务器,但是这几个访问的访问速度都比较慢,不知道为什么?

大哥不抽烟

java程序员请教大神。

单位用着一款oa办公系统。web版,用java开发,最近空降来一位领导,领导说要把oa做成桌面版,类似于QQ的样子。想请教一下大神这怎么实现。用java能做吗?不会其他的开发语言…请求指教

zkgis

Web服务用啥语言?

Web服务用啥开发语言做比较合适?比如Java,C++?

bigdata_csq

cancel掉flink的任务会导致taskManager节点挂掉。

flink部署的是stand alone,在flink web UI上提交的任务(job 并行度2),进行cancel后会导致taskManager节点挂掉一个。在服务器上命令行用flink cancel jobID也是一样,会导致节点挂掉。

大国98

一个物联网云端平台需要哪些技术

借助阿里云物联网平台,实现出了设备端数据的上报,web可视化的简单开发。需要在做哪些内容才能实现出具有权限管理,报警,web展示等一系列功能的web项目呢。

四季化学

登陆网站后台页面居然报这种错误,这个怎么盘?

前天想进网站后台添加一些产品,输入后台页面链接,打开时时报错,看提示说是web.config里面的代码有问题,还有IIS配置啥的,技术方面自己也不懂,以前设计网站的人员现在也联系不上了。 由于买的阿里云的云虚拟主机于是提交了工单,他们回复说是代码有问题(关键是代码我看不懂啊!),我还说是不是IIS需要配置环境,因为我从网上也搜索相关问题了。但是阿里云的技术说是没法设置虚机环境。我们现在没有专门的网站技术人员维护,大家帮忙看看代码有什么问题,如何修改,还有其他解决办法吗?谢谢第一张是后台打开页面提示,第二张是web.config里面的源码

阿里云服务器用一键web安装包配置好无法通过ip访问,为什么??

阿里云服务器用一键web安装包配置好无法通过ip访问,为什么??我用xhell已经配置好服务器环境了,然后根据ip无法访问,为什么??(小白一枚,麻烦用亲民一点的语言解释...)参考资料https://www.cnblogs.com/chenxinshi/p/4503906.html

田义

Web应用防火墙在哪里删除

这个web应用防火墙在哪里删除啊

中间件小哥

19.轻量级分布式应用服务发布的应用,怎么登陆对应的服务器或者容器内查看具体问题?

轻量级分布式应用服务发布的应用,怎么登陆对应的服务器或者容器内查看具体问题?

xwaby

JAVA WEB 开发架构中的 Servlet 的作用是什么?

JAVA WEB 开发架构中的 Servlet 的作用是什么?

nicnic

不知道为什么在本地局域网上搭建的LINUX内的web服务访问不了!

在局域网中putty客户端可以连通linux主机,但是就是不明白为什么nginx服务就是在别的这台windows访问不了,直接用ip访问的,注意:windows连linux,linux能够远程但是就是web服务进不去,linux的防火墙关了,能ping通。windows端也关掉防火墙了,死活连不上。有没有人知道这是怎么回事。求解。