pentest 渗透测试 nginx配置 场景:部分系统服务器端返回的HTTP头中,泄露了服务器采用的中间件信息(类型,版本)nginx,apache,攻击者可以缩小攻击范围,针对中间件存在的漏洞发起攻击修改:ngixn/bin/nginx.conf中在http或者server中添加如下配置server_tokens off;...
使用Jenkins部署项目的时候报错: exec: “bin/bash“: stat /bin/bash: no such file or directory: unknown 1. 将这个命令:command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]改为:command: [ "/bin/sh", "-ce", "tail -f /dev/null" ]2. 使用命令进入容器时将命令:dockerexec -it containername /bin/bash改为:dockerexec -it containername /bin/sh例如:docker exec -it promet...
一、实例变量和类变量的属性 1. 使用static修饰的成员变量是类变量,属于该类本身;没有使用static修饰的成员变量是实例变量,属于该类的实例。在同一个JVM中,每个类只对应一个Class对象,但是每个类可以有多
getOutputStream() has already been called for this response //读取图片输出到页面InputStream inputStream = application.getResourceAsStream("imgPath");BufferedImage image = ImageIO.read(inputStream);OutputStream outputStream = response.getOutputStream();ImageIO.write(image,"jpg",outputStrream);outputStream.close();
maven项目配置在打war包时将项目外jar包打到war包中 在plugins标签下面添加如下配置 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> ...
文件上传事件兼容性解决方案:兼容ie和谷歌 在使用vue的做文件上传的时候,发现IE11兼容性有问题,无法打开文件选择器。现解决方案如下var event;console.log("typeof (Event)=============>" + typeof (Event));if (typeof (Event) === 'function') {//google chrome event = document.createEvent("MouseEvents"); event.initEvent("click", f.
VUE前后端分离调用api报跨域问题 错误信息:Access to XMLHttpRequest at '服务器地址' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
WebSphere创建删除概要文件、忘记密码 一、创建概要文件1、 ./manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default2、开始-程序-IBM WebSphere-Application Server-Profile M...
eclipse、idea安装阿里云代码规范插件 一、插件源码地址:https://github.com/alibaba/p3c?spm=5176.10731542.0.0.481c52bbmDrzkc二、eclipse离线安装 Alibaba Java Coding guide1、下载zip包地址:https://p3c.alibaba.com/plugin/eclipse/update 点击蓝色字体: Zip File 下载离线安装包2、打开eclipse,在顶部菜单栏选择Help->Install...
springboot+activiti报错:java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExce Springboot2项目启动时遇到异常:Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxyError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-05-11 22:00:43.234
Maven依赖插件maven-dependency-plugin 从svn上拉取下来的项目pom.xml文件中一直报错:源文件如图:将phase的值修改为package即可插件目标(goals)标签说明:1、analyze:分析项目依赖,确定哪些是已使用已声明的,哪些是已使用未声明的,哪些是未使用已声明的2、analyze-dep-mgt:分析项目依赖,列出已解析的依赖项与dependencyManagement中定义的依赖项不匹配的部...
eclipse导入项目报错:Failed to load JavaHL Library. eclipse导入maven项目报错解决方案:Window-Preferences-Team-SVN,在SVN接口的下拉框可以看到,默认选择的是JavaHL(JNI) Not Available,手动更改为SVNKit(Pure Java) SVNKit v1.8.12.10533修改前:修改后:...
idea运行junit单元测试报错:java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing "C:\Program Files\Java\jdk1.8.0_152\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\soft\Idea 2019\IntelliJ IDEA Community Edition 2019.2\lib\idea_rt.jar=49991:C:\soft\Idea 20...
初学Mybatis 官网地址:https://mybatis.org/mybatis-3/1、准备开发环境pom.xml文件引入所需要的jar包:mybatis jar包:<dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId>...
dubbo直接代码下使用multicast组播注册中心报错:No provider available for the service 服务端代码:public class DubboMulticastServer { public static void main(String[] args) throws IOException { //应用配置 ApplicationConfig applicationConfig = new ApplicationConfig(); ...
RocketMQ 错误:The broker does not support consumer to filter message by SQL92 这个是由于broker.conf配置导致的。一、单机情况下在broker.conf中添加:#支持sql92enablePropertyFilter=true集群情况下修改:broker-m.conf和broker-s.conf。然后重启broker即可。二、broker.conf核心配置#nameServer地址,如果nameserver是多台集群,中间需要使用;分割n...
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)原因总结 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),即在mybatis中mapper接口与mapper配置文件在做映射绑定的时候出现问题。简单得说就是接口与xml找不到或者是不匹配。1、检查xml文件所在package名称是否和Mapper interface所在包名匹配<ma...