OGNL表达式语言(#号的用法) 用法1:访问OGNL上下文和Action上下文,#相当ActionContext.getContext() 1、 如果访问其他Context中的对象,由于他们不是根对象,所以在访问时,需要添加#前缀 也可写为#request[‘user...
分类:
其他好文 时间:
2015-01-08 15:05:30
阅读次数:
297
示例一:继承AbstractBaseUser,AbstractBaseUser只有三个字段password,last_login,is_active,以及需要复习的两个方法def get_full_name(self): raise NotImplementedError()def g...
分类:
其他好文 时间:
2015-01-08 15:03:53
阅读次数:
233
不多说,直接贴。public static Map urlMthod = new HashMap(); static { urlMthod.put("/user/add.xhtm", "add"); }这个方法中转器,就是将每个切进来的方法,指向它要处理的方法中;这样写避免了很多if else的方....
分类:
其他好文 时间:
2015-01-08 15:02:21
阅读次数:
208
[ 1.235000] UBI: number of user volumes: 1
[ 1.240000] UBI: available PEBs: 0
[ 1.245000] UBI: total number of reserved PEBs: 1964
[ 1.250000] UBI: number of PEBs reserved for bad PEB handling: 19
这样的界面看着貌似很高端;很多人误认为前面是系统启动的时间,其...
分类:
其他好文 时间:
2015-01-08 13:20:26
阅读次数:
440
adb shell ps 可用来查看内存
adb shell ps | find "launcher"
USER PID PPID VSIZE RSS WCHAN PC NAME
app_47 1274 1071 121628 30352 ffffffff afe0dc24 S com.motorola.launcher
VSIZE 是虚存
RSS是物理内存...
分类:
数据库 时间:
2015-01-08 11:25:04
阅读次数:
568
#运行NGINX所使用的用户和组user www www;#NGINX进程数,建议按照CPU数目来定,一般按照它的倍数,每个进程消耗约10M内存worker_processes 4;#日志信息error_log /usr/local/nginx/logs/error.log;pid /usr/loc...
分类:
其他好文 时间:
2015-01-08 11:06:39
阅读次数:
160
安装完成后,将看到如下控制台:输入以上安装信息中所填写的用户名(user),随后输入密码(user),即可登录 Ubuntu。随时可使用Ctrl + Alt 快捷键可离开虚拟机。3 配置 Ubuntu3.1 开启 root 用户1) 设置 root 用户的密码sudo passwd root首先输入...
分类:
系统相关 时间:
2015-01-08 11:03:17
阅读次数:
431
$usernameToken = unserialize($request->getSession()->get('_security_main'));$user = $usernameToken->getUser();
分类:
其他好文 时间:
2015-01-08 10:56:43
阅读次数:
185
--建表语句create table user( id integer primary key, firstname varchar(200) not null, lastname varchar(200) not null, age integer ); --设置自增主键alter...
分类:
数据库 时间:
2015-01-08 10:52:18
阅读次数:
185
作者:zhanhailiang 日期:2015-01-08
今天,测试发现在
https://mlogin.vip.com/user-login.html?back_act=http%3A%2F%2Fm.vip.com%2Fuser.html
下上报监控数据
http://mstats.vip.com/v1/timing/m?_t=1420647129290&p2=240&p4=37...
分类:
Web程序 时间:
2015-01-08 09:37:06
阅读次数:
226