因此,如果我的控制器在xxx.yyy.zzz.controllers中,而@ControllerAdvices类在xxx.yyy.zzz.exceptions中,那么就没有办法让它工作了吗?处理程序很简单:public class AccessDeniedExceptionHandler extends ResponseEntityExceptionHandler.RELEASE]
at org.thymeleaf.spring5.view.
我尝试启动在Spring Initializr中创建的演示应用程序。SpringBoot版本- 2.0.3。 我创建了index.html并将其放入resources/templates文件夹。当我启动spring-boot:run时,控制台中的一条消息显示: Tomcat started on port(s): 8080 (http) with context path '' 当我打开localhost:8080时,它