ITeye博客

2016 年文章归档

共 22 篇文章

java mysql 通用aes加密算法

import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; /** * java使用AES加密解密 AES-128-ECB加密 * 与mysql数据库aes加密算法通用 * 数据库aes加密解密 * -- 加密 * SELECT to_base64(AES_ENCRYPT('www.gowhere.so','jkl;POIU1234++==')); * -- 解密 * SELECT AES_DE…

2016-12-20 17:01 · java · Java · MySQL

maven-assembly-plugin

Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project mpush-boot: Error reading assemblies: No assembly descriptors found

2016-10-09 10:02 · maven

加载数据库配置信息到spring容器中

package com.sf.wop.common.util; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanInitializationEx…

2016-08-25 15:50 · java · Java

easyui动态增加的表单,如何让表单验证起作用

//初始化表单中的验证器 $('input[type!="hidden"],select,textarea',$('#addKpiruleScoreForm')).each(function(){ $(this).validatebox(); }); easyui动态增加的表单,如何让表单验证起作用

2016-08-22 11:32 · easyui · easyui

easyui datagrid 查询会请求两次解决方法

window.onSearchKpiScores = function(){ var options = $('#kpiScoreDatagrid').datagrid('options'); options.url = contextPath + queryUrl; options.queryParams = $('#queryForm').serializeJson(); $('#kpiScoreDatagrid').datagrid(options); //$('#kpiScoreDatagrid').datagrid({url:contextPath + queryUrl}); //…

2016-08-22 11:26 · easyui · easyui

struts2注解json返回多个对象

/** * 验证得分规则 * @return */ @ActionDef(type = ActionType.PRIVATE) @Action(value = "verificationConditions", results = { @Result(type = "json", params = { "includeProperties", "success,msg" }) }) public String verificationConditions() { String[] itemConditions = ServletActionContext.getRequest().getPa…

2016-08-19 10:58 · struts2 · Struts

借助数据库行级锁实现每天001,002这样的自增序号

-- 流水号自增表创建 DROP TABLE IF EXISTS code_date_sequence; CREATE TABLE code_date_sequence ( code_date VARCHAR(255) not null comment '日期字符串yyMMdd格式', code_type varchar(255) not NULL COMMENT '业务类型 通常是生成业务序号的前缀', sequence_no BIGINT not NULL COMMENT '序列号', UNIQUE KEY PK_date_code (code_date,code_type) ) ENG…

2016-08-19 10:57 · Java

DateUtil 工具类

package com.sf.wop.common.util; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import java.util.List; import …

2016-08-08 15:09

easyui datagrid 行的上下移动实现方式

<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Easyui datagrid 行上下移动</title> <link id="others_jquery_easyui_131" rel="stylesheet" type="text/css" class="library" href="/js/sandbox/jquery-easyui/themes/default/easyui.css"> <script id="jquery_…

2016-08-01 14:41 · easyui · easyui

PowerDesigner 给表统一增加默认字段(id,创建时间,创建人,修改时间,修改人)

将下面脚本粘贴到tools->execute commands->edit/run script里运行。 Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no current Model " ElseIf Not mdl.IsKindOf(PdPDM.cls_Model…

2016-07-18 18:24 · PowerDesigner · powerdesigner

揭秘吴孟达周星驰恩怨情仇

1989年,吴孟达与刚出道的周星驰合演《盖世豪侠》和《他来自江湖》,从此开始了长达十几年的亲密关系,两人还以“干父子”相称,可谓感情深厚,然而2004年周星驰开拍《功夫》时吴孟达被传与周星驰不和,使吴孟达再没有与周星驰合作。 周星驰和吴孟达是认识了20多年的老朋友,所以按照吴孟达的说法就是,他和周星驰已经彼此了解到不能再了解的程度了。吴孟达告诉记者,早在1980年的时候,他就和周星驰认识了,又因为一起拍摄《他来自江湖》,成了特别好的朋友。“这些年,有关周星驰的负面新闻越来越多,大家都说他性格古怪,不好相处,这些话不是完全没有道理的,但是实际上,这是周星驰对自己要求太高的表现,比如,他觉得很多…

2016-07-17 16:48

myeclipse6.5注册码生成工具 java代码

package ser; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998…

2016-07-16 14:19

win7 调用系统弹出框命令及如何引用当前时间

将下面命令放在dos下运行 msg %username% /time:15 The whole point to remind.it's time: %time%. dos命令弹出对话框---Msg命令详解 cmd下执行: :::在当前用户的桌面弹出一个对话框, 显示哈哈二字, 并且十秒后自动关闭 ::%usename%是系统环境变量, 表当前用户名 msg %username% /time:10 哈哈 ::表示向局域网中的192.168.1.100 ip的机子的所有用户(*)发送消息Hello, 当然也可以是自己的ip, 或者某一个具体用户名, 如xiao MSG /server:192.…

2016-07-08 14:36 · Windows

数据库停止在启动起来会卡在sql执行上

名称: RecoveryFileThread4 状态: RUNNABLE 总阻止数: 2, 总等待数: 10 堆栈跟踪: java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(SocketInputStream.java:116) java.net.SocketInputStream.read(SocketInputStream.java:170) java.net.SocketInputStream.read(SocketInputStream.java:141…

2016-07-01 11:24 · mysql

mysql 组合in查询优化,走索引写法

多个使用or拼接。 EXPLAIN SELECT rs.id id, rs.operatortime operatortime, rs.asnno asnno, rs.source source, rs.asnstatus asnstatus from tb_receipt_status rs where (asnno,source,asnstatus) in (('11111','FLWMS','22')) or (asnno,source,asnstatus) in (('22222','FLWMS','11')); 1SIMPLErsrangeunique_keyunique_key3…

2016-06-27 10:47 · mysql · MySQL

mysql创建和删除唯一约束

show keys from tb_receipt_status; show keys from tb_receipt_transaction; -- 入库状态表 alter table tb_receipt_status add unique key `unique_key`(asnno, source, asnstatus); -- 交易事务(收货明细) alter table tb_receipt_transaction add unique key `unique_key`(transactionid, source); -- 上架任务 alter table tb_tsk_task…

2016-06-01 21:02 · mysql · MySQL

easyui1.4日期选择控件datetimebox增加整10分选择功能

plugins 加入datetimebox_ten模块 plugins : ["draggable", "droppable", "resizable", "pagination", "tooltip", "linkbutton", "menu", "menubutton", "splitbutton", "progressbar", "tree", "textbox", "filebox", "combo", "combobox", "combotree", "combogrid", "numberbox", "validatebox", "searchbox", "spinner", "…

2016-05-27 14:55 · easyui datetimebox_ten · easyui

arc.archives.class.php

<?php if(!defined('DEDEINC')) exit("Request Error!"); /** * 文档类 * * @version $Id: arc.archives.class.php 4 15:13 2010年7月7日Z tianya $ * @package DedeCMS.Libraries * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecm…

2016-02-23 18:25 · PHP

php网页tag标签替换单元测试代码

<?php class TagReplaceApi{ public function tagReplace($content, $tags){//替换内容及所有tags $replaceArr = array(); $tagslength=count($tags); for($i=0; $i<$tagslength; $i++) { $content = $this -> tagReplaceContent($content, $tags[$i], $replaceArr, $i); } foreach($replaceArr as $key=>$value) { //echo "Key="…

2016-02-22 17:01 · php · PHP

webservice客户端代码编写

public class EmployeeInfoServiceFactory { private static EmployeeInfoService employeeInfoService; public static EmployeeInfoService getEmployeeInfoServiceInstance() { if(employeeInfoService == null) { JaxWsProxyFactoryBean factory= new JaxWsProxyFactoryBean(); factory.setServiceClass(EmployeeInfoSe…

2016-01-30 13:59 · webservice · WebService