일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- BFS
- MYSQL
- 시나공
- SW봉사
- 알고리즘
- SQL
- kotlin
- 프로그래머스
- 파이썬
- 백준알고리즘
- 데이터베이스
- 회고
- 코딩교육봉사
- 소프티어
- 문제풀이
- 코틀린
- 자바
- 공부일지
- 스프링
- CJ UNIT
- programmers
- 정보처리산업기사
- 코딩봉사
- 1과목
- java
- 백준 알고리즘
- 백준
- C++
- python
- softeer
- Today
- Total
JIE0025
[error] javax.servlet.ServletException: No adapter for handler SpringBoot 본문
[error] javax.servlet.ServletException: No adapter for handler SpringBoot
sdoaolo 2022. 12. 17. 01:29✅ 에러 메세지
javax.servlet.ServletException: No adapter for handler SpringBoot
No adapter for handler [com.FlagHome.backend.v1.category.controller.CategoryController@36a848f7]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler
at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1305) ~[spring-webmvc-5.3.22.jar:5.3.22]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1053) ~[spring-webmvc-5.3.22.jar:5.3.22]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.22.jar:5.3.22]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.22.jar:5.3.22]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.22.jar:5.3.22]
✅ 해결 방법
RestController에 지정하던 Url 경로를 @RequestMapping으로 빼준다.
@RestController("/v1/categories")
public class CategoryController {
@RestController
@RequestMapping("/v1/categories")
public class CategoryController {
참고자료
javax.servlet.ServletException: No adapter for handler SpringBoot起動時のエラー - 【Spring Hack】
javax.servlet.ServletException: No adapter for handler SpringBoot起動時のエラー 2021-02-09 23:36:00.340 ERROR 13512 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path
springhack.com
'Application > 이슈, 트러블슈팅' 카테고리의 다른 글
[JPA] object references an unsaved transient instance - save the transient instance before flushing (0) | 2022.12.30 |
---|---|
Querydsl "No sources given; nested exception is java.lang.IllegalArgumentException: No sources given (0) | 2022.12.22 |
[HTTP] 405 Method Not Allowed (0) | 2022.12.17 |
[SpringBoot] build.gradle 설정 오류 (0) | 2022.12.12 |
[SQL] Error 1093 : MySQL에서 수행 시 자신테이블의 데이터 사용불가 (0) | 2020.02.19 |