自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

cocosun

好好生活

  • 博客(65)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

原创 log4j2.xml

【代码】log4j2.xml。

2023-12-28 15:30:40 370

原创 Linux+Nginx+Php环境

2.重启php systemctl restart php-fpm。重启php systemctl restart php-fpm。7.更改配置文件中的 listen = /run/php-fpm/8.查看所有端口9000是否启动 netstat -tunlp。3. 查看php是否在运行 ps -ef|grep php。4.进入php目录 cd /etc/php-fpm.d。5.更改php 配置文件 vim www.conf。10.更改nginx配置文件。9.查看php配置文件。

2023-07-11 20:42:28 549

原创 nginx配置https

【代码】nginx配置https。

2022-08-25 10:53:15 132 1

原创 sql server 分页公用

USE [db_xsfaceDev]GO/****** Object: StoredProcedure [dbo].[SP_Pager] Script Date: 04/12/2022 17:52:51 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER proc [dbo].[SP_Pager]@tableName varchar(64), --分页表名@columns varchar(512), --需要.

2022-04-12 18:10:20 308

原创 h5页面自动调整iframe高度

<script type="text/javascript" th:inline="javascript"> //根据浏览器大小调整iframe高度 reSetSize(); window.onresize = reSetSize; function reSetSize() { var windowsHeight = window.innerHeight; document.getElementById('content').s.

2022-04-12 18:06:20 357

原创 bootstrap表格导出

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>表格导出</title> <!--jquery--> <script src="https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js"></script> <!--bo.

2022-04-12 18:05:36 1238

原创 java上传图片至文件服务器工具类

引入jar <!-- 文件传输 --> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> <version>1.19.4</version> </dependency&

2021-11-19 14:27:39 95

原创 socket短连接,数据交互报文采用XML形式

socket 服务端一直等待客户端 public void threadServer() { // TODO Auto-generated method stub class ServerThread extends Thread { Socket socket = null; public ServerThread(Socket socket) { this.socket = soc.

2021-11-12 16:00:26 1356

原创 vue安装store 报错‘options’ is defind but never used

在package.json rules 添加,原因是因为项目中安装了eslint校验

2021-08-17 15:40:12 267

原创 node下载安装以及配置

下载地址:https://nodejs.org/zh-cn/download/查看是否安装以及查看全局包存放位置更改全局包安装位置npm config set prefix "D:\node\node_global"npm config set cache "D:\node\node_cache"安装vue-cli手脚架npm install @vue/cli -g全局包的安装路径配置在环境变量里...

2021-08-16 14:26:57 89

原创 springboot项目打包(war)后tomcat运行无法访问404错误

看了他的文章,记录一下https://www.cnblogs.com/skyxia/p/10023745.html

2021-08-11 09:54:37 149

原创 刷新Bootstrap-table 底部Page

因为需求是不刷新表格实时追加最新数据prepend往第一行追加_table.bootstrapTable("prepend", value);

2021-06-12 10:32:03 186

原创 mybatis调用sqlserver存储过程返回结果集

第一种:返回值通过out输出 sqlserver存储testMapper.xmlserviceImpl Map<String,String> objectsMap = new HashMap<>(); objectsMap.put("sno","123"); objectsMap.put("sname","123"); testMapper.test(objec...

2021-05-06 12:07:00 1832 8

原创 微信公众号服务器配置token验证失败

@RequestMapping("tokenCheck") public void authServer(HttpServletRequest request, HttpServletResponse response) throws Exception{ // 微信加密签名 String signature = request.getParameter("signature"); // 时间戳 String timestamp = request.getParameter("ti...

2021-04-21 17:04:48 423

原创 bootstrap-fileinput批量上传图片及后台代码

引入css,js文件<link th:href="@{/static/assets/js/plugins/bootstrap-fileinput/css/fileinput.css}" rel="stylesheet"><script th:src="@{/static/assets/js/plugins/bootstrap-fileinput/js/fileinput.js}"></script<script th:src="@{/static/assets.

2021-04-10 09:50:13 890

原创 laydate设置时分秒23:59:59

laydate说明文档:https://www.layui.com/laydate/ laydate.render({ elem: '#endDate' , type: 'datetime' , btns: ['clear', 'confirm'] , trigger: 'click' , ready: function (date) { $(".layui-laydate-footer [lay.

2021-04-08 15:41:50 602

原创 Window服务器下tomcat占用cpu排查

使用工具process explorer:Windows系统和应用程序监视工具。(自行百度下载)操作步骤双击打开监控工具---tomcat的pid为7372双击打开tomcat进程,得到占用CPU高的线程ID为4360和6904进入jdk,cmd使用jstack将tomcat进程中的堆栈信息输出到文件使用命令:jstack -l [PID] >> [file]如: PID为tomcat的PIDjstack -l 7372 >> D:/1.

2021-03-08 14:57:32 538

原创 tomcat运行项目报错 org.apache.catalina.LifecycleException: Failed to start component

删掉tomcat配置文件server.xml底下的<Context docBase ="XXX" path ="/XXX" debug ="0" reloadable ="true"/>

2021-03-05 14:49:39 166 1

原创 RabbitMQ登录遇到问题:User can only log in via localhost

解决问题:找到这个文件rabbit.app/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin/rabbit.app将:{loopback_users, [<<”guest”>>]},改为:{loopback_users, []},原因:rabbitmq从3.3.0开始禁止使用guest/guest权限通过除localhost外的访问另外请求不能用本机ip要用localhost...

2021-01-12 11:56:24 523

原创 微信公众平台-网页获取用户openid (snsapi_base静默方式)

前端测试页面<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><h1>132132132</h1><button onclick="test()">点击测试获取</button><scri.

2020-12-09 16:42:24 1359

原创 springboot启动后自动执行方法

CommandLineRunner接口是在容器启动成功后的最后一步回调(类似开机自启动)。@Order注解(属性指定数字越小表示优先级越高@Order(1)@Componentpublic class SocketClientApi implements CommandLineRunner { public void test() { System.out.println("测试...."; } /** * 项目运行自启动 * .

2020-11-18 16:53:06 271

原创 xml转JSONObject

/** * xml转json * * @param xmlData * @return * @author: fanyuke * @date 2019年4月3日下午6:00:29 */ public static JSONObject XmlReturnJson(String xmlData) { if (xmlData.length() < 1) { return JSONO...

2020-11-18 16:43:09 797

原创 bootstrap-treeview

html <div class="col-sm-4"> <div class="ibox float-e-margins"> <div class="row"> <div class="col-sm-12"> <div class="ibox float-e-margins">

2020-11-10 09:26:44 267

转载 文件上传时出现 Processing of multipart/form-data request failed. Unexpected EOF read on the socket错误

原因:上传时的正常流程是:form提交,action得到上传文件流,然后保存到服务器。成功后才能刷新上传页面,提前刷新或者关闭上传页面都会导致上传数据中断,导致上传失败!实际上我使用AJAX时,当我请求servlet处理上传事件之时,没有上传整个文件就立即给出响应,所以servlet需要等待直到文件上传完成。记录一下是这个原因报的错,但时用的OpenCV+ java 用async:false太慢了...

2020-09-27 17:57:12 1880

转载 windows server中opencv运行过程中MF.dll/MFReadWrite.dll/MFPlat.DLL文件丢失问题解决

windows server 2008/2012 使用opencv出现 DLL load failed错误,发现缺失部分dll:MFPlat.dll、MF.dll、MFReadWrite.dll等等,原因:服务器版本默认没有安装windows media player。1、解决方法1:使用如下步骤安装windows media player:1)、打开“服务器管理器”;2)、依次单击“功能” →“添加功能”;3)、勾选“桌面体验”和“优质Windows音频视频体验”;4)、单击“安装..

2020-09-27 17:52:04 1424 2

原创 Win10搭建Apache 文件服务器

<Directory "D:\Apache\httpd-upload"> Dav On AllowOverride none # Options FollowSymLinks # 浏览器访问不显示文件列表/目录,隐藏文件列表 Options All # 在浏览器显示文件列表/目录 Order allow,deny Allow from all Require all granted</Directory>D:\Apache\htt..

2020-09-22 17:56:38 304

转载 excel多工作表合并成一个工作表

按【Alt】+【F11】 然后找到工具栏上面的“运行”下的“运行子过程/用户窗体” sub 合并当前目录下所有工作簿的全部工作表() dim mypath, myname, awbname dim wb as workbook, wbn as string dim g as long dim num as long dim box as string application.screenupdating = false mypath = activeworkbook.pa...

2020-08-27 16:39:07 145

转载 springboot项目运行在tomcat7中报过的错 ==

1.java.lang.NoClassDefFoundError: javax/el/ELManager <dependency> <groupId>javax.el</groupId> <artifactId>javax.el-api</artifactId> <version>3.0.0</version> </depe

2020-08-14 17:01:30 186

原创 apache-maven-3.6.0配置文件settings.xml

<?xml version="1.0" encoding="UTF-8"?><!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work for additional informationregarding copyright ownersh.

2020-08-08 17:17:49 817

原创 ‘List「Map「String, Object」」 到 List「T」 数据转换‘

/** * List<Map<String, Object>> 到 List<T> 数据转换 */ public static <T> List<T> setList(List<Map<String, Object>> srcList, Class<T> clazz) { List<T> list = new ArrayList<>(); ..

2020-07-11 11:09:47 607 2

原创 The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml

项目在eclipse运行正常,idea运行报错运行显示的异常:原因:这个问题是taglib指定的uri找不到导致的(仅供参考)解决办法:下载JSTL1.2,直接将解压出来的tld文件放到WEB-INF下,或者放到WEB-INF下的新建文件夹中即可...

2020-07-08 17:59:50 908 3

转载 SpringBoot 解决跨域请求问题 No Access-Control-Allow-Origin header is...

(1)我们可以直接在相应的请求方法上添加@CrossOrigin注解,那么该方法则支持跨域。@RestControllerpublic class WebAPIController { @Autowired DeviceDataManager deviceDataManager; @GetMapping("/getDeviceDatas") @CrossOrigin public List<DeviceData> getDeviceData..

2020-06-24 17:49:37 1098

转载 @responseBody注解的使用

@responseBody注解的使用1、  @responseBody注解的作用是将controller的方法返回的对象通过适当的转换器转换为指定的格式之后,写入到response对象的body区,通常用来返回JSON数据或者是XML  数据,需要注意的呢,在使用此注解之后不会再走试图处理器,而是直接将数据写入到输入流中,他的效果等同于通过response对象输出指定格式的数据。2、    @RequestMapping("/login")  @ResponseBody  publi

2020-06-10 11:53:32 210

原创 jquery得到项目路径

<script type="text/javascript" th:inline="javascript"> /*<![CDATA[*/ var contextPath = [[@{/}]]; /*]]>*/</script>

2020-05-27 14:55:25 700

原创 判断当前页面是否是顶层页面

跳转至顶层页面top.location.href=contextPath + 'index';判断当前页面是否是顶层页面 //当不在顶级窗口时跳转 if(top!= self){ top.location.href=contextPath + 'index'; }

2020-05-27 14:51:58 1086

原创 springboot自定义配置文件读取到常量类

1.配置文件application.properties#本地测试路径#file.server.path=http://www.XXXX.cn:8080/upload/# Windows 写入磁盘路径win.file.disk.path=C://upload/img/#本地测试路径#win.file.disk.path=E://upload/images/# linux 写入磁盘路径linux.file.disk.path=/home/yema/upload/2.定义常量类注意

2020-05-15 17:25:38 1174

转载 label与checkbox上下对齐

将checkbox和label的样式都设置vertical-align:middle就行了 <label style="vertical-align:middle;">选中:</label> <input type="checkbox" class="check" name="status" checked="true" checked="checked" style="margin-top: -2px;zoom: 180%;vertical-align:middle;"

2020-05-12 10:06:12 978

原创 bootstrap插件FileInput文件上传 百度ocr文字识别提取

js,css <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js">&lt...

2020-05-08 16:35:01 360

原创 java图片上传服务器返回访问地址

application.xml#单个数据的大小multipart.maxFileSize=10Mb#总数据的大小multipart.maxRequestSize=10Mb#文件上传目录(window是d/e/f盘, linux是/)(注意Linux和Windows上的目录结构不同)linux.file.uploadFolder=/window.file.uploadFolder=...

2020-04-30 14:41:58 1755 7

原创 springfox-swagger(swagger2)+Springboot

1.下载jar包(spring-boot-starter-parent版本2.1.3.RELEASE) <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artif...

2020-04-21 16:38:17 883 4

bootstrap-fileinput.zip

文件上传

2021-04-10

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除