change
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Maven build output
|
||||
/target/
|
||||
Generated
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GitToolBoxProjectSettings">
|
||||
<option name="commitMessageIssueKeyValidationOverride">
|
||||
<BoolValueOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</BoolValueOverride>
|
||||
</option>
|
||||
<option name="commitMessageValidationEnabledOverride">
|
||||
<BoolValueOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</BoolValueOverride>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
+927
@@ -204,3 +204,930 @@ java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:12:42.011 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:12:42.011 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:12:42.106 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:13:03.774 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:13:03.774 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:13:03.901 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:13:56.135 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:13:56.136 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:13:56.266 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:15:31.837 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:15:31.838 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:15:31.980 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:16:10.956 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:16:10.957 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:16:11.062 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:17:29.926 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:17:29.926 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:17:30.177 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:19:11.730 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:19:11.731 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:19:11.843 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:20:04.647 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:20:04.647 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:20:04.747 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
15:20:43.689 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
|
||||
org.nutz.ioc.IocException: IocBean[authService] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at com.budwk.app.web.commons.proc.GlobalsSettingProcessor.init(GlobalsSettingProcessor.java:30)
|
||||
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
|
||||
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
|
||||
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:192)
|
||||
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
|
||||
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:27)
|
||||
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
|
||||
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
|
||||
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
|
||||
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
|
||||
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|
||||
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
|
||||
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
|
||||
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
|
||||
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
|
||||
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
|
||||
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
|
||||
at org.eclipse.jetty.server.Server.start(Server.java:423)
|
||||
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
|
||||
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
|
||||
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
|
||||
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
|
||||
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:190)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
Caused by: java.lang.RuntimeException: IocBean[authService] fail at field=[sysUserService]
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
|
||||
... 36 common frames omitted
|
||||
Caused by: org.nutz.ioc.IocException: IocBean[sysUserServiceImpl -> dao -> dataSource] throw Exception when creating
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
|
||||
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
|
||||
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
|
||||
... 38 common frames omitted
|
||||
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
|
||||
|
||||
For the reason: need jdbc.url
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
... 48 common frames omitted
|
||||
Caused by: java.lang.RuntimeException: need jdbc.url
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
at org.nutz.lang.Mirror.invoke(Mirror.java:1139)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
|
||||
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
|
||||
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
|
||||
at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
|
||||
at org.nutz.lang.Invoking.invoke(Invoking.java:192)
|
||||
... 52 common frames omitted
|
||||
15:20:43.690 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
|
||||
15:20:43.784 [main] ERROR org.nutz.boot.NbApp - something happen!!
|
||||
java.lang.RuntimeException: Context 'app' had been deposed!
|
||||
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
|
||||
at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:39)
|
||||
at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:55)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
|
||||
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
|
||||
at org.nutz.boot.starter.quartz.QuartzStarter.start(QuartzStarter.java:74)
|
||||
at org.nutz.boot.AppContext.startServers(AppContext.java:312)
|
||||
at org.nutz.boot.NbApp.execute(NbApp.java:210)
|
||||
at org.nutz.boot.NbApp.run(NbApp.java:182)
|
||||
at com.budwk.app.MainLauncher.main(MainLauncher.java:68)
|
||||
|
||||
+2260
-2224
File diff suppressed because it is too large
Load Diff
@@ -131,6 +131,20 @@ public class WelfareProject extends BaseModel implements SysHomeConvert {
|
||||
@ColDefine(type = ColType.BOOLEAN)
|
||||
private Boolean singleOptionSupportMultipleSelection;
|
||||
|
||||
/**
|
||||
* 是否启用福利选项分组配置。启用后,项目管理页面显示分组选择数量配置入口。
|
||||
*/
|
||||
@Column
|
||||
@Comment("是否启用分组必选")
|
||||
@Default("0")
|
||||
@ColDefine(type = ColType.BOOLEAN)
|
||||
private Boolean groupRequired;
|
||||
|
||||
/**
|
||||
* 分组选择数量配置,仅用于接口提交和回显,实际以 JSON 形式存储在福利项目题目表中。
|
||||
*/
|
||||
private List<WelfareProjectSubject.GroupSelectionConfig> groupSelectionConfigs;
|
||||
|
||||
|
||||
@Column
|
||||
@Comment("主福利礼品")
|
||||
|
||||
@@ -50,8 +50,35 @@ public class WelfareProjectSubject extends BaseModel implements Serializable {
|
||||
@ColDefine(type = ColType.INT)
|
||||
private String subjectMaxSelectNum;
|
||||
|
||||
/**
|
||||
* 福利分组选择数量配置。一个福利项目使用一条题目记录,以 JSON 数组保存全部分组配置。
|
||||
*/
|
||||
@Column
|
||||
@Comment("分组选择数量配置")
|
||||
@ColDefine(type = ColType.MYSQL_JSON)
|
||||
private List<GroupSelectionConfig> groupSelectionConfigs;
|
||||
|
||||
@Many(field = "subjectId")
|
||||
private List<WelfareProjectSubjectOption> options;
|
||||
|
||||
/**
|
||||
* 单个福利分组的选择数量范围。
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public static class GroupSelectionConfig implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 分组名称,与福利选项的分组字段对应。 */
|
||||
private String groupName;
|
||||
|
||||
/** 最少选择数量,默认值为 1。 */
|
||||
private Integer minSelectNum;
|
||||
|
||||
/** 最多选择数量,0 表示不限制。 */
|
||||
private Integer maxSelectNum;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -47,6 +47,14 @@ public class WelfareProjectSubjectOption extends BaseModel implements Serializab
|
||||
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||
private String optionName;
|
||||
|
||||
/**
|
||||
* 福利选项所属分组名称,为空时不参与分组选择数量配置。
|
||||
*/
|
||||
@Column
|
||||
@Comment("分组名称")
|
||||
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||
private String groupName;
|
||||
|
||||
@Column
|
||||
@Comment("选项名称Id")
|
||||
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||
|
||||
+103
-1
@@ -1,11 +1,13 @@
|
||||
package com.budwk.app.zhgh.welfare.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.service.impl.BaseServiceImpl;
|
||||
import com.budwk.app.sys.models.Sys_home_activity;
|
||||
import com.budwk.app.sys.models.Sys_user;
|
||||
import com.budwk.app.zhgh.welfare.model.WelfareList;
|
||||
import com.budwk.app.zhgh.welfare.model.WelfareProject;
|
||||
import com.budwk.app.zhgh.welfare.model.WelfareProjectSubject;
|
||||
import com.budwk.app.zhgh.welfare.model.WelfareProjectSubjectOption;
|
||||
import com.budwk.app.zhgh.welfare.model.WelfareUserSelection;
|
||||
import com.budwk.app.zhgh.welfare.service.WelfareProjectService;
|
||||
@@ -32,6 +34,12 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@IocBean(args = {"refer:dao"})
|
||||
public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> implements WelfareProjectService {
|
||||
/** 福利分组配置在福利项目题目表中的类型标识。 */
|
||||
private static final String GROUP_CONFIG_SUBJECT_TYPE = "groupConfig";
|
||||
|
||||
/** 福利分组配置记录的固定名称,便于后台识别和维护。 */
|
||||
private static final String GROUP_CONFIG_SUBJECT_NAME = "分组选择数量配置";
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(WelfareProjectServiceImpl.class);
|
||||
|
||||
public WelfareProjectServiceImpl(Dao dao) {
|
||||
@@ -45,10 +53,27 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
return null;
|
||||
}
|
||||
fetchLinks(project, "options", Cnd.NEW().asc("optionSort"));
|
||||
fillGroupSelectionConfigs(project);
|
||||
fillOptionRank(projectId, project.getOptions());
|
||||
return project;
|
||||
}
|
||||
|
||||
/**
|
||||
* 从福利项目题目表读取 JSON 分组配置并填充到项目返回值中。
|
||||
*
|
||||
* @param project 待填充分组配置的福利项目
|
||||
*/
|
||||
private void fillGroupSelectionConfigs(WelfareProject project) {
|
||||
WelfareProjectSubject configSubject = dao().fetch(WelfareProjectSubject.class,
|
||||
Cnd.where(WelfareProjectSubject::getProjectId, "=", project.getId())
|
||||
.and(WelfareProjectSubject::getSubjectType, "=", GROUP_CONFIG_SUBJECT_TYPE));
|
||||
List<WelfareProjectSubject.GroupSelectionConfig> configs = configSubject == null
|
||||
|| configSubject.getGroupSelectionConfigs() == null
|
||||
? new ArrayList<>()
|
||||
: configSubject.getGroupSelectionConfigs();
|
||||
project.setGroupSelectionConfigs(configs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<WelfareProject> listHistoryProject() {
|
||||
return dao().query(WelfareProject.class, Cnd.NEW().desc(WelfareProject::getYear).desc(WelfareProject::getChoiceTimeStart));
|
||||
@@ -112,9 +137,12 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
@Override
|
||||
@Aop(TransAop.READ_COMMITTED)
|
||||
public void saveProject(WelfareProject project) {
|
||||
// 保存前根据福利选项分组去重并校验选择数量范围,防止非法 JSON 配置进入数据库。
|
||||
normalizeGroupSelectionConfigs(project);
|
||||
// 插入项目
|
||||
project.setYear(DateUtil.thisYear());
|
||||
insertWith(project, "options");
|
||||
saveGroupSelectionConfigs(project);
|
||||
|
||||
// 更新首页活动
|
||||
Sys_home_activity sysHomeActivity = project.covertToSysHomeActivity();
|
||||
@@ -124,6 +152,8 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
@Override
|
||||
@Aop(TransAop.READ_COMMITTED)
|
||||
public void updateProject(WelfareProject project) {
|
||||
// 修改项目时同样归一化分组配置,确保新增、编辑两条保存链路规则一致。
|
||||
normalizeGroupSelectionConfigs(project);
|
||||
// 更新项目
|
||||
update(project);
|
||||
List<WelfareProjectSubjectOption> optionList = dao().query(WelfareProjectSubjectOption.class, Cnd.where(WelfareProjectSubjectOption::getWelfareId, "=", project.getId()));
|
||||
@@ -147,11 +177,16 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
Cnd.where(WelfareProjectSubjectOption::getId, "in", toDeleteIds));
|
||||
}
|
||||
|
||||
for (WelfareProjectSubjectOption option : project.getOptions()) {
|
||||
List<WelfareProjectSubjectOption> submittedOptions = project.getOptions() == null
|
||||
? Collections.emptyList()
|
||||
: project.getOptions();
|
||||
for (WelfareProjectSubjectOption option : submittedOptions) {
|
||||
option.setWelfareId(project.getId());
|
||||
dao().insertOrUpdate(option);
|
||||
}
|
||||
|
||||
saveGroupSelectionConfigs(project);
|
||||
|
||||
// 更新首页活动
|
||||
Sys_home_activity sysHomeActivity = project.covertToSysHomeActivity();
|
||||
dao().insertOrUpdate(sysHomeActivity);
|
||||
@@ -162,6 +197,7 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
@Aop(TransAop.READ_COMMITTED)
|
||||
public void deleteWelfare(String id) {
|
||||
dao().clear(WelfareProjectSubjectOption.class, Cnd.where(WelfareProjectSubjectOption::getWelfareId, "=", id));
|
||||
dao().clear(WelfareProjectSubject.class, Cnd.where(WelfareProjectSubject::getProjectId, "=", id));
|
||||
dao().clear(WelfareUserSelection.class, Cnd.where(WelfareUserSelection::getWelfareId, "=", id));
|
||||
dao().clear(WelfareList.class, Cnd.where(WelfareList::getProjectId, "=", id));
|
||||
delete(id);
|
||||
@@ -169,6 +205,72 @@ public class WelfareProjectServiceImpl extends BaseServiceImpl<WelfareProject> i
|
||||
dao().clear(Sys_home_activity.class, Cnd.where("id", "=", id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据福利选项中的非空分组生成最终配置数组,并校验最小、最大选择数量。
|
||||
* 最大选择数量为 0 时表示不限,不参与最小值与最大值的大小比较。
|
||||
*
|
||||
* @param project 待保存的福利项目及其福利选项、分组配置
|
||||
*/
|
||||
private void normalizeGroupSelectionConfigs(WelfareProject project) {
|
||||
List<WelfareProjectSubjectOption> options = Objects.requireNonNullElse(project.getOptions(), Collections.emptyList());
|
||||
LinkedHashSet<String> optionGroupNames = new LinkedHashSet<>();
|
||||
for (WelfareProjectSubjectOption option : options) {
|
||||
if (option == null || StrUtil.isBlank(option.getGroupName())) {
|
||||
continue;
|
||||
}
|
||||
String groupName = option.getGroupName().trim();
|
||||
option.setGroupName(groupName);
|
||||
optionGroupNames.add(groupName);
|
||||
}
|
||||
|
||||
Map<String, WelfareProjectSubject.GroupSelectionConfig> submittedConfigMap = new LinkedHashMap<>();
|
||||
List<WelfareProjectSubject.GroupSelectionConfig> submittedConfigs = Objects.requireNonNullElse(
|
||||
project.getGroupSelectionConfigs(), Collections.emptyList());
|
||||
for (WelfareProjectSubject.GroupSelectionConfig config : submittedConfigs) {
|
||||
if (config != null && StrUtil.isNotBlank(config.getGroupName())) {
|
||||
submittedConfigMap.put(config.getGroupName().trim(), config);
|
||||
}
|
||||
}
|
||||
|
||||
List<WelfareProjectSubject.GroupSelectionConfig> normalizedConfigs = new ArrayList<>();
|
||||
for (String groupName : optionGroupNames) {
|
||||
WelfareProjectSubject.GroupSelectionConfig config = submittedConfigMap.getOrDefault(groupName,
|
||||
new WelfareProjectSubject.GroupSelectionConfig());
|
||||
int minSelectNum = Objects.requireNonNullElse(config.getMinSelectNum(), 1);
|
||||
int maxSelectNum = Objects.requireNonNullElse(config.getMaxSelectNum(), 0);
|
||||
if (minSelectNum < 0 || maxSelectNum < 0) {
|
||||
throw new IllegalArgumentException("分组“" + groupName + "”的选择数量不能小于0");
|
||||
}
|
||||
if (maxSelectNum > 0 && minSelectNum > maxSelectNum) {
|
||||
throw new IllegalArgumentException("分组“" + groupName + "”的最小选择数量不能大于最大选择数量");
|
||||
}
|
||||
config.setGroupName(groupName);
|
||||
config.setMinSelectNum(minSelectNum);
|
||||
config.setMaxSelectNum(maxSelectNum);
|
||||
normalizedConfigs.add(config);
|
||||
}
|
||||
project.setGroupSelectionConfigs(normalizedConfigs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将项目级分组选择数量数组写入福利项目题目表的 JSON 字段。
|
||||
*
|
||||
* @param project 已取得项目 ID 且完成配置归一化的福利项目
|
||||
*/
|
||||
private void saveGroupSelectionConfigs(WelfareProject project) {
|
||||
WelfareProjectSubject configSubject = dao().fetch(WelfareProjectSubject.class,
|
||||
Cnd.where(WelfareProjectSubject::getProjectId, "=", project.getId())
|
||||
.and(WelfareProjectSubject::getSubjectType, "=", GROUP_CONFIG_SUBJECT_TYPE));
|
||||
if (configSubject == null) {
|
||||
configSubject = new WelfareProjectSubject();
|
||||
configSubject.setProjectId(project.getId());
|
||||
configSubject.setSubjectType(GROUP_CONFIG_SUBJECT_TYPE);
|
||||
configSubject.setSubjectName(GROUP_CONFIG_SUBJECT_NAME);
|
||||
}
|
||||
configSubject.setGroupSelectionConfigs(Objects.requireNonNullElse(project.getGroupSelectionConfigs(), Collections.emptyList()));
|
||||
dao().insertOrUpdate(configSubject);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Aop(TransAop.READ_COMMITTED)
|
||||
public void clearWelfareList(String projectId) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
nutz:
|
||||
application:
|
||||
name: zhgh_cug_v4
|
||||
name: zhgh_zjvtit_v4
|
||||
mvc:
|
||||
ignore: ^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html|mp3|mp4|ico|svg|vue)$
|
||||
exclusions: /favicon/*,/assets/*,/druid/*,/upload/*,/components/*
|
||||
@@ -21,7 +21,7 @@ jetty:
|
||||
#结合ftp使用,或用nginx代理ftp路径
|
||||
#staticPath: /Users/wizzer/temp/files
|
||||
#开发模式静态资源
|
||||
staticPathLocal: E:/projects/zhgh_cug_v4/src/main/resources/static
|
||||
staticPathLocal: F:/coding/zhgh_zjvtit_v4/src/main/resources/static
|
||||
|
||||
security:
|
||||
tokenName: saToken
|
||||
@@ -56,7 +56,7 @@ cas:
|
||||
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6378
|
||||
port: 6379
|
||||
timeout: 2000
|
||||
max_redir: 10
|
||||
database: 1
|
||||
@@ -87,7 +87,7 @@ xsssql:
|
||||
beetl:
|
||||
RESOURCE:
|
||||
#本地路径,开发时设置本地路径,便于调试
|
||||
rootLocal: E:/projects/zhgh_cug_v4/src/main/resources/views/
|
||||
rootLocal: F:/coding/zhgh_zjvtit_v4/src/main/resources/views/
|
||||
root: views/
|
||||
DELIMITER_STATEMENT_START: "<!--#"
|
||||
DELIMITER_STATEMENT_END: "#-->"
|
||||
|
||||
@@ -220,7 +220,13 @@ layout("/layouts/platform.html"){
|
||||
|
||||
<template v-if="formData.flexible">
|
||||
<el-form-item label="福利选项">
|
||||
<welfare-option :key="welfareOptionKey" v-model="formData.options"></welfare-option>
|
||||
<welfare-option
|
||||
ref="welfareOption"
|
||||
:key="welfareOptionKey"
|
||||
:group-required.sync="formData.groupRequired"
|
||||
:group-selection-configs.sync="formData.groupSelectionConfigs"
|
||||
v-model="formData.options">
|
||||
</welfare-option>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
||||
@@ -313,14 +319,15 @@ layout("/layouts/platform.html"){
|
||||
async save() {
|
||||
const formValid = await this.$refs["form"].validate()
|
||||
if (formValid) {
|
||||
if (this.formData.flexible) {
|
||||
// 弹性福利提交前同步并校验分组数量配置,避免保存过期或非法的分组数据。
|
||||
if (this.formData.flexible && this.$refs.welfareOption && !this.$refs.welfareOption.validate()) {
|
||||
return
|
||||
}
|
||||
const formData = clone(this.formData)
|
||||
formData.provideAddress = "工会"
|
||||
|
||||
try {
|
||||
this.submitLoading = true
|
||||
const resp = await this.$axios.post(loc() + "/save", { data: JSON.stringify(formData) })
|
||||
this.submitLoading = true
|
||||
this.$axios.post(loc() + "/save", { data: JSON.stringify(formData) }).then((resp) => {
|
||||
if (resp.code === 0) {
|
||||
this.$refs.guava.index()
|
||||
this.doSearch()
|
||||
@@ -328,11 +335,11 @@ layout("/layouts/platform.html"){
|
||||
} else {
|
||||
this.$message.error(resp.msg)
|
||||
}
|
||||
} catch (e) {
|
||||
}).catch((e) => {
|
||||
this.notifyWarning(e.status)
|
||||
} finally {
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
isCheckBoxChange() {
|
||||
@@ -388,6 +395,9 @@ layout("/layouts/platform.html"){
|
||||
defaultFlexibleGifts: 0,
|
||||
flexible: false,
|
||||
noticePushMode: 1,
|
||||
groupRequired: false,
|
||||
groupSelectionConfigs: [],
|
||||
options: [],
|
||||
welfareProjectSubjects: [],
|
||||
flexibleGifts: [{}]
|
||||
})
|
||||
@@ -481,7 +491,10 @@ layout("/layouts/platform.html"){
|
||||
const data = resp.data
|
||||
data.provideTime = [data.provideTimeStart, data.provideTimeEnd]
|
||||
data.choiceTime = [data.choiceTimeStart, data.choiceTimeEnd]
|
||||
data.groupRequired = Boolean(data.groupRequired)
|
||||
data.groupSelectionConfigs = data.groupSelectionConfigs || []
|
||||
this.formData = data
|
||||
this.welfareOptionKey = this.welfareOptionKey + 1
|
||||
this.$refs.guava.edit()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2,6 +2,24 @@ const welfareOption = {
|
||||
template: /*language=HTML*/ `
|
||||
<div class="welfare-option">
|
||||
<el-card shadow="never">
|
||||
<div class="welfare-option-toolbar">
|
||||
<div class="group-required-control">
|
||||
<span>分组必选</span>
|
||||
<el-switch
|
||||
v-model="localGroupRequired"
|
||||
@change="onGroupRequiredChange">
|
||||
</el-switch>
|
||||
</div>
|
||||
<el-button
|
||||
v-if="localGroupRequired"
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-setting"
|
||||
@click="openGroupConfigDialog">
|
||||
配置分组选择数量
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<el-table :data="welfareList" border style="width: 100%; margin-top: 20px;">
|
||||
<el-table-column align="center" header-align="center" label="福利名称" min-width="520">
|
||||
<template slot-scope="{row}">
|
||||
@@ -12,6 +30,16 @@ const welfareOption = {
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="分组" width="160">
|
||||
<template slot-scope="{row}">
|
||||
<el-input
|
||||
v-model="row.groupName"
|
||||
maxlength="50"
|
||||
placeholder="请输入分组">
|
||||
</el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="系统默认选择" width="140">
|
||||
<template slot-scope="{row}">
|
||||
<el-radio
|
||||
@@ -72,6 +100,46 @@ const welfareOption = {
|
||||
<el-button type="primary" @click="saveDescription">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="配置分组选择数量"
|
||||
:visible.sync="groupConfigDialog.visible"
|
||||
width="52%"
|
||||
custom-class="welfare-group-config-dialog"
|
||||
:append-to-body="true"
|
||||
:close-on-click-modal="false">
|
||||
<el-table :data="groupConfigDialog.configs" border class="group-config-table">
|
||||
<el-table-column align="center" header-align="center" label="分组数据" prop="groupName">
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="最少选择数量" width="250">
|
||||
<template slot-scope="{row}">
|
||||
<el-input-number
|
||||
v-model="row.minSelectNum"
|
||||
:min="0"
|
||||
:max="999"
|
||||
controls-position="right">
|
||||
</el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="最多选择数量" width="250">
|
||||
<template slot-scope="{row}">
|
||||
<el-input-number
|
||||
v-model="row.maxSelectNum"
|
||||
:min="0"
|
||||
:max="999"
|
||||
controls-position="right">
|
||||
</el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="groupConfigDialog.configs.length === 0" class="group-config-empty">
|
||||
请先在福利选项中填写分组
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="groupConfigDialog.visible = false">取消</el-button>
|
||||
<el-button type="primary" @click="saveGroupSelectionConfigs">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
`,
|
||||
|
||||
@@ -79,6 +147,14 @@ const welfareOption = {
|
||||
value: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
groupRequired: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
groupSelectionConfigs: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
|
||||
@@ -86,16 +162,22 @@ const welfareOption = {
|
||||
return {
|
||||
welfareList: [],
|
||||
systemDefaultOption: null,
|
||||
localGroupRequired: false,
|
||||
descriptionDialog: {
|
||||
visible: false,
|
||||
content: '',
|
||||
currentIndex: -1
|
||||
},
|
||||
groupConfigDialog: {
|
||||
visible: false,
|
||||
configs: []
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.welfareList = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
||||
this.localGroupRequired = Boolean(this.groupRequired);
|
||||
this.systemDefaultOption = this.welfareList.find((item) => item.isSystemDefault) || null;
|
||||
if (this.systemDefaultOption) {
|
||||
this.setSystemDefault(this.systemDefaultOption);
|
||||
@@ -108,6 +190,9 @@ const welfareOption = {
|
||||
this.$emit('input', newVal);
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
groupRequired(value) {
|
||||
this.localGroupRequired = Boolean(value);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -119,10 +204,87 @@ const welfareOption = {
|
||||
optionSort: newSort,
|
||||
imgUrl: '',
|
||||
description: '',
|
||||
groupName: '',
|
||||
isSystemDefault: false
|
||||
});
|
||||
},
|
||||
|
||||
// 分组必选开关只负责配置入口显隐,并将当前状态同步给项目表单。
|
||||
onGroupRequiredChange(value) {
|
||||
this.$emit('update:groupRequired', value);
|
||||
},
|
||||
|
||||
// 从福利选项中提取非空分组,按首次出现顺序去重。
|
||||
getUniqueGroupNames() {
|
||||
const groupNames = [];
|
||||
const groupNameSet = new Set();
|
||||
this.welfareList.forEach((item) => {
|
||||
const groupName = (item.groupName || '').trim();
|
||||
if (groupName && !groupNameSet.has(groupName)) {
|
||||
groupNameSet.add(groupName);
|
||||
groupNames.push(groupName);
|
||||
}
|
||||
});
|
||||
return groupNames;
|
||||
},
|
||||
|
||||
// 使用已保存配置回填当前分组;新出现的分组使用最小 1、最大 0 的默认值。
|
||||
buildCurrentGroupConfigs() {
|
||||
const savedConfigMap = new Map();
|
||||
(this.groupSelectionConfigs || []).forEach((config) => {
|
||||
if (config && config.groupName) {
|
||||
savedConfigMap.set(config.groupName.trim(), config);
|
||||
}
|
||||
});
|
||||
return this.getUniqueGroupNames().map((groupName) => {
|
||||
const savedConfig = savedConfigMap.get(groupName) || {};
|
||||
return {
|
||||
groupName: groupName,
|
||||
minSelectNum: savedConfig.minSelectNum == null ? 1 : Number(savedConfig.minSelectNum),
|
||||
maxSelectNum: savedConfig.maxSelectNum == null ? 0 : Number(savedConfig.maxSelectNum)
|
||||
};
|
||||
});
|
||||
},
|
||||
|
||||
openGroupConfigDialog() {
|
||||
this.groupConfigDialog.configs = this.buildCurrentGroupConfigs();
|
||||
this.groupConfigDialog.visible = true;
|
||||
},
|
||||
|
||||
// 最大值为 0 时表示不限;填写具体最大值后,最小值不得超过最大值。
|
||||
validateGroupSelectionConfigs(configs) {
|
||||
const invalidConfig = configs.find((config) => {
|
||||
return config.maxSelectNum > 0 && config.minSelectNum > config.maxSelectNum;
|
||||
});
|
||||
if (invalidConfig) {
|
||||
this.$message.warning('分组“' + invalidConfig.groupName + '”的最小选择数量不能大于最大选择数量');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
saveGroupSelectionConfigs() {
|
||||
if (!this.validateGroupSelectionConfigs(this.groupConfigDialog.configs)) {
|
||||
return;
|
||||
}
|
||||
const configs = JSON.parse(JSON.stringify(this.groupConfigDialog.configs));
|
||||
this.$emit('update:groupSelectionConfigs', configs);
|
||||
this.groupConfigDialog.visible = false;
|
||||
},
|
||||
|
||||
// 项目提交前同步当前去重分组,保证未打开弹窗的新分组也能按默认值保存。
|
||||
validate() {
|
||||
if (!this.localGroupRequired) {
|
||||
return true;
|
||||
}
|
||||
const configs = this.buildCurrentGroupConfigs();
|
||||
if (!this.validateGroupSelectionConfigs(configs)) {
|
||||
return false;
|
||||
}
|
||||
this.$emit('update:groupSelectionConfigs', configs);
|
||||
return true;
|
||||
},
|
||||
|
||||
// 每个福利项目只允许配置一个系统默认选项,保存时会随福利选项一并提交。
|
||||
setSystemDefault(defaultOption) {
|
||||
this.welfareList.forEach((item) => {
|
||||
@@ -193,6 +355,21 @@ const welfareOption = {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/deep/ .welfare-option .welfare-option-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 28px;
|
||||
min-height: 44px;
|
||||
padding: 10px 16px 0;
|
||||
}
|
||||
|
||||
/deep/ .welfare-option .group-required-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/deep/ .welfare-option .imgUrl .el-upload--picture-card i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -210,5 +387,25 @@ const welfareOption = {
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/deep/ .group-config-table .el-input-number {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
/deep/ .welfare-group-config-dialog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 560px;
|
||||
}
|
||||
|
||||
/deep/ .welfare-group-config-dialog .el-dialog__body {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/deep/ .group-config-empty {
|
||||
padding-top: 20px;
|
||||
color: #909399;
|
||||
text-align: center;
|
||||
}
|
||||
`
|
||||
};
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
org.nutz.boot.config.impl.YamlConfigureLoader
|
||||
@@ -1,204 +0,0 @@
|
||||
nutz:
|
||||
application:
|
||||
name: zhgh_cug_v4
|
||||
mvc:
|
||||
ignore: ^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html|mp3|mp4|ico|svg|vue)$
|
||||
exclusions: /favicon/*,/assets/*,/druid/*,/upload/*,/components/*
|
||||
server:
|
||||
port: 80
|
||||
host: 0.0.0.0
|
||||
|
||||
jetty:
|
||||
contextPath: /
|
||||
threadpool:
|
||||
idleTimeout: 60000
|
||||
minThreads: 10
|
||||
maxThreads: 500
|
||||
page:
|
||||
403: /error/403.html
|
||||
404: /error/404.html
|
||||
500: /error/500.html
|
||||
#结合ftp使用,或用nginx代理ftp路径
|
||||
#staticPath: /Users/wizzer/temp/files
|
||||
#开发模式静态资源
|
||||
staticPathLocal: E:/projects/zhgh_cug_v4/src/main/resources/static
|
||||
|
||||
security:
|
||||
tokenName: saToken
|
||||
timeout: 36000
|
||||
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
|
||||
# 允许同一账号并发登录,则系统参数 SessionOnlyOne 有效,亦可踢人下线并多了弹框提示功能
|
||||
isConcurrent: true
|
||||
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
|
||||
isShare: false
|
||||
|
||||
wxwork:
|
||||
enable: true
|
||||
corpId: wwaca81b3016b9a58c
|
||||
corpSecret: Auc7919Su1Uds5ZErfZybBrt-8FkP5NA-dldZyQuOrM
|
||||
agentId: 1000131
|
||||
redirectUri: /platform/wxwork/oauth2/callback
|
||||
|
||||
wx:
|
||||
enable: false
|
||||
appID: wx4f65ff5f1b72e99d
|
||||
appSecret: a65cec4fb69980bd88258fc8433a3eef
|
||||
redirectUri: /platform/wx/oauth2/callback
|
||||
|
||||
cas:
|
||||
enable: false
|
||||
server-url-prefix: https://i.njupt.edu.cn/cas
|
||||
server-login-url: https://i.njupt.edu.cn/cas/login
|
||||
qi-wx-server-login-url: httos:/cas.whcp.eou.cn/lyuapServer/wechatauz/wxAuthRedirect
|
||||
client-host-url: https://zhgh.njupt.edu.cn
|
||||
client-call-back-url: /platform/sso/login
|
||||
validation-type: cas
|
||||
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6378
|
||||
timeout: 2000
|
||||
max_redir: 10
|
||||
database: 1
|
||||
maxTotal: 500
|
||||
pool:
|
||||
maxTotal: 500
|
||||
maxIdle: 50
|
||||
minIdle: 10
|
||||
#password: test123
|
||||
mode: normal
|
||||
#cluster
|
||||
#nodes=192.168.6.31:6377,192.168.6.31:6378,192.168.6.28:6377,192.168.6.28:6378,192.168.6.34:6377,192.168.6.34:6378
|
||||
|
||||
jdbc:
|
||||
url: jdbc:mysql://192.168.21.212:3306/zhgh_zjvtit_v4?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||
username: root
|
||||
password: 123456
|
||||
validationQuery: select 1
|
||||
maxActive: 1000
|
||||
testWhileIdle: true
|
||||
connectionProperties: druid.stat.slowSqlMillis=2000
|
||||
defaultAutoCommit: true
|
||||
|
||||
xsssql:
|
||||
ignore:
|
||||
urls: /platform/cms/content/article/addDo,/platform/sys/app/conf/addDo,/platform/sys/app/conf/editDo
|
||||
|
||||
beetl:
|
||||
RESOURCE:
|
||||
#本地路径,开发时设置本地路径,便于调试
|
||||
rootLocal: E:/projects/zhgh_cug_v4/src/main/resources/views/
|
||||
root: views/
|
||||
DELIMITER_STATEMENT_START: "<!--#"
|
||||
DELIMITER_STATEMENT_END: "#-->"
|
||||
FT:
|
||||
#用法: ${"wizzer",escape}
|
||||
escape: com.budwk.app.web.commons.ext.beetl.HtmlEscapeFormat
|
||||
#用法: ${10241024,filesize}
|
||||
filesize: com.budwk.app.web.commons.ext.beetl.FileSizeFormat
|
||||
#用法: ${"",html2txt="100"} 截取100字符
|
||||
html2txt: com.budwk.app.web.commons.ext.beetl.Html2TxtFormat
|
||||
#用法: ${"",strlen="100"} 截取100字符
|
||||
strlen: com.budwk.app.web.commons.ext.beetl.StrlenFormat
|
||||
|
||||
#==============================================================
|
||||
#Configure Main Scheduler Properties
|
||||
#==============================================================
|
||||
#quartz延迟启动秒数
|
||||
quartz:
|
||||
startupDelay: 10
|
||||
scheduler:
|
||||
instanceName: defaultScheduler
|
||||
instanceId: AUTO
|
||||
#==============================================================
|
||||
#Skip Check Update
|
||||
#update:true
|
||||
#not update:false
|
||||
#==============================================================
|
||||
skipUpdateCheck: true
|
||||
#==============================================================
|
||||
#Configure JobStore isClustered=启用集群模式
|
||||
#==============================================================
|
||||
jobStore:
|
||||
class: org.quartz.impl.jdbcjobstore.JobStoreTX
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
#driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
|
||||
#driverDelegateClass: org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
|
||||
#Other delegates can see: http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-09.html
|
||||
dataSource: myDS
|
||||
tablePrefix: SYS_QRTZ_
|
||||
isClustered: false
|
||||
clusterCheckinInterval: 20000
|
||||
maxMisfiresToHandleAtATime: 120
|
||||
misfireThreshold: 120000
|
||||
txIsolationLevelSerializable: false
|
||||
|
||||
#==============================================================
|
||||
#Configure ThreadPool
|
||||
#==============================================================
|
||||
threadPool:
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
threadCount: 2
|
||||
threadPriority: 5
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
|
||||
#============================================================================
|
||||
# Configure Plugins
|
||||
#============================================================================
|
||||
plugin:
|
||||
triggHistory:
|
||||
class: org.quartz.plugins.history.LoggingJobHistoryPlugin
|
||||
shutdownhook:
|
||||
class: org.quartz.plugins.management.ShutdownHookPlugin
|
||||
cleanShutdown: true
|
||||
#============================================================================
|
||||
# NutDao dataSource
|
||||
#============================================================================
|
||||
dataSource:
|
||||
myDS:
|
||||
connectionProvider:
|
||||
class: com.budwk.app.task.conn.NutConnectionProvider
|
||||
|
||||
minio:
|
||||
accessKey: minioadmin
|
||||
secretKey: minioadmin
|
||||
endPoint: http://192.168.21.214:9000
|
||||
bucket: njupt
|
||||
|
||||
data-center:
|
||||
grant_type: password
|
||||
scope: read
|
||||
username: 3848A3C738EFBB2C2E76E0D59B419DACA16A80F3AB0354CD
|
||||
password: 3848A3C738EFBB2C2E76E0D59B419DACA16A80F3AB0354CD
|
||||
token-url: https://bd.whcp.edu.cn/sjjkfwpt/api/bd-api/oauth/token
|
||||
urls:
|
||||
teacher: https://bd.whcp.edu.cn/sjjkfwpt/api/bd-api/get/JZGJCSJZLB
|
||||
unit: https://bd.whcp.edu.cn/sjjkfwpt/api/bd-api/get/YXSDWJBSJZLB
|
||||
msg:
|
||||
platform:
|
||||
enabled: false
|
||||
# 地大通讯平台基础地址,默认对接正式地址
|
||||
base-url: https://msg.cug.edu.cn
|
||||
# 授权系统名称,对应文档中的 tp_name
|
||||
tp-name : nwszl.cug.edu.cn
|
||||
# 便捷发送方法默认发送人工号,controller 只传接收人和内容时会读取这里
|
||||
default-send-user-id: 790036
|
||||
# 便捷发送方法默认发送人姓名,controller 只传接收人和内容时会读取这里
|
||||
default-send-user-name: 周斐霏
|
||||
# 便捷发送方法默认发送机构ID,可不填
|
||||
default-send-unit-id: 421
|
||||
# 便捷发送方法默认发送机构名称,可不填
|
||||
default-send-unit-name: 工会
|
||||
# 便捷发送方法默认签名,可不填
|
||||
default-send-user-sign:
|
||||
#短信中如果不包含链接和电话,可以使用公共模板ID:
|
||||
default-template-id: 1978744168869937153
|
||||
# 原始密钥,未提前加密时可直接填这里,程序会按 Base64 后 SHA 自动计算 secret_key
|
||||
raw-secret-key: Z21kbDlwYWJ4c2Vtbnk4NjlxeQ==
|
||||
# 如果对方已经提供了可直接使用的 secret_key,也可以直接配置该值,优先级高于 raw-secret-key
|
||||
encrypted-secret-key:
|
||||
# HTTP连接超时时间,单位毫秒
|
||||
connect-timeout: 5000
|
||||
# HTTP读取超时时间,单位毫秒
|
||||
read-timeout: 10000
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
______ _ _ _ _ _ _ _____ ___ ____ _
|
||||
| ___ \ | | | | | | | | | | ___| | \/ (_) (_)
|
||||
| |_/ /_ _ __| | | | | | ________| | | |___ \ | . . |_ _ __ _
|
||||
| ___ \ | | |/ _` | |/\| | |/ /______| | | | \ \ | |\/| | | '_ \| |
|
||||
| |_/ / |_| | (_| \ /\ / < \ \_/ /\__/ / | | | | | | | | |
|
||||
\____/ \__,_|\__,_|\/ \/|_|\_\ \___/\____/ \_| |_/_|_| |_|_|
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
var chain={
|
||||
"default" : {
|
||||
"ps" : [
|
||||
"com.budwk.app.web.commons.proc.LogTimeProcessor",
|
||||
"com.budwk.app.web.commons.proc.GlobalsSettingProcessor",
|
||||
"com.budwk.app.web.commons.proc.CspProcessor",
|
||||
"org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor",
|
||||
"org.nutz.mvc.impl.processor.EncodingProcessor",
|
||||
"org.nutz.mvc.impl.processor.ModuleProcessor",
|
||||
"com.budwk.app.web.commons.proc.XssSqlFilterProcessor",
|
||||
"org.nutz.mvc.impl.processor.ActionFiltersProcessor",
|
||||
"org.nutz.mvc.impl.processor.AdaptorProcessor",
|
||||
"com.budwk.app.web.commons.proc.ParamValidationProcessor",
|
||||
"org.nutz.mvc.impl.processor.MethodInvokeProcessor",
|
||||
"org.nutz.mvc.impl.processor.ViewProcessor"
|
||||
],
|
||||
"error" : 'com.budwk.app.web.commons.proc.WkFailProcessor'
|
||||
}
|
||||
};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user