只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-05-11 15:36 nmgzwt 阅读(7) 评论(0) 推荐(0)
摘要: 这里我介绍一种很常用,也比较Professor的权限控制思路。把具体的权限设置为一个正整数值,如果一个用户有多个权限的话,比如1,2权限,那么我们设置值的时候就是num.setBit(1),num.setBit(2),然后把返回的num值保存在session中,要验证是否有权限的话,只要从sessi 阅读全文
posted @ 2016-10-11 15:22 nmgzwt 阅读(254) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { Map<String, String> map = new HashMap<String, String>(); map.put("1", "value1"); map.put("2", "value2"); map. 阅读全文
posted @ 2016-06-08 17:12 nmgzwt 阅读(93) 评论(0) 推荐(0)
摘要: //日期转化为大小写 public static String dataToUpper(String dateStr) { String res=""; SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Date date = nul 阅读全文
posted @ 2016-06-07 11:13 nmgzwt 阅读(269) 评论(0) 推荐(0)
摘要: <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>JS计算两个日期之间的天数</title></head><body><script type="text/JavaScript"> f 阅读全文
posted @ 2016-05-06 16:59 nmgzwt 阅读(363) 评论(0) 推荐(0)
摘要: package com.ljq.test; /** * 枚举用法详解 * * @author jiqinlin * */public class TestEnum { /** * 普通枚举 * * @author jiqinlin * */ public enum ColorEnum { red, 阅读全文
posted @ 2016-04-14 09:04 nmgzwt 阅读(122) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-03-22 17:17 nmgzwt 阅读(5) 评论(0) 推荐(0)