diff --git a/pom.xml b/pom.xml index c3c56ca..15ed3d9 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ com.alibaba druid - 1.0.18 + 1.0.19 jconsole @@ -59,12 +59,12 @@ org.nutz nutz - 1.r.56-SNAPSHOT + 1.r.56 org.nutz nutz-web - 1.b.49 + 1.b.52 com.restfb diff --git a/src/main/java/com/rekoe/MainModule.java b/src/main/java/com/rekoe/MainModule.java index d363b36..46cca6c 100644 --- a/src/main/java/com/rekoe/MainModule.java +++ b/src/main/java/com/rekoe/MainModule.java @@ -8,6 +8,7 @@ import org.nutz.mvc.annotation.Localization; import org.nutz.mvc.annotation.Modules; import org.nutz.mvc.annotation.SetupBy; import org.nutz.mvc.annotation.Views; +import org.nutz.mvc.impl.NutActionChainMaker; import org.nutz.mvc.ioc.provider.ComboIocProvider; import org.nutz.plugins.view.freemarker.FreemarkerViewMaker; @@ -16,7 +17,7 @@ import org.nutz.plugins.view.freemarker.FreemarkerViewMaker; @SetupBy(MvcSetup.class) @Fail(">>:/admin/common/unauthorized.rk") @Encoding(input = "UTF-8", output = "UTF-8") -@ChainBy(args = "com/rekoe/mvc/mvc-chains.js") +@ChainBy(type = NutActionChainMaker.class, args = { "com/rekoe/mvc/mvc-chains.js" }) @Views({ FreemarkerViewMaker.class }) @Localization(value = "msg/", defaultLocalizationKey = "zh-CN") public class MainModule { diff --git a/src/main/resources/init_system_h2.sql b/src/main/resources/init_system_h2.sql index 75ed805..a687ce1 100644 --- a/src/main/resources/init_system_h2.sql +++ b/src/main/resources/init_system_h2.sql @@ -14,13 +14,19 @@ INSERT INTO system_user_role(USERID,ROLEID) VALUES /* .system_role_permission */ INSERT INTO system_role_permission(ROLEID,PERMISSIONID) VALUES (1,1) -/* +/* .add_indexs */ alter table pj_gr add constraint FK_Relationship_2 foreign key (pj) references pj (pj) on delete restrict on update restrict; +/* .add_indexs_pj_gr_auth */ alter table pj_gr_auth add constraint FK_Reference_6 foreign key (pj, gr) references pj_gr (pj, gr) on delete restrict on update restrict; +/* .add_indexs_pj_gr_usr */ alter table pj_gr_usr add constraint FK_Reference_10 foreign key (pj, gr) references pj_gr (pj, gr) on delete restrict on update restrict; +/* .add_indexs_pj_gr_usr_1 */ alter table pj_gr_usr add constraint FK_Reference_9 foreign key (usr) references usr (usr) on delete restrict on update restrict; +/* .add_indexs_pj_gr_usr_2 */ alter table pj_usr add constraint FK_Reference_5 foreign key (pj) references pj (pj) on delete restrict on update restrict; +/* .add_indexs_pj_gr_usr_3 */ alter table pj_usr add constraint FK_Reference_7 foreign key (usr) references usr (usr) on delete restrict on update restrict; +/* .add_indexs_pj_usr_auth_1 */ alter table pj_usr_auth add constraint FK_Reference_11 foreign key (pj) references pj (pj) on delete restrict on update restrict; +/* .add_indexs_pj_usr_auth_2 */ alter table pj_usr_auth add constraint FK_Reference_8 foreign key (usr) references usr (usr) on delete restrict on update restrict; -*/ \ No newline at end of file