springboot相关
哈喽沃德!
这个人很懒,什么都没有留下……
展开
-
springboot中使用拦截器、过滤器
拦截器的使用 导入相关依赖: <!--webmvc--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.8</version> </dependency> 写配置类: MyInterceptor: /** * 自定原创 2021-07-11 12:00:35 · 53 阅读 · 0 评论 -
启动失败:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
spring boot启动失败 报错内容: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. 解决方法: 加上依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web<原创 2021-07-10 21:24:09 · 196 阅读 · 0 评论