请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

level 不按照层级递归,还有id不是从0开始的

图片描述

18-Mar-2020 20:49:03.105 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/usr/local/Cellar/tomcat/9.0.29/libexec/webapps/manager]
18-Mar-2020 20:49:03.130 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/Cellar/tomcat/9.0.29/libexec/webapps/manager] has finished in [25] ms
18-Mar-2020 20:49:26.540 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring': initialization started
18-Mar-2020 20:49:26.543 信息 [http-nio-8080-exec-6] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Wed Mar 18 20:49:26 CST 2020]; parent: Root WebApplicationContext
18-Mar-2020 20:49:26.544 信息 [http-nio-8080-exec-6] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
18-Mar-2020 20:49:26.899 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/sys/dept/tree.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.tree()
18-Mar-2020 20:49:26.900 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/sys/dept/dept.page]}" onto public org.springframework.web.servlet.ModelAndView com.mmall.controller.SysDeptController.page()
18-Mar-2020 20:49:26.900 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/sys/dept/save.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.saveDept(com.mmall.param.DeptParam)
18-Mar-2020 20:49:26.900 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/sys/dept/update.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.updateDept(com.mmall.param.DeptParam)
18-Mar-2020 20:49:26.903 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/test/hello.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.hello()
18-Mar-2020 20:49:26.903 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/test/validate.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.validate(com.mmall.param.TestVo) throws com.mmall.exception.ParamException
2020-03-18 20:49:26.959 [http-nio-8080-exec-6] INFO  org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 6.1.2.Final
18-Mar-2020 20:49:27.554 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Wed Mar 18 20:49:26 CST 2020]; parent: Root WebApplicationContext
18-Mar-2020 20:49:27.601 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Wed Mar 18 20:49:26 CST 2020]; parent: Root WebApplicationContext
18-Mar-2020 20:49:27.709 信息 [http-nio-8080-exec-6] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring': initialization completed in 1169 ms
2020-03-18 20:49:27.912 [http-nio-8080-exec-6] INFO  com.mmall.common.HttpInterceptor - request start. url:/sys/dept/save.json/, params:{"name":["技术部"],"seq":["1"],"remark":["技术部"]}
2020-03-18 20:49:28.197 [http-nio-8080-exec-6] INFO  com.mmall.common.HttpInterceptor - request finished. url:/sys/dept/save.json/, cost:285
2020-03-18 20:49:28.197 [http-nio-8080-exec-6] INFO  com.mmall.common.HttpInterceptor - request completed. url:/sys/dept/save.json/, cost:285
2020-03-18 20:50:58.694 [http-nio-8080-exec-9] INFO  com.mmall.common.HttpInterceptor - request start. url:/sys/dept/save.json/, params:{"name":["后端开发"],"seq":["1"],"parentId":["1"]}
2020-03-18 20:50:58.709 [http-nio-8080-exec-9] INFO  com.mmall.common.HttpInterceptor - request finished. url:/sys/dept/save.json/, cost:15
2020-03-18 20:50:58.710 [http-nio-8080-exec-9] INFO  com.mmall.common.HttpInterceptor - request completed. url:/sys/dept/save.json/, cost:16
2020-03-18 20:51:51.270 [http-nio-8080-exec-2] INFO  com.mmall.common.HttpInterceptor - request start. url:/sys/dept/save.json/, params:{"name":["前端开发"],"seq":["2"],"parentId":["1"]}
2020-03-18 20:51:51.278 [http-nio-8080-exec-2] INFO  com.mmall.common.HttpInterceptor - request finished. url:/sys/dept/save.json/, cost:8
2020-03-18 20:51:51.278 [http-nio-8080-exec-2] INFO  com.mmall.common.HttpInterceptor - request completed. url:/sys/dept/save.json/, cost:8

正在回答 回答被采纳积分+3

1回答

Jimin 2020-03-19 01:09:52

你好,你这里id为10和11那两行level计算的有问题,你查下计算level的代码是否正确,他们肯定不会是0

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信