- 浏览: 185202 次
- 性别:
- 来自: 北京
-
最新评论
-
itace:
toBeNumberOne123 写道请问楼主有后台代码吗? ...
文件图片上传Bootstrap Fileinput -
toBeNumberOne123:
请问楼主有后台代码吗?
文件图片上传Bootstrap Fileinput
文章列表
微信支付回调参数获取及回调Url通知签名失败问题
- 博客分类:
- 微信支付
微信支付,apache-commons
InputStream input = request.getInputStream();
String content = IOUtils.toString(input);
Map<String, String> params = WXPayUtil.xmlToMap(content);
回调地址中签名失败:isPayResultNotifySignatureValid,返回false
但是isResponseSignatureValid,返回true
isPayResultNotifySignatureV ...
使用开源google.zxing
依赖jar包:core-3.3.1.jar,javase-3.3.1.jar
http://mvnrepository.com/artifact/com.google.zxing/core/3.3.1
http://mvnrepository.com/artifact/com.google.zxing/javase/3.3.1
public class QRCodeUtil {
/**
* 生成二维码
* @param outputStream
* @param content
* @param size
...
js页面是否是屏幕显示页面
- 博客分类:
- js
转载
//--------------------------这个页面是否在当前屏幕显示
function isShowing(){
var hiddenProperty = 'hidden' in document ? 'hidden' :
'webkitHidden' in document ? 'webkitHidden' :
'mozHidden' in document ? 'mozHidden' :
null;
var visibilityChangeEvent = h ...
tomcat的server.xml中docBase必须是绝对地址(如下错误),否则会引起多个session,两次执行定时器的问题。
<Context path="" docBase="hello" debug="0" reloadable="false" />
转:https://www.cnblogs.com/skyblue/p/3296350.html
http://www.quartz-scheduler.org/api/previous_versions/2.0.2/org/quartz/CronTrigger.html
The public interface for inspecting settings specific to a CronTrigger, . which is used to fire a Job at given moments in time, defined with Unix 'cron-li ...
参考:https://www.apieye.com/674.html
$.getScript()调用某些门户网站提供的ip地址、地区、天气等需要客户浏览器访问的js接口时,https协议无法调用http的js接口
解决方案: (去掉http:)
如:
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
改为
<script src="//code.jquery.com/jquery-1.11.0.min.js&q ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ pat ...
页面跳转时才会退出,要主动退出,需要js的定时心跳包
//userid=httpsession
public static Map<Integer, HttpSession> USERID_SESSIONS = new ConcurrentHashMap<Integer, HttpSession>();
public static void addLoginUser(HttpServletRequest request,Map<String, Object> user){
//退出之前的session
...
WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the ...
Tomcat SSL配置 Connector attribute SSLCertificateFile must be defined when using SSL with APR解决
protocol的值由"HTTP/1.1"改为"org.apache.coyote.http11.Http11Protocol"
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled=" ...
转自:http://blog.csdn.net/liu857279611/article/details/70157012
package me.gacl.websocket;
import java.io.IOException;
import java.util.concurrent.CopyOnWriteArraySet;
import javax.websocket.*;
import javax.websocket.server.ServerEndpoint;
/**
* @ServerEndpoint 注解是一个类层次的注解,它的功能主要是将 ...
http://nginx.org/en/download.html
下载稳定版
解压运行nginx.exe(闪一下就没有了,并没有打开命令行窗口)
任务管理器里面会有两个nginx.exe
打开http://127.0.0.1
修改conf/nginx.conf,proxy_pass的url后面要加/(不加不是根目录)
server_name localhost:8080;
location / {
#root html;
#in ...
logback
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="true" scanPeriod="1 seconds">
<contextName>logback</contextName>
<!--
<property name="log.path" value=" ...
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion ...
JSP拿不到属性值,显示${name},而不是hello字符串,因为jsp,servlet版本问题
两种解决方式:
1.在JSP页面的上方加入一个标签,开启EL表达式
<%@ page isELIgnored="false"%>
2.在web.xml中更改引用,使用servlet3.1.0版本
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst ...