- 浏览: 745036 次
- 性别:
- 来自: 重庆
-
最新评论
-
July01:
最近了解到一款StratoIO打印控件,功能如下:1、Html ...
LODOP插件开发 -
an52036:
u010980147 写道您的代码确实能生成条形码,但是打印出 ...
Java 条形码生成(一维条形码) -
di1984HIT:
学习了,很好~~
Ant 打包war 生成文件内容build.xml -
lhb319lhb:
如果 ajax(jquery)更新了 iframe 的 src ...
jquery 修改iframe src -
calosteward:
感谢楼主,除了一维条码,有没有相关二维码的资源呢?______ ...
Java 条形码生成(一维条形码)
文章列表
1)maven lib 文件
<dependency>
<groupId>ebaoquan.org</groupId>
<artifactId>themis</artifactId>
<version>2014V1</version>
<scope>system</scope>
<systemPath>
${project.basedir}/lib/themis-sdk-1.1.2.jar
</systemPat ...
原理
A(Xs,Ys)、B(Xd,Yd)
Xj = Xd - Xs
Yj = Yd - Ys
变量点
(a,b)鼠标点
a - Xj = x
b - Yj = y
1)html 文件
注意:position:fixed 是为了滚动固定
<div style="z-index: 300;position:fixed;left: 400px;top: 79px;border: 1px solid #ff3322;background-color: white;" id="uuuu"> JS拖动< ...
1)引入对应JS源码 jquery.simplePagination.js
/**
* simplePagination.js v1.6
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/
(function($ ...
Spring mvc Token
- 博客分类:
- Spring
request.getSession(false).setAttribute("tokenTzdr", UUID.randomUUID());
html 添加 内容
<input type="hidden" name="tokenTzdr" value="${tokenTzdr}" />
判断内容
Object tokenTzdrObj = request.getSession(false).getAttribute("tokenTzdr");
if ...
CAS 客户端与一般Web项目集成
- 博客分类:
- CoreJava
这一段时间有同事在问CAS -Client的问题这里就基本问分析一下
1)由于CAS-Server 登录后客户端会记入自动session中(部署WebApp-Server)
所以我们只需要获取对应的Principal 在获取其中的信息
2)根据Principal 注册登录
HttpServletResponse resp = (HttpServletResponse)response;
HttpSession session = req.getSession();
if (session != null) {
Object obj = session ...
CAS-项目集成问题整理
- 博客分类:
- CoreJava
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
是因为jre 中没有导入证书。一般是由于你的服务器/开发机,有多个JRE
CAS 与Tomcat 集成
- 博客分类:
- CoreJava
第一节:生成证书
第一步:生成keystore注意【cn=www.xxx.com】这个一般为域名或者地址不同会出现no match dname
keytool -genkey -keyalg RSA -alias tomcatmycas -dname "cn=localhost" -storepass 123456 -keystore f:\api\keyserver.keystore
第二步:导出证书
keytool -export -alias tomcatmycas -file D:\Java\jdk1.7.0_71\jre\lib\sec ...
MySql表的数据量查询
- 博客分类:
- Software Manager
SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'mbb'
windwos 进和商品查询
- 博客分类:
- Windows
1) 根据端口 “443”
netstat -aon |findstr "443"
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 9860
TCP 127.0.0.1:5905 127.0.0.1:49443 ESTABLISHED 2276
TCP 127.0.0.1:49443 127.0.0.1:5905 ESTABLISHED 2276
TCP [::]:443 ...
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %p [%c] - <%m>%n</pattern>
</encoder> ...
1)查询锁表问题
show open tables where in_use > 0
2)解除所有锁
unlock tables
3)锁表
lock tables data_map READ
excel 导出文件中文问题
- 博客分类:
- CoreJava
package com.tzdr.common.utils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.lang.reflect. ...
maven 添加外部包
- 博客分类:
- maven3
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd&quo ...
easyui selectRecord 选中行
- 博客分类:
- WebUi
1) 表格datagrid
只要加入idField = "id" 刷新后依然是选中状态
<table id="dg001" class="easyui-datagrid" toolbar="#dg001Toolbar"
width="100%"
url="${ctx}/admin/rechargeReview/listData" idField="id" pagination=& ...
easyui queryParam 自动化
- 博客分类:
- WebUi
/**
* @author LiuQing
*/
function Check() {
};
Check.messageBox = function messageBox(title,bodyText,type) {
if (!type || type == "") {
type = "info"
}
$.messager.alert(title,bodyText,type);
};
/**
* 查询语句
* @param gridId String
* @param formId String
...