티스토리 뷰

@ComponentScan ((basePackages = {"WebMvcContextConfiguration이 들어가있는 패키지"})

 

를 실행하면

Error creating bean with name 'resourceHandlerMapping' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: 

Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: 

Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: 

Factory method 'resourceHandlerMapping' threw exception; 

nested exception is java.lang.IllegalStateException: No ServletContext set

 

에러가 뜬다

 

해결방법: WebMvcContextConfiguration 없는 패키지 경로 설정 (dao, service)

 

'JAVA > Spring' 카테고리의 다른 글

jdbcTemplate multiple queries 에러  (0) 2019.12.26
[Spring] Service / Transaction  (0) 2019.10.14
[Spring] RowMapper  (0) 2019.10.12
[Spring] Connection Pool / Spring JDBC  (0) 2019.10.10
[Spring] Controller(Handler)  (0) 2019.10.09
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
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
글 보관함