测试sql
authorXia Kaixiang <kaixiang.xia@supwisdom.com>
Mon, 22 Apr 2019 09:40:36 +0000 (17:40 +0800)
committerXia Kaixiang <kaixiang.xia@supwisdom.com>
Mon, 22 Apr 2019 09:41:04 +0000 (17:41 +0800)
config/application-devel-oracle.properties
sql/init_test.sql

index 3a3d0a6..50ff598 100644 (file)
@@ -1,11 +1,11 @@
 spring.main.banner-mode=off
 
 # create and drop tables and sequences, loads import.sql
-spring.jpa.hibernate.ddl-auto=create-drop
+spring.jpa.hibernate.ddl-auto=update
 
 # Oracle settings
 spring.datasource.url=jdbc:oracle:thin:@172.28.201.101:47922:orcl
-spring.datasource.username=ecardtest
+spring.datasource.username=dlpay
 spring.datasource.password=kingstar
 spring.datasource.driver-class-oracle.jdbc.driver.OracleDriver
 
@@ -13,4 +13,9 @@ spring.datasource.driver-class-oracle.jdbc.driver.OracleDriver
 redis.server=172.28.201.101
 redis.port=16379
 redis.password=kingstar
-redis.database=0
\ No newline at end of file
+redis.database=0
+
+# jwt settings
+jwt.secret=Zj5taLomEbrM0lk+NMQZbHfSxaDU1wekjT+kiC3YzDw=
+# timeout seconds
+jwt.expiration=3600
\ No newline at end of file
index 3a210ae..ceaf464 100644 (file)
@@ -12,4 +12,13 @@ INSERT INTO tb_oper_role(
        id, operid, role_id)
        VALUES ('1', 'LOR2IwRkbOjp+sVG9KR2BpHZbwGKepS4', 'd1yctWs5+ks0iQN3m9bUvRHus6HbKbrs');
 
+-- 功能表
+Insert into TB_FUNCTION (ID,PARENT_ID,NAME,ORDER_NUM,MENU_URL,MENU_ICON,IS_LEAF)
+values ('1','-1','系统中心',1,'#','layui-icon-set',0);
+Insert into TB_FUNCTION (ID,PARENT_ID,NAME,ORDER_NUM,MENU_URL,MENU_ICON,IS_LEAF)
+values ('2','1','管理员维护',1,'#','layui-icon-set',1);
+
+Insert into TB_ROLE_FUNCTION (ID,FUNCTION_ID,ROLE_ID) values ('1','1','d1yctWs5+ks0iQN3m9bUvRHus6HbKbrs');
+Insert into TB_ROLE_FUNCTION (ID,FUNCTION_ID,ROLE_ID) values ('2','2','d1yctWs5+ks0iQN3m9bUvRHus6HbKbrs');
+
 commit;
\ No newline at end of file