Source(33)
-
HttpServletRequest 객체 생성
ServletWebRequest servletContainer = (ServletWebRequest)RequestContextHolder.getRequestAttributes(); HttpServletRequest request = servletContainer.getRequest(); HttpServletResponse response = servletContainer.getResponse(); https://kgvovc.tistory.com/31 Servlet 요청 정보 처리 (HttpServletRequest) 요청정보 처리 - HttpServletRequest 이번 절에서는 요청정보가 무엇인지, 그리고 요청정보 추출과 관련된 주요 API들의 종류와 기능에 대해 알아보겠습니다. 브라우저에 적절한 U..
2021.12.29 -
java 올해 첫날 calendar
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.MONTH, 0); calendar.set(Calendar.DATE, 1); String defaultDate = sdf.format(calendar.getTime());
2021.12.29 -
bootstrap modal callback
$('#code').on('shown.bs.modal', function (e) { // do something... })
2021.12.22 -
optional, stream
Optinal.ofNullable(bsnsId).ifPresent(id -> { } Optional.ofNullable(testMapper.selectTestList()).ifPresent(testList -> { testList.forEach(testVO -> { } } https://www.daleseo.com/java8-optional-before/ 자바8 Optional 1부: 빠져나올 수 없는 null 처리의 늪 Engineering Blog by Dale Seo www.daleseo.com https://www.daleseo.com/java8-optional-after/ 자바8 Optional 2부: null을 대하는 새로운 방법 Engineering Blog by Dale Seo www.da..
2021.12.16 -
ajax 이후 hover 이벤트
$(document).on({ mouseenter: function () { $(this).addClass('border-primary'); $(this).addClass('border-2'); $(this).addClass('fw-bold'); }, mouseleave: function () { $(this).removeClass('border-primary'); $(this).removeClass('border-2'); $(this).removeClass('fw-bold'); } }, '.sideNavDiv');
2021.12.14 -
th:onclick
https://hoyy.github.io/posts/springboot-wiki-6-thymeleaf WIKI - Thymeleaf 문법 알아보기 this should contain a proper description hoyy.github.io
2021.12.13