-- ----------------------------
-- 角色权限表
-- ----------------------------
-- 辅导员拥有所有权限
insert into sys_role_permission(role_id, perm_id)
select r.id rID, p.id pID
from sys_role r,
sys_permission p
where r.role_name = '辅导员';
-- 班长拥有查询权限
insert into sys_role_permission(role_id, perm_id)
select r.id rID, p.id pID
from sys_role r,
sys_permission p
where r.role_name = '班长'
and (p.perm_tag = 'student:select' or p.perm_tag = 'student:list');
-- ----------------------------
-- 用户角色表
-- ----------------------------
-- 歆瑶是辅导员
insert into sys_user_role(user_id, role_id)
select u.id uID, r.id rID
from sys_user u
join sys_role r on r.role_name = '辅导员' and u.username = '歆瑶';
-- 张三是班长
insert into sys_user_role(user_id, role_id)
select u.id uID, r.id rID
from sys_user u
join sys_role r on r.role_name = '班长' and u.username = '张三';
select u.id userId,
u.username username,
u.password password,
r.id roleId,
r.role_name roleName,
r.role_desc roleDesc,
p.id permId,
p.perm_tag permTag,
p.perm_desc permDesc
from sys_user u
join sys_user_role ur on ur.user_id = u.id
join sys_role r on r.id = ur.role_id
join sys_role_permission rp on rp.role_id = r.id
join sys_permission p on p.id = rp.perm_id
where username = '歆瑶'
昨晚和朋友聊天,喝了点咖啡,由于我经常喝茶,很长时间没喝咖啡了,所以失眠了,于是起床读JVM规范,读完后在朋友圈发了一条信息:
JVM Run-Time Data Areas:The Java Virtual Machine defines various run-time data areas that are used during execution of a program. So
Spark SQL supports most commonly used features of HiveQL. However, different HiveQL statements are executed in different manners:
1. DDL statements (e.g. CREATE TABLE, DROP TABLE, etc.)
nginx在运行过程中是否稳定,是否有异常退出过?这里总结几项平时会用到的小技巧。
1. 在error.log中查看是否有signal项,如果有,看看signal是多少。
比如,这是一个异常退出的情况:
$grep signal error.log
2012/12/24 16:39:56 [alert] 13661#0: worker process 13666 exited on s
方法一:常用方法 关闭XML验证
工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。
方法二:(个人推荐)
添加 内容如下
<?xml version=
<!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&quo
最主要的是使用到了一个jquery的插件jquery.media.js,使用这个插件就很容易实现了。
核心代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.