`
江雨行
  • 浏览: 24321 次
文章分类
社区版块
存档分类
最新评论
文章列表
package com.yuxinglab.admin.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @Entity public class RolePermisson { @Id @GeneratedValue private int id; ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charse ...
< form name = "demo" method = "post" > < input type = "button" value = "添加" onclick = "addAction()" > < input type = "button" value = "删除" onclick = "deleteAction()" > < input type = "button& ...
@RequestMapping("/page/checkUserExistence.do") public void checkUserEmailExistence(String strAdminAccounts, HttpServletResponse response) { response.setContentType("text/javascript;charset=UTF-8"); response.setHeader("Cache-Control", "no-store, max ...
SELECT strPersonalName ,strpersonalMobilePHone FROM personalmessage p where intMessageStatus=1 or intmessageStatus=0 into outfile 'd:/filename.xls'; 关键代码:     into outfile  'd:/filename.xls'
首先导入相关jar包, 将jpbm.cfg.xml修改后添加到classpath下: <?xml version="1.0" encoding="UTF-8"?> <jbpm-configuration> <import resource="jbpm.default.cfg.xml" /> <import resource="jbpm.businesscalendar.cfg.xml" /> <!-- <import resource ...
前提:    基于用户角色权限的模式。 思路:    在Filter中获取WebApplicationContext    从WebApplication中获取权限相关的Service    在Filter的doFilter方法中获取到请求路径,    如果!all.contains(has)则抛出异常。    如果请求路径不在处理范围则chain.doFilter 代码后期跟进
<script src="resources/js/jquery.min.js" type="text/javascript" language="javascript"></script> <script src="resources/js/jquery.metadata.js" type="text/javascript" language="javascript"></script> <script s ...
 效果如下: 实现方式: 在权限对象中加入一个标识属性,例如: @Transient private Integer isCheck; // 是否选中,就为了不用Spring标签,我容易么. 0为未选中 public AdminPermission() { isCheck = 0; }  通过构造函数,为其设置默认值。 在相关的Service中,用全部权限和角色拥有的权限作对比,如下: public List<AdminPermission> findAdminHasPermissonsByRoleId(String strId) { ...
<div style="height:980px; width:0 auto;page-break-after: always;"> </div>  
package com.yuxinglab.utils; import java.io.UnsupportedEncodingException; public class EncodingTool { public static String encodeStr(String str) { try { return new String(str.getBytes("ISO-8859-1"), "UTF-8"); } catch (UnsupportedEnc ...
package com.yuxinglab.utils; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; import javax.mail.Authenticator; import java ...
public static String getWebRootAbsolutePath() { String path = null; String folderPath = Path.class.getProtectionDomain().getCodeSource() .getLocation().getPath(); if (folderPath.indexOf("WEB-INF") > 0) { path = folderPat ...
 package com.yuxinglab.poi.test; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.ss.usermodel.Ce ...
1.处理返回值为List的方法 @Override public List<T> getByIds(Long[] ids) { if (ids == null || ids.length == 0) { return java.util.Collections.EMPTY_LIST; } getSession().createQuery( "from " + clazz.getSimpleName() + " where id in(:ids)") .setParameterList(& ...
Global site tag (gtag.js) - Google Analytics