摘要: 出现这个异常说明了跳转页面的url无对应的值. 原因1: Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包 原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件. 原因2: 在springboot的配置文件:application.y 阅读全文
posted @ 2021-11-18 14:52 欣欣点灯 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 在pom.xml文件添加 spring-boot-starter-web依赖 <!-- SpringBoot Web容器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star 阅读全文
posted @ 2021-11-18 09:12 欣欣点灯 阅读(258) 评论(0) 推荐(0) 编辑