解决新建项目找不到页面问题

原因一:

  主启动类位置要放在与controller包同级目录下

原因二:

  缺少thymeleaf启动依赖

  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
  </dependency>

  

posted @ 2023-05-20 10:33  落"  阅读(52)  评论(0)    收藏  举报