db값 띄어쓰기 출력
·
DEV/Spring
참고 : http://locochico.tistory.com/39 HashMap map = new HashMap(); String wd; DTO dto = sqlSession.selectOne("com.helloworld.test.dao.DAO.selectViewPage", map); //DB값 불러와 map에 넣어준다. wd = dto.getWr_content(); wd = wd.replaceAll("\r\n", " "); wd = wd.replaceAll("\u0020", " "); model.addAttribute("wr_content", wd); //view page에서 wr_content로 사용한다.