汉字转拼音 名字转拼音 多音字姓名 http://my.oschina.net/u/1423640/blog/…
不静之心

分类:服务端
我的Activiti例子
Spring 与Activiti的入门整合 http://www.iteye.com/topic/113404…
Activiti: 各种状态的任务查询以及和业务对象关联
各种状态的任务查询以及和业务对象关联 http://www.kafeitu.me/activiti/2012/…
Activiti: 三种部署方式和几种启动方式
Activiti: 三种部署方式和几种启动方式 三种部署: 1.自动部署: <property name…
Activiti modeler 国际化要点
Activiti modeler 国际化要点 1. 界面文本:src/main/resources/stenc…
两篇整合Activiti Modeler到业务系统
两篇整合Activiti Modeler到业务系统 整合Activiti Modeler到业务系统(或BPM平…
Activiti5.12共22张表
Activiti5.12共22张表 (1)用户管理表 ACT_ID_GROUP; 说明:用户组信息ACT_ID…
Activiti: 关于表单的一些接口
Activiti: 关于表单的一些接口 获得流程启动的时候的表单信息 [crayon-688fe62e87ca…
Activiti5: TaskQuery查询API
Activiti5: TaskQuery查询API http://blog.csdn.net/iflow/ar…
第一个Activiti5.13 + Spring3.x例子
第一个Activiti5.13 + Spring3.x例子 参考: http://www.iteye.com/…
工作流Activiti的学习总结<转>
工作流Activiti的学习总结<转> 工作流Activiti的学习总结(一)安装条件以及各步骤的…
kft-activiti-demo: 部署记录
kft-activiti-demo: 部署记录 2.SpringMvc + Activiti + Hibern…
SSH 整合 Activiti
SSH 整合 Activiti 原文:http://blog.chinaunix.net/uid-118985…
Activiti BPM Platform工作流的一些资料
Activiti BPM Platform工作流的一些资料 Activiti官方: http://www.ac…
java代码获取系统时间相差8小时
java代码获取系统时间相差8小时 在catalina.sh中配置:JAVA_OPTS-Duse…
将JBPM5流程文件Flow File BPMN 2.0/BPMN (*.bpmn) 转换为 PNG(*.png) 图片文件的解决方案
将JBPM5流程文件Flow File BPMN 2.0/BPMN (*.bpmn) 转换为 PNG(*.pn…
JBPM5多数据源管理Bitronix和Atomikos
JBPM5多数据源管理Bitronix和Atomikos http://blog.csdn.net/taxue…
SpringMVC3.2.x + Hibernate4.2.x + ecache
SpringMVC3.2.x + Hibernate4.2.x + ecache 附件是源码 pom.xml …
JBPM5配置mysql持久化
JBPM5配置mysql持久化 http://blog.csdn.net/zhouyuqwert/articl…
如何运用php函数mkdir创建多级目录
如何运用php函数mkdir创建多级目录 http://developer.51cto.com/art/200…
字符串转换成UTF-8编码
字符串转换成UTF-8编码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Php代码 function strToUtf8($vector) { $from_chr = mb_detect_encoding ( $vector, array ( 'UTF-8', 'ASCII', 'EUC-CN', 'CP936', 'BIG-5', 'GB2312', 'GBK' ) ); if ($from_chr != "UTF-8") { $vector = mb_convert_encoding ( $vector, 'UTF-8', array ( 'UTF-8', 'ASCII', 'EUC-CN', 'CP936', 'BIG-5', 'GB2312', 'GBK' ) ); } return $vector; } |
ELResolver Escapes JSP EL Values To Prevent Cross-Site Scripting
JspFactory.getDefaultFactory()返回null的异常解决办法: unable to …
获取JAVA[WEB]项目相关路径的几种方法
获取JAVA[WEB]项目相关路径的几种方法 http://blog.csdn.net/yaerfeng/ar…
自定义标签与spring注入
自定义标签与spring注入 http://tcrct.iteye.com/blog/258657 在以往,我…
java中判断字符编码以及转码
java中判断字符编码以及转码 http://simlee.iteye.com/blog/431611 [cr…
Java Web Application 另类的国际化方式gettext – commons for Java
Java Web Application 另类的国际化方式gettext – commons fo…
Spring自定义注解
java自定义注解 http://my.oschina.net/OkSerIous/blog/402718 深…
WebApplicationUtils
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
package com.common; import javax.servlet.ServletContext; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.web.context.ServletContextAware; public class WebApplicationUtils implements ApplicationContextAware,ServletContextAware{ public static ApplicationContext applicationContext = null; public static ServletContext servletContext = null; private static SessionFactory factory; private static Session session; public static SessionFactory getFactory() { factory = (SessionFactory)WebApplicationUtils.getApplicationContext().getBean("sessionFactory"); return factory; } public static Session getSession() { session = getFactory().getCurrentSession(); return session; } public void setApplicationContext(ApplicationContext actx) throws BeansException { if(WebApplicationUtils.applicationContext==null){ WebApplicationUtils.applicationContext = actx; } } public void setServletContext(ServletContext sctx) { if(WebApplicationUtils.servletContext==null){ WebApplicationUtils.servletContext=sctx; } } public static ApplicationContext getApplicationContext() { return applicationContext; } public static ServletContext getServletContext() { return servletContext; } } |
Spring MVC注解方式service和controller的扫描顺序
Spring MVC注解方式service和controller的扫描顺序 获得WebApplicationC…
在web.xml中通过contextConfigLocation配置spring
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Jxml代码 <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:conf/spring/applicationContext_core*.xml, classpath*:conf/spring/applicationContext_dict*.xml, classpath*:conf/spring/applicationContext_hibernate.xml, classpath*:conf/spring/applicationContext_staff*.xml, classpath*:conf/spring/applicationContext_security.xml classpath*:conf/spring/applicationContext_modules*.xml classpath*:conf/spring/applicationContext_cti*.xml classpath*:conf/spring/applicationContext_apm*.xml </param-value> </context-param> |
contextConfigLocation …
SpringMVC3AndHibernate3 & springMVC集成DWR
SpringMVC3AndHibernate3 & springMVC集成DWR http://p…
Java基于Socket文件传输示例
Java基于Socket文件传输示例 原文:http://www.blogjava.net/sterning/…
java调用dos命令
java调用dos命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
package com; import java.io.BufferedReader; import java.io.InputStreamReader; public class CommonUtils { public static String exeCMD1(String cmd){ cmd = "cmd.exe /c "+cmd; Process process = null; StringBuffer sb = new StringBuffer(); BufferedReader reader = null; try { process = Runtime.getRuntime().exec(cmd); reader = new BufferedReader(new InputStreamReader(process.getInputStream())); while(true){ String str = reader.readLine(); if(str==null) break; System.out.println(str); sb.append(str); } process.destroy(); } catch (Exception e) { // TODO: handle exception } return sb.toString(); } public static String exeCMD2(String cmd){ String[] args = new String[]{"cmd","/c",cmd}; Process process = null; StringBuffer sb = new StringBuffer(); BufferedReader reader = null; try { process = Runtime.getRuntime().exec(args); reader = new BufferedReader(new InputStreamReader(process.getInputStream())); while(true){ String str = reader.readLine(); if(str==null) break; System.out.println(str); sb.append(str); } process.destroy(); } catch (Exception e) { // TODO: handle exception } return sb.toString(); } public static void main(String[] args){ CommonUtils.exeCMD1("tree"); CommonUtils.exeCMD1("tree"); } } |
JAVA socket编程实例
JAVA socket编程实例 http://daoyongyu.iteye.com/blog/265677 …
ServerSocket & Socket
服务器: 以应用程序的方式启动: Server1Main.java [crayon-688fe62e8b051…