본문 바로가기 메뉴 바로가기

얼렁뚱땅 개발자

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

얼렁뚱땅 개발자

검색하기 폼
  • DevJMS (134)
    • Web Development (93)
      • Asp (9)
      • AngluarJS (2)
      • Jsp (29)
      • JavaScript (7)
      • JQuery (6)
      • Spring (23)
      • Spring OAuth2 (4)
      • Spring batch (1)
      • Spring boot (1)
      • Spring security (1)
      • 전자정부프레임워크 (2)
      • 기초 (7)
      • APNS (1)
    • WAS (Web Application Server.. (0)
      • Apache + Tomcat (0)
      • Webtob + Jeus (0)
    • Mysql (0)
    • Study (33)
      • AWS (0)
      • BigData (0)
      • Design Pattern (0)
      • Github (0)
      • JUnit (2)
      • Refactoring (0)
      • RESTful (5)
      • Network (0)
      • Usefull (1)
      • JPA (15)
      • Maven (1)
      • Node.js (0)
      • Web Programing (0)
      • Web socket (1)
      • Log stash (2)
      • gradle (6)
    • 보안 (0)
    • ETC (0)
      • etc (0)
    • IDE (0)
      • Eclipse (0)
    • 오토바이 (3)
      • 슈퍼커브 17.05 여행 (0)
      • 슈퍼커브 16.08 여행 (3)
  • 방명록

Web Development/Spring (23)
log4j 설정

log4j 설정 방법. http://devofhwb.tistory.com/20

Web Development/Spring 2016. 10. 27. 11:46
Springframework xml h2 database setting

pom.xml com.h2database h2 1.4.192 dataSource.xml h2 console 설정 http://www.h2database.com/html/quickstart.html#h2_console

Web Development/Spring 2016. 10. 27. 11:45
Spring DataSource Query Logging

POM.xml 추가 후 org.lazyluke log4jdbc-remix 0.2.7 요런식으로 감싸면 된다~

Web Development/Spring 2016. 10. 27. 11:40
Spring Transaction

스프링에서 선언적 트랜젝션은 만족할 만큼 세밀하지 못하다. 그렇다고 그 방법이 잘못된 것은 아니다. 우선 Transaction을 적용하는 방법은 Spring의 TransactionTemplate를 이용해 메소드에 트랜젝션 범위를 프로그래밍 하는 것이다. TransactionTemplate도 콜백 메커니즘을 활용한다. public void saveSpittle(final Spittle spittle) { transactionTemplate.execute(new TransactionCallback() { try{ spitterDao.saveSpittle(spittle); } catch (RuntimeException e) { txStatus.setRollbackOnly(); throw e; } return ..

Web Development/Spring 2016. 10. 27. 11:40
@PreConstruct, @PostConstruct

@PreConstruct 컨테이너에서 객체를 제거하기 전에 해야할 작업을 수행하기 위해 사용 - 위 내용이 먼말인지 이해가 안되지만 -_-; Pre 니까 post와는 다른 순으로 객체 속성이 주입전에 메서드 실행인 것 같다. @PostConstruct : - 의존하는 객체를 설정한 이후에 초기화 작업을 수행할 메서드에 적용 - init-method 속성과 같음 // class 내에 java의 선언적 함수를 이용하면 @PreContruct 같은 느낌을 할 수 있지 않을까 생각해본다.

Web Development/Spring 2016. 10. 27. 11:39
Spring interceptor request.setAttribute 전달

public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if ((null == request.getSession(false)) || (null == request.getSession(false).getAttribute( "user"))) { System.out.println("user logged out..."); RequestDispatcher rd = request.getRequestDispatcher("loginForm.htm"); rd.forward(request, response); return false; } return super.preH..

Web Development/Spring 2016. 10. 27. 11:38
spring controller redirect post로 전달하는 방법

출처 : http://hellogk.tistory.com/86/** * redirect 신규페이지로 넘기기 위한 컨트롤러 * @return */ @RequestMapping("/redirectnewpage") public String redirectnewpage(RedirectAttributes redirectAttributes){ Map map = new HashMap(); map.put("key1", "value1"); map.put("key2", "value2"); redirectAttributes.addFlashAttribute("vo", map); return "redirect:/herepage"; }

Web Development/Spring 2016. 10. 27. 11:38
Mybatis 빈값 비교시 잘안될때 이유는 이것 때문이다.

parameterType="string" 으로하고 이게 안먹었는데 뭐 ''와 ""를 변경해서 하라는 둥 여러 이야기가 있었다.근데 다안되어서 결국엔 아래와 같은 이유를 찾고parameterType을 Map으로 해서 넘겨서 해결했다. 출처 : http://seongsland.tistory.com/131 - ibatis부터 있던 고질적 버그1. ${test}

Web Development/Spring 2016. 8. 12. 15:49
CSRF prevention 관련 설정 내용 입니다.

웹 보안 툴? 인지 어떤 건지 아무튼 돌려서CSRF 에 관련된 웹 취약점이 발생되었습니다. 그래서 구글에서 검색하던 중 소스를 발견해서 적용해보았습니다. Csfr 공격이란?http://ko.wikipedia.org/wiki/%EC%82%AC%EC%9D%B4%ED%8A%B8_%EA%B0%84_%EC%9A%94%EC%B2%AD_%EC%9C%84%EC%A1%B0 사이트 간 요청 위조(또는 크로스 사이트 요청 위조, 영어: Cross-site request forgery, CSRF, XSRF)는 웹사이트 취약점 공격의 하나로, 사용자가 자신의 의지와는 무관하게 공격자가 의도한 행위(수정, 삭제, 등록 등)를 특정 웹사이트에 요청하게 하는 공격을 말한다.유명 경매 사이트인 옥션에서 발생한 개인정보 유출 사건에서 ..

Web Development/Spring 2016. 8. 12. 15:36
spring interceptor request.setAttribute 전달

public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if ((null == request.getSession(false)) || (null == request.getSession(false).getAttribute( "user"))) { System.out.println("user logged out..."); RequestDispatcher rd = request.getRequestDispatcher("loginForm.htm"); rd.forward(request, response); return false; } return super.preH..

Web Development/Spring 2016. 8. 12. 15:32
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 네이버 블로그
  • 프로그래머의 삶
  • 수석개발자
  • 보헤미안식 유희
  • 갓
  • 컴퓨터 초보의 개발자료
  • 시나몬 브레드
TAG
  • jstl 커스텀 태그
  • POI EXCEL
  • github image 첨부시 주의할점
  • java 특정문자 갯수구하기
  • java 압축 풀기
  • jstl split
  • Kotlin
  • MyBatis 팁
  • java 설정
  • Database#transaction
  • 코루틴
  • jstl foreach
  • mybatis Merge
  • java 설치
  • spring property
  • spring ExcelView
  • java calendar
  • 전자정부프레임워크 tiles
  • JSP 세션
  • JSTL
  • java 폴더구조 구하기
  • POE Excel 만들기
  • coroutine
more
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바