pooney
HttpMediaTypeNotSupportedException
Spring 2020. 1. 15. 23:03

ajax를 사용시 type을 post를 이용할 때 controller에서 @requestbody를 사용해서 받을 때 아래와 같은 에러가 발생한다. application / x-www-form-urlencoded를 사용할 때 Spring이 그것을 RequestBody로 이해하지 못한다는 것이다다. 따라서 이것을 사용하려면 @RequestBody 주석을 제거해야합니다 . HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 클라이언트 $.ajax({ url: "/scheduler/user/usercheck", type: "post", data: usercheck..

Spring 버전 업 시 에러
Spring 2020. 1. 13. 19:06

자바 1.6 -> 1.8 , Spring 4.1.3 -> 5.1.3 로 업글 시 아래와 같은 에러 발생 1.6 4.1.3.RELEASE 1.6.10 1.6.6 1.8 5.1.3.RELEASE 1.6.10 1.6.6 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: F..

article thumbnail
Spring mail 보내기
Spring 2020. 1. 3. 00:04

web.xml(mail-context.xml를 읽어 빈등록) contextConfigLocation /WEB-INF/spring/*.xml pom.xml org.springframework spring-context-support ${org.springframework-version} javax.mail javax.mail-api 1.5.3 com.sun.mail javax.mail 1.5.3 mail-context.xml (port를 465와 587이 존재하는데 587를 사용해야한다.) smtp.gmail.com 587 아이디@gmail.com 패스워드 smtp true true javax.net.ssl.SSLSocketFactory true MailSendException: Mail server co..