Java/Spring 썸네일형 리스트형 Spring WebUtils Session 관련 세션 생성WebUtils.setSessionAttribute(request, "sessionNameAlias", obj); 세션 특정 값 가져오기(WebUtils.getSessionAttribute(request, "sessionNameAlias")).getParameterName(); ex. 세션 값 가져온 뒤 model에 바로 적용 시modelName.setParameterName(((voName)WebUtils.getSessionAttribute(request, "sessionNameAlias")).getParameterName()); 더보기 get type parameter 값(ex.http://xxx.com?id=aaa 에서 id=aaa 값)을 url에서 숨기고 싶을경우.. RedirectView rv = new RedirectView(“/test.do”);rv.setExposeModelAttributes(false);return new ModelAndView(rv); 더보기 Json 통신 시 "org.codehaus.jackson.map.JsonMappingException" 해결 방법 Json 통신 시 "org.springframework.web.servlet.view.json.MappingJacksonJsonView" 를 사용할 경우 해당 오류가 발생할 수 있다.이경우 Model의 Getter 부분에 @JsonIgnore Annotation을 넣어주면 해결된다. ex)@JsonIgnore public MultipartFile getMemberPhotoFile() {return memberPhotoFile;} 더보기 아래 게시판을 Spring+iBatis 로 수정.. 뭐 별건 없고 로그인 추가,세션 추가, 자질구레한 쿼리를 iBatis로 간단하게 작성. 더보기 Spring을 이용한 간단한 게시판 꼬치상이 올리길래 나도 올려봄 ㅡ,.ㅡ; 답변달기 까지 해놨으니 덧글이야 뭐 비슷하게 달면 될것이고.. 네비게이션 붙여야 하는데 구찮네 -_-;컄 나중에 만들던지 하지 머..쩝 -.-; 디자인 따윈 아웃오브 안중 한줄 요약 : 등록, 수정, 삭제, 답변 가능 더보기 이전 1 다음