<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
@Bean(name="jsonView")
public View mappingJacksonJsonView(){
return new MappingJackson2JsonView();
}
@RequestMapping(value = "/post/{seq}", method = RequestMethod.DELETE)
public String delete(@PathVariable("seq") Long seq, Model model, HttpSession session) throws Exception {
BoardVO boardVO = service.getBoardVO(seq);
UserVO userVO = (UserVO) session.getAttribute("userVO");
checkUserNull(userVO);
ResultMap resultMap = service.deleteVO(seq, userVO, boardVO);
model.addAllAttributes(resultMap);
return"jsonView"
}