오류&에러/Spring

    [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]

    리액트에서 데이터를 넘겨받았더니 이런 에러가 발생했다. WARN : org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported] // 스터디별 List 출력 @RequestMapping(value = "calendarSelectStudy.do", method = RequestMethod.POST) @ResponseBody public List calendarSelec..

    스프링 RequestMethod.GET?POST? 405에러

    스프링 RequestMethod.GET?POST? 405에러

    스프링을 공부하던 어느날... 갑자기 Request method 'POST' not supported 405에러를 만났습니다. 405에러는 뭔가를 보낸거 같기는 한데 받아주는애가 이거를 할수 없어요~ 하는 에러라고 합니다! 왜 그런가했더니 @RequestMapping(value="/command.do", method=RequestMethod.POST) public String getCommand(Model model, @RequestParam("name") String name, String addr, String phone) { model.addAttribute("dto", new AddressDto(name, addr, phone)); return "get"; } 테스트해본다고 POST방식으로 전달을..

    스프링 에러 org.springframework.beans.factory.BeanCreationException

    스프링 에러 org.springframework.beans.factory.BeanCreationException

    스프링 수업을 받던 어느날... 오타가 생겼는지 예외가 발생했다는 에러메세지가 떳다.. org.springframework.context.support.AbstractApplicationContext refresh 경고: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'man' defined in class path resource [com/test04/applicationContext.xml]: Initialization of bean failed; ..

    [eclipse]Spring 설치후 Dynamic Web Project 생성 오류

    [eclipse]Spring 설치후 Dynamic Web Project 생성 오류

    최근 스프링을 설치하고나서부터는 Dynamic Web Project를 생성하려고 해도 Finish버튼이 활성화가 되지 않았습니다. 원인을 알아보니 스프링 신버전을 설치하면서 스프링의 설정이 기존의 설정을 건드려서 발생하는 문제인데요. 임시로 해결방법을 말씀드리겠습니다. 먼저 다이나믹 웹 프로젝트를 만들때 프로젝트 이름을 적어도 Finish 버튼 활성화가 되지않습니다. Next를 일단 눌러주세요! 이런 화면이 나올거에요! 폴더도 비어있고 뭐가 없네요... 비어있는 폴더를 클릭해서 Remove 해주세요. Add Folder를 클릭하면 위와 같은 창이 뜰거에요! src를 적어주시고 ok를 눌러주세요. (위에서 Remove를 안하시고 Edit 하셔서 수정하셔도 됩니다!) src폴더가 생겼습니다! 그리고 아래쪽 ..