完成用户相关的一些功能
3
ect/nginx/boot/data/project.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
14
ect/nginx/boot/data/user.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"test":{
|
||||
"password":"testtest",
|
||||
"role":"tester",
|
||||
"name":"test",
|
||||
"id":"test"
|
||||
},
|
||||
"admin":{
|
||||
"password":"aaaaaa",
|
||||
"role":"manager",
|
||||
"name":"admin",
|
||||
"id":"admin"
|
||||
}
|
||||
}
|
144
ect/nginx/boot/log/error/systemError-2017-10-31.0.log
Normal file
@ -0,0 +1,144 @@
|
||||
15:17:54.699 ERROR [main] org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Parameter 0 of constructor in cn.jiangzeyin.BootOnLineApplication required a bean of type 'cn.jiangzeyin.service.UserService' that could not be found.
|
||||
|
||||
|
||||
Action:
|
||||
|
||||
Consider defining a bean of type 'cn.jiangzeyin.service.UserService' in your configuration.
|
||||
|
||||
15:18:18.455 ERROR [main] org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Parameter 0 of constructor in cn.jiangzeyin.BootOnLineApplication required a bean of type 'cn.jiangzeyin.service.UserService' that could not be found.
|
||||
|
||||
|
||||
Action:
|
||||
|
||||
Consider defining a bean of type 'cn.jiangzeyin.service.UserService' in your configuration.
|
||||
|
||||
15:20:26.220 ERROR [http-nio-1122-exec-6] CONTROL_ERROR - controller 异常
|
||||
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
15:20:26.222 ERROR [http-nio-1122-exec-6] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet dispatcherServlet threw exception
|
||||
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
15:20:26.224 ERROR [http-nio-1122-exec-6] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost] - Exception Processing ErrorPage[errorCode=0, location=/error]
|
||||
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
Caused by: java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
... 25 common frames omitted
|
114
ect/nginx/boot/log/error/systemError.log
Normal file
@ -0,0 +1,114 @@
|
||||
14:23:23.487 ERROR [http-nio-1122-exec-4] CONTROL_ERROR - controller 异常
|
||||
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
14:23:23.516 ERROR [http-nio-1122-exec-4] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet dispatcherServlet threw exception
|
||||
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
14:23:23.518 ERROR [http-nio-1122-exec-4] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost] - Exception Processing ErrorPage[errorCode=0, location=/error]
|
||||
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
|
||||
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
|
||||
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
|
||||
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
Caused by: java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.LinkedHashMap
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:188)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
|
||||
... 25 common frames omitted
|
75
ect/nginx/boot/static/css/index.css
Normal file
@ -0,0 +1,75 @@
|
||||
/* ŃĄĎŃůĘ˝ */
|
||||
.layui-tab {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layui-tab-title {
|
||||
/*width: calc(100% - 100px)*/
|
||||
right: 70px;
|
||||
}
|
||||
|
||||
.layui-tab-content {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.layui-tab-item {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ÄÚÇśżňźÜŃůĘ˝*/
|
||||
.custom-iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layui-tab-title li:first-child > i {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.custom-nav {
|
||||
position: absolute;
|
||||
padding: 0px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 42px;
|
||||
background-color: #fff !important;
|
||||
color: #000;
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
border-left: 1px solid #e2e2e2;
|
||||
}
|
||||
|
||||
.custom-nav .layui-nav-item {
|
||||
line-height: 41px;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
.custom-nav .layui-nav-item a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.custom-nav .layui-nav-item a:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.custom-nav .layui-nav-item .layui-nav-more {
|
||||
top: 18px;
|
||||
border-top-color: rgba(0, 0, 0, 0.7);
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.custom-nav .layui-nav-item .layui-nav-mored {
|
||||
top: 12px;
|
||||
border-top-color: rgba(0, 0, 0, 0);
|
||||
border-bottom-color: rgba(0, 0, 0, 1);
|
||||
}
|
||||
|
||||
#div-updatePwd {
|
||||
padding: 15px;
|
||||
display: none;
|
||||
}
|
114
ect/nginx/boot/static/js/index.js
Normal file
@ -0,0 +1,114 @@
|
||||
layui.use(['layer', 'element', 'form'], function() {
|
||||
var $ = layui.$;
|
||||
var element = layui.element;
|
||||
var layer = layui.layer;
|
||||
var form = layui.form;
|
||||
|
||||
// 左侧导航条事件
|
||||
element.on('nav(menu)', function(data) {
|
||||
var options = eval('(' + this.getAttribute('data-options') + ')');
|
||||
var lay_id = 'tab_' + options.id;
|
||||
|
||||
// 如果存在选项卡,切换,否则创建
|
||||
if ($('[lay-id="tab_' + options.id + '"]').length > 0) {
|
||||
|
||||
element.tabChange('mainTabs', lay_id);
|
||||
} else {
|
||||
|
||||
// 创建
|
||||
var tab_content = '<iframe src="' + options.url + '" frameborder="0" class="custom-iframe"></iframe>';
|
||||
element.tabAdd('mainTabs', {
|
||||
title: options.title,
|
||||
content: tab_content,
|
||||
id: lay_id
|
||||
});
|
||||
|
||||
// 创建完后切换
|
||||
element.tabChange('mainTabs', lay_id);
|
||||
}
|
||||
});
|
||||
|
||||
// 操作
|
||||
element.on('nav(tab_operation)', function(elem) {
|
||||
var op = this.getAttribute('op');
|
||||
|
||||
if ('refresh' == op) {
|
||||
// 刷新当前页
|
||||
|
||||
} else if ('closeother' == op) {
|
||||
// 关闭其他页面
|
||||
|
||||
} else if ('closeall' == op) {
|
||||
// 关闭全部页面
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// 用户操作
|
||||
element.on('nav(userOperation)', function(elem) {
|
||||
var op = this.getAttribute('op');
|
||||
|
||||
// 修改密码
|
||||
if ('updatePwd' == op) {
|
||||
document.getElementById('form_updatePwd').reset();
|
||||
layer.open({
|
||||
type: 1,
|
||||
title: '修改密码',
|
||||
btn: ['确认'],
|
||||
content: $('#div-updatePwd'),
|
||||
area: '300px',
|
||||
yes: function(index, layero) {
|
||||
$('#pwd_submit').click();
|
||||
layer.close(index);
|
||||
},
|
||||
cancel: function() {
|
||||
console.log('cancel');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// 表单验证
|
||||
form.verify({
|
||||
pass: [/^[\S]{6,12}$/, '密码必须6-12位,且不能出现空格!'],
|
||||
confirmPwd: function(value, item) {
|
||||
if(value != $('#newPwd').val()) {
|
||||
return '两次输入的密码不一致!'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 提交修改密码表单
|
||||
form.on('submit(updatePwd)', function(data) {
|
||||
$.ajax({
|
||||
url: '/updatePwd',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: data.field,
|
||||
success: function(data) {
|
||||
if(200 == data.code) {
|
||||
layer.confirm('修改成功,请重新登录!', {'title': '系统提示'}, function(index_confirm) {
|
||||
|
||||
window.location.href = '/'
|
||||
layer.close(index_confirm);
|
||||
});
|
||||
} else {
|
||||
layer.alert(data.msg);
|
||||
}
|
||||
},
|
||||
error: function(err) {
|
||||
layer.alert('修改失败!');
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
// 退出系统
|
||||
$('#li-exit').click(function() {
|
||||
layer.confirm('确定退出系统?', {'title': '系统提示'}, function(index) {
|
||||
window.location.href = "/logout";
|
||||
layer.close(index);
|
||||
})
|
||||
});
|
||||
});
|
2
ect/nginx/boot/static/js/plugins/layui/css/layui.css
Normal file
@ -0,0 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/font/iconfont.eot
Normal file
402
ect/nginx/boot/static/js/plugins/layui/font/iconfont.svg
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/font/iconfont.ttf
Normal file
BIN
ect/nginx/boot/static/js/plugins/layui/font/iconfont.woff
Normal file
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/0.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/1.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/10.gif
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/11.gif
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/12.gif
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/13.gif
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/14.gif
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/15.gif
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/16.gif
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/17.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/18.gif
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/19.gif
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/2.gif
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/20.gif
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/21.gif
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/22.gif
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/23.gif
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/24.gif
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/25.gif
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/26.gif
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/27.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/28.gif
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/29.gif
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/3.gif
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/30.gif
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/31.gif
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/32.gif
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/33.gif
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/34.gif
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/35.gif
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/36.gif
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/37.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/38.gif
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/39.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/4.gif
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/40.gif
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/41.gif
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/42.gif
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/43.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/44.gif
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/45.gif
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/46.gif
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/47.gif
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/48.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/49.gif
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/5.gif
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/50.gif
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/51.gif
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/52.gif
Normal file
After Width: | Height: | Size: 777 B |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/53.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/54.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/55.gif
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/56.gif
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/57.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/58.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/59.gif
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/6.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/60.gif
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/61.gif
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/62.gif
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/63.gif
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/64.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/65.gif
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/66.gif
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/67.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/68.gif
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/69.gif
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/7.gif
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/70.gif
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/71.gif
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/8.gif
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
ect/nginx/boot/static/js/plugins/layui/images/face/9.gif
Normal file
After Width: | Height: | Size: 4.1 KiB |
@ -0,0 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.indicator(),e.elemItem.length<=1||(e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
@ -0,0 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
|
@ -0,0 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});
|