- 博客(36)
- 资源 (6)
- 问答 (1)
- 收藏
- 关注
原创 Ubuntu 16.04安装Nginx
Ubuntu 16.04安装Nginx在Ubuntu下安装Nginx有以下方法,但是如果想要安装最新版本的就必须下载源码包编译安装。一、基于APT源安装sudo apt-get install nginx安装好的文件位置(默认):/usr/sbin/nginx:主程序/etc/nginx:存放配置文件/usr/share/nginx:存放静态文件/var/log/nginx:...
2020-01-14 15:18:01
1750
原创 frp内网穿透
frp内网穿透frp下载地址https://github.com/fatedier/frp/releasesfrp_0.30.0_linux_amd64.tar.gzfrp_0.30.0_windows_amd64.zip说明文档https://github.com/fatedier/frp/blob/master/README_zh.md...
2020-01-14 15:05:42
266
转载 CentOS安装新版RabbitMQ解决Erlang 19.3版本依赖
通过yum等软件仓库都可以直接安装RabbitMQ,但版本一般都较为保守。RabbitMQ官网提供了新版的rpm包(http://www.rabbitmq.com/download.html),但是安装的时候会提示需要erlang版本>=19.3,然而默认yum仓库中的版本较低。其实RabbitMQ在github上有提供新的erlang包(https://github.com/rabbi...
2019-01-02 15:02:16
2059
原创 centos 系统使用verdaccio搭建npm私库
安装nodejsyum install -y nodejs2.安装verdaccionpm install -g verdaccio --unsafe-perm3.配置a.修改配置文件 config.yaml,在其最后添加监听端口(使其可在外网访问)listen: 0.0.0.0:4873b.对外开放4873端口firewall-cmd --state ...
2018-11-21 09:52:45
1062
转载 oss存储
前段时间公司让研究阿里云OSS,说计划会用起来。OSS就是一个阿里提供的在线存储服务,其实原先公司自己搭建的文件服务器也就能用,不过可能是为了以后的业务扩大着想,让提前研究使用了。OSS的基本概念他官网上有很多资料,我这里也就不再说了。研究了一整子,整理了一些方法,所以这里记录出来。本人是小白一枚,一下的知识竟可能的浅显,但也是我自己研究使用的思路,开始也没有找到一篇全面的使用手册,因为官方的SD
2017-03-08 21:22:14
10815
原创 获取一年中按星期归类(星期一、星期二...)所有日期
public static Map> getDatesByWeek(){ Calendar c_begin = new GregorianCalendar(); Calendar c_end = new GregorianCalendar(); DateFormatSymbols dfs = new DateFormatSymbols(); Strin
2016-12-09 16:23:48
4249
转载 定时器 时间配置
cron表达式详解Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Seconds Minutes Hours DayofMonth Month DayofWeek每一个域可出现的字符如下: S
2016-12-08 10:43:30
966
原创 java xml数字签名工具类
package test;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStream;import java.securi
2016-10-13 09:51:56
3971
原创 https封装工具类
packageimport java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import
2016-09-30 16:13:13
620
原创 pfx与jks互转
package import java.io.FileInputStream;import java.io.FileOutputStream;import java.security.Key;import java.security.KeyStore;import java.security.cert.Certificate;import java.util.Enumera
2016-09-30 16:11:30
1788
原创 xml数字签名
packageimport java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.FileWriter;import java.io.IOException;im
2016-09-30 16:09:57
1001
原创 关于高并发 悲观锁 乐观锁
1、考虑高并发,若不加锁,操作同一条数据会出现后一次更改覆盖前一次提交的数据,数据丢失;2、加锁分为乐观锁、悲观锁: 在hibernate情景下: 悲观锁的使用-----query.setLockMode("sysseq", LockMode.UPGRADE); // 加锁
2016-05-30 13:53:36
872
原创 缓存策略
一、客户端浏览器缓存1、基于springmvc框架在rest.xml中配置缓存拦截器 失效时间 附:http://www.iteye.com/topic/1121788;2、基于HttpServletRespons
2016-05-19 17:00:26
390
转载 hibernate缓存机制详细分析 复制代码
您可以通过点击 右下角 的按钮 来对文章内容作出评价, 也可以通过左下方的 关注按钮 来关注我的博客的最新动态。 如果文章内容对您有帮助, 不要忘记点击右下角的 推荐按钮 来支持一下哦 如果您对文章内容有任何疑问, 可以通过评论或发邮件的方式联系我: 501395377@qq.com / lzp501395377@gmail.com如果需要转载,请注明出处,谢谢!!在本篇
2016-05-19 15:50:47
222
原创 oscache 页面缓存的轻松实现
1、web.xml配置 cacheFilter com.opensymphony.oscache.web.filter.CacheFilter scope application time
2016-05-19 10:42:54
421
原创 Quartz
xml配置 xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http
2016-05-01 16:08:24
336
原创 redis安装
1.1.1. Windows(64位)下安装Redis方法一:双击打开redis-server.exe方法二:将Redis注册为系统服务1.1.1. 启动后内容快照文件1.1.1. Redis启动出错由于上述的文件太大导致:
2016-05-01 12:15:59
281
原创 富文本编辑器
引入js依赖页面引用itemAddForm "> 商品描述: 通过JS生成编辑器var itemAddEditor ;$(function(){ itemA
2016-04-30 15:21:52
528
原创 nginx反向代理
1.1.1. 使用nginx Nginx的三个命令: 打开CMD进入到nginx的目录执行以下命令:启动:start nginx.exe停止:nginx.exe -s stop重新加载:nginx.exe -s reload 判断nginx是否启动成功:只有进程数等于2时才是启动成功: 启动失败的原因:1、80端口被其他程序占用
2016-04-30 14:57:58
205
原创 java定时器
package timerService;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.text.SimpleDateFormat;import java.util.Date;public c
2016-04-24 13:37:36
379
原创 hibernate在crud时拦截
步骤一、hibernate.xml配置 p:excludeFilter="${hibernate.sessionFactory.excludeFilter:}"> 步骤二、package net.***.modules.core
2016-04-22 16:25:45
285
转载 JSON压缩:JSONMinify
JSON压缩:JSONMinify JSONMinify 2014-04-01 17:23:16 发布您的评价: 3.5 0收藏JSONMinify 移除了 JSON 或者 JSON+C(JSON+C = JSON with comments) 文档中的所有空白和注释,实现对 JSO
2016-04-21 17:10:52
8080
原创 解决跨域请求
web.xml corsFilter net.iclassmate.weike.webapp.filter.CORSFilter encoding utf-8 corsFilter
2016-04-21 16:51:42
339
原创 jquery插件实现文件上传
pageEncoding="UTF-8"%>Insert title here $(function(){ //上传图片 $("#btnUpload").click(function() { alert(ajaxFileUpload()); }); }); $.ajaxFileUpload(
2016-04-21 15:05:51
286
原创 jquery实现文件页面表单提交
pageEncoding="UTF-8"%>Insert title here function UpladFile() { var fileObj = document.getElementById("file").files[0]; // 获取文件对象 var FileController = "http://192.168.23
2016-04-21 14:47:47
504
转载 mysql存储过程详解
脚本之家软件下载源码下载在线工具网页教程基础服务器常用软件手机版关注微信网页制作网络编程脚本专栏脚本下载数据库CMS教程电子书籍平面设计媒体动画操作系统网站运营网络安全在线手册MsSqlMysqlmariadboracleDB2mssql2008mssql2005SQLi
2016-04-21 12:32:27
523
原创 jsf - javax.validation.ConstraintViolationException
springmvc+spring+hibernate解决jsf - javax.validation.ConstraintViolationException在hibernate propeties配置javax.persistence.validation.mode">none完美解决!!!
2016-04-19 09:28:06
2069
原创 SpringMVCRest post delete请求转换
步骤:1、在web.xml中增加转换过滤 HttpMethodFilter org.springframework.web.filter.HttpPutFormContentFilter HttpMethodFilter /rest/*
2016-04-18 13:00:20
454
原创 ExcelUtils 工具类
package test;import java.io.IOException;import java.io.InputStream;import java.text.SimpleDateFormat;import java.util.Date;import java.util.HashMap;import java.util.List;import java.ut
2016-04-18 12:57:24
1106
原创 BeanUtils工具类
package net.iclassmate.modules.util;import java.beans.PropertyDescriptor;import java.io.Serializable;import java.lang.reflect.Field;import java.util.ArrayList;import java.util.Arrays;imp
2016-04-18 12:56:02
1129
原创 时长累加
@Test public void testTime() throws ParseException{ /* Calendar calendar = Calendar.getInstance(); Date date = new Date(System.currentTimeMillis()); SimpleDateF
2016-04-18 11:31:49
432
转载 The user specified as a definer (”@’%') does not exist完美解决方法
The user specified as a definer (”@’%') does not exist完美解决方法发表回复在给一个客户做电商项目实施的时候,mysql数据库报错The user specified as a definer (”@’%') does not exist。尝试过两种方式,第一种重启之后好用,但是一会就又不好用了。第二种算是一种完美的解决方法。此种报错
2016-04-12 15:33:03
2594
转载 HibernateSearch
创建实体类既然目的是为了展示软件应用,那么首当其冲的实体类就是App类了,现在我们将它定义成下面这样,拥有4个字段:id:主键信息name:App的名字description:App的介绍image:App图片的链接@Entitypublicclass App { @Id @GeneratedValue private Long
2016-04-09 10:01:11
4787
2
原创 SpringMVC 下载
@RestControllerpublic class DownLoadController { @Autowired private FileService fileService; @Autowired private ResourceService resourceService; /** * 下载微课附件 *
2016-04-09 09:58:55
304
转载 SpringMVC 上传下载(1)
1 package com.augurit.agcom.rest; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOutputStream; 5 import java.io.File; 6 import java.io.FileInputStream; 7 import ja
2016-04-09 09:57:56
447
frp内网穿透.md
2020-01-14
java https双向认证请求 报 bad_certificate
2016-10-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人