[문제]
DAO, Service, Controller를 만들고 테스트를 하는 도중 JUnit 테스트에서
java.lang.AssertionError Content type not set 에러가 남.
[해결]
Controller의 메소드 부분에 @ResponseBody 어노테이션을 붙여줘서 해결했다.
[문제]
DAO, Service, Controller를 만들고 테스트를 하는 도중 JUnit 테스트에서
java.lang.AssertionError Content type not set 에러가 남.
[해결]
Controller의 메소드 부분에 @ResponseBody 어노테이션을 붙여줘서 해결했다.