Watch 1 Star 0 Fork 0

panmingguang / springmvc-undertowJava

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
SpringMVC + Undertow spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

springmvc-undertow

项目介绍

SpringMVC + Undertow

软件架构

改springMvc + undertow  boot 启动方式
build 完成目录:
[
	bin -启动bat sh
	conf -- classpath配置文件
	lib -- 所有的jar包
	logs -- 日志
	webapp -- 原来的 webapp 路径
]

后台框架 springMVC + SpringJDBC + velocity 构成基本的后台MVC
前端框架参考 bootstrap 3.2
https://github.com/BlackrockDigital/startbootstrap

-- 前端例子 URL
http://127.0.0.1/demo/forms  


								
--管理员		
INSERT INTO muser(id, tel, uname, password, "role", state, ctime)VALUES
(1, 13188888888, '管理员', '4297f44b13955235245b2497399d7a93', 1, 0, TO_DATE('2016-09-14 10:10:32','YYYY-MM-DD HH24:MI:SS'));
						
CREATE TABLE muser (
	id serial primary key,
	tel int8,
	uname varchar(10) NULL,
	password varchar(32) NULL,
	role int2 null,
	state int2 default 0,
	ctime timestamp(0) without time zone default now()
)
--组
INSERT INTO public.mgroup("role", gname)VALUES(1, '管理员');
INSERT INTO public.mgroup("role", gname)VALUES(2, '数据查看');

create table mgroup(
role serial primary key,
gname varchar(20)
)
-- 权限
create table muserrole(
	id serial NOT null primary key, 
	pid int2 NULL,
	name varchar(10) NULL,
	uri varchar(50) NULL,      ---  把所有操作权限都加入
	role varchar(100) NULL,    ---  1,2,3,4,5 mgroup.role , 按组来分
	des varchar(20) NULL,
	img varchar(25) NULL,
	state int4 NULL DEFAULT 0
)

INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(3, 2, 'GPS信息', '/device/gps', '1,2', NULL, NULL, 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(5, 2, '电瓶信息', '/device/voltinfo', '1,2', NULL, NULL, 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(7, 1, '管理员列表', '/user/muserlist', '1,2', NULL, NULL, 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(2, 0, '设备信息', NULL, '1,2', NULL, 'fa-wrench', 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(4, 2, '设备信息', '/device/info', '1,2', NULL, NULL, 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(6, 2, '警告信息', '/device/warninfo', '1,2', NULL, NULL, 0);
INSERT INTO public.muserrole(id, pid, "name", uri, "role", des, img, state)VALUES(1, 0, '用户信息', NULL, '1,2', NULL, 'fa-user', 0);

Comments ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/panmingguang2004/springmvc-undertow.git
git@gitee.com:panmingguang2004/springmvc-undertow.git
panmingguang2004
springmvc-undertow
springmvc-undertow
master

Help Search