jjzjj

o.a.c.c.C.

全部标签

ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() --调试发现HttpSession session无法读取数据

该开始一直按错误去进行查询 看到网上的主要解决方法:1.注入的数据类型加入注解@Autowired,2.service层添加注解@Service3.在controller层,添加注解@RestController而不是@Controller4.并在JSON数据前加上@RequestBody5.spring-boot包冲突,再pom.xml文件中删除这个包org.springframework.bootspring-boot-starter-webcompile针对后面抛出的异常java.lang.NullPointerException出现的原因就是当一个对象的值为空时,你没有判断为空的情况解

springboot三层架构解决报错信息:o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet

报错信息:2023-07-2321:20:50.175ERROR4380---[nio-8080-exec-1]o.a.c.c.C.[.[.[/].[dispatcherServlet]:Servlet.service()forservlet[dispatcherServlet]incontextwithpath[]threwexception[Circularviewpath[depts]:woulddispatchbacktothecurrenthandlerURL[/depts]again.CheckyourViewResolversetup!(Hint:Thismaybetheresu