일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바#Java#배열예시#연습#기초다지기
- 국비지원JAVA
- 개발자도서#개발자책#도메인#DDD#도메인주도개발시작하기#개발스터디#
- IntelliJ#인텔리제이#인텔리#단축키
- 국비지원#국비교육
- db#데이터베이스#오라클#sql
- java
- 국비지원JAVA#국비교육JAVA#국비지원자바#국비교육자바#JSP#SERVLET#서블릿#
- Java#JAVA#매개변수
- 국비지원JAVA#국비지원자바#프로그랭#JSP#국비지원JSP#국비교육JSP#웹개발자#코딩
- 개발자#it도서#도메인#DDD#ddd
- 자바
- html#HTML#프론트엔드#개발자#코딩#국비지원#국비교육#국비지원프론트엔드#국비지원HTML#국비지원html#국비프론트엔드
- 항해99 #항해플러스 #주니어개발자 #주니어개발자역량강화 #주니어개발자멘토링 #개발자사이드프로젝트 #코딩부트캠프 #코딩부트캠프후기
- Java#컴파일러#자바컴파일러#
- 국비지원#국비교육#국비지원자바#국비교육자바#css#HTML#JAVA
- spring#Spring#RequestBody#ResponseBody
- tibero#티베로#이중화#failvover
- Spring#spring#스프링#스프링프레임워크#스프링의존성주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- 항해플러스#항해#항해플러스3기#회고
- Java#java#자바#다오#디티오#브이오#dao#dto#vo
- Resource #
- Spring#spring#스프링#스프링프레임워크#스프링자동주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- #
- 국비지원자바#국비교육자바#국비지원java#국비교육java#자바스크립트#프론트엔드
- 프로그래밍
- 쿼리스트링#쿼리문자열#바인딩
- #java#JAVA#프로그래밍#웹개발자
- Java#정처기#비트연산자#정보처리기사
- Java#java#메모리영역#클래스로더#가비지컬렉터
- Today
- Total
목록전체 글 (196)
개린이 개발노트
인증 취약점 조치방 인증 취약점 조치방법 URL/ 파라미터 변조, 불충분한 세션 관리, 쿠키 변조, 디폴트/ 취약한 계정사용 [각 취약점 내용 및 대응방법은 '홈페이지 취약점 심층점검 가이드' 에 나온 내용] 취약한 인증 인증 및 세션 관리와 관련된 애플리케이션 기능의 구현 상 결함에 의해 발생되는 보안 약점 암호, 키, 세션 토큰 등이 노출되어 공격자가 사용자의 권한을 탈취 주요 취약점 3.1 URL/ 파라미터 변조, 3.2 불충분한 세션 관리, 3.3 쿠키 변조, 3.4 디폴트/ 취약한 계정사용 1 URL/파라미터 변조 내용 웹 서버에 전송되는 모든 HTTP 요청 값(URL 파라미터, Form 변수 등)을 조작하여 접근 권한이 없는 정보를 조회, 변경하고 인가 받지 않은 기밀정보를 유출하거나 악용 점..
톰캣(Tomcat) 관리자 페이지 접속하기 톰캣 내에는 배포된 프로젝트를 view 단으로 관리할 수 있는 페이지가 있는데, 바로 Tomcat Manager이다. Tomcat Manager는 이렇게 생겼다. Tomcat Manager에는 서버 관리를 위한 기능들을 구현해놓았다. Tomcat Manager는 'Tomcat url:port번호/manager/html' 로 접속이 가능하다. 그러나, Tomcat Manager 페이지에 들어가려면 아래와 같이 로그인이 필요하기에, 계정을 설정해줘야 한다. Tomcat Manager 페이지에 들어가려면 계정을 설정해줘야 한다. - Tomcat 계정 설정하기 서버에 있는 톰캣 폴더 내에 있는 'tomcat-users.xml' 클릭 파일 하단에 계정 관련 태그를 추가한..
태그의 value 속성 정의 및 특징 태그의 value 속성은 해당 옵션이 선택될 때 서버로 제출되는 값을 명시합니다. 태그와 태그 사이의 텍스트는 단지 브라우저가 드롭다운 리스트에 표시할 내용이며, value 속성값은 폼을 제출할 때 서버로 보내지는 값입니다. 만약 value 속성이 명시되지 않는다면, 해당 값은 요소 내의 텍스트로 자동 설정됩니다. 문법 속성값 설명 값 해당 옵션이 선택될 때 서버로 제출되는 값을 명시함. 예제 아메리카노 카페라테 카페오레 에스프레소 태그의 selected 속성 정의 및 특징 태그의 selected 속성은 페이지가 로드될 때 옵션 중에서 미리 선택되어지는 옵션을 명시합니다. selected 속성이 명시된 옵션은 드롭다운 리스트에 가장 먼저 표시되며, 페이지가 로드된 후..
Mybatis 사용시 쿼리문에 문자열 비교연산자나 부등호를 처리할 때가있습니다. 그러면 이렇게 사용하면 SQL안에 특수문자가 들어가도 문자열로 인식하기때문에 문제를 해결할수있습니다.
게시판 삭제 기능 구현 '게시판 수정(modify.jsp)' 페이지에서 '삭제' 버튼 추가와 버튼 기능 구현을 목표로 합니다. '삭제' 버튼을 눌렀을 때 해당 게시판 삭제가 이루어지고 '목록 페이지(list.jsp)'로 이동이 되며, 삭제가 완료되었다는 경고창을 띄울 것입니다. 순서 1. Mapper 처리 및 테스트 2. Service 처리 및 테스트 3. Controller 처리 4. View 처리 5. 테스트 1. Mapper 처리 및 테스트 쿼리문 테스트 '삭제' 기능에 사용될 쿼리문을 테스트 합니다. 삭제 기능에 사용할 쿼리문은 DELETE문입니다. WHERE 조건문에 '게시판 번호' 지정을 통하여, 특정 페이지만 삭제되도록 만듭니다. 1 2 3 delete from vam_board where ..
Chrome으로 디버깅하기 좀 더 복잡한 코드를 작성하기 전에, 디버깅이란 것에 대해 이야기해봅시다. 디버깅(debugging)은 스크립트 내 에러를 검출해 제거하는 일련의 과정을 의미합니다. 모던 브라우저와 호스트 환경 대부분은 개발자 도구 안에 UI 형태로 디버깅 툴을 구비해 놓습니다. 디버깅 툴을 사용하면 디버깅이 훨씬 쉬워지고, 실행 단계마다 어떤 일이 일어나는지를 코드 단위로 추적할 수 있습니다. 이 글에선 Chrome 브라우저에서 제공하는 디버깅 툴을 사용하도록 하겠습니다. 기능이 다양하고, Chrome에 익숙해지면 다른 브라우저에서 지원하는 디버깅 툴은 쉽게 익힐 수 있기 때문입니다. ‘Sources’ 패널 Chrome 버전에 따라 보이는 화면은 약간씩 다를 수 있습니다. 하지만 버전이 바뀌..
개발을 하다보면 매일 접하게 되는 것 중 하나가 상태코드가 아닌가 싶다. 프로젝트를 진행하면서 상태코드의 의미를 알고 있으면, 예외처리를 수월하게 할 수 있다는 것을 배웠다. 그래서 이번에는 HTTP상태코드가 무엇을 의미하는지 정리해 보려고 한다. 상태코드 정리 1-1. 1xx informational response(조건부 응답) 전송 프로토콜 수준의 정보 교환 100 Continue(계속) 이 임시적인 응답은 지금까지의 상태가 괜찮으며 클라이언트가 계속해서 요청을 하거나 이미 요청을 완료한 경우에는 무시해도 되는 것을 알려준다. 101 Switching Protocol(프로토콜 전환) 이 코드는 클라이언트가 보낸 Upgrade 요청 헤더에 대한 응답에 들어가며 서버에서 프로토콜을 변경할 것임을 알려준..
Jackson 이란? Java Object를 JSON으로 변환하거나 JSON을 Java Object로 변환하는데 사용할 수 있는 Java 라이브러리입니다. Jackson Github - https://github.com/FasterXML/jackson Jackson 특징 1.Stream API : 스트림 형식으로 데이터를 분석하고 생성하기 때문에 성능이 좋습니다. 2.Tree Model : XML의 DOM 처럼 Node 형태로 데이터를 다룰 수 있기 때문에 유연성이 좋습니다. 3.Data Binding : POJO 기반의 자바 객체들을 JSON으로 변환시킬 수 있습니다. Maven 설정 jackson-databind 라이브러리는 jackson-core 및 jackson-annotation 라이브러리의 의..
보통 Map으로 변환하다보면 타입체크 경고가 자꾸 난다. 신경이 쓰여서 안나게 코딩하는 버릇이 생기는거 같다. 아래와 같이 사용할 수 있다. String json = "json"; ObjectMapper mapper = new ObjectMapper(); TypeReference typeRef = new TypeReference() {}; HashMap map = mapper.readValue(json, typeRef);
1. 브레이크 포인트 저장 에러가 발생하는 라인 혹은 의심이 가는 변수를 추적할 라인 위치에 브레이크 포인트를 지정하고 프로그램을 디버깅하면, 해당 라인을 실행할 때 디버거가 작동하고 브레이크 포인트를 설정한 곳에서 부터 라인별로 자세히 관찰 가능 브레이크포인트 설정방법 빨간 박스 안에서 브레이크 포인트를 설정할 곳에 더블클릭 혹은 우클릭해서 [Toggle Breakpoint]를 선택.(디버깅 도중에도 추가로 설정 가능) 브레이크 포인트 해제 방법 마우스로 다시 더블클릭 혹은 마우스 우클락하여 [Disable Breakpoint] 선택 2. Debug View 오픈 [Window-Show View-Debug,Variables,Breakpoints,Expressions]클릭 그런 다음 [Show Debug..