본문 바로가기

반응형

분류 전체보기

(484)
클래스 클래스는 객체지향 프로그래밍에서 객체가 가지는 특징이나 행동패턴 등을 규정하는 틀입니다 (그래서 클래스를 쿠키커터라고도 함). 클래스는 특성을 규정하는 필드, 행위를 규정하는 매서드, 클래스 생성에 필요한 생성기를 가집니다. 클래스의 개념은 사용하는 언어가 다르더라도 대동소이하지만 사용법은 언어마다 조금씩 다르므로 오늘은 자바 클래스를 다루어보겠습니다. HTML 삽입 미리보기할 수 없는 소스
스위치 스위치는 조건처리를 위한 코드로 대부분의 언어에서 제공되며 근본적으로 이프 엘스 구문과 동일한 기능을 수행합니다. 이프 엘스 구문에 비해 가독성이 높은 장점이 있습니다. 자바 스위치문법을 살펴보겠습니다. HTML 삽입 미리보기할 수 없는 소스
Switch Like if-else, the switch produces a result or runs a certain code based on conditions. Switch provides a better readability compared to if-else. Let's see the syntax of the switch in Java HTML 삽입 미리보기할 수 없는 소스
Tabulator - Dynamic Column Values Let's see how we can diaplay field values of Tabulator dynamically on the JSP with data fetched from a DB. The way it is done is to use the Mutators module to manipulate the orginal data in a column of the table by calling a function as value for the Mutator Implementaiont Add the Mutators module and function as its value. The first parameter for the function represents the original data in the ..
타뷸레이터 - 컬럼 값 동적적용 (뮤테이터) 데이터베이스에서 전송된 값을 JSP에서 타뷸레이터를 통해 표시할 때 동적으로 필드값을 적용하는 방법을 살펴보겠습니다. 방법은 필드명, 필드값을 지정하고 Mutators에서 함수를 호출하면 칼럼에 표시된 데이터와 추가로 전달가능한 매개변수를 통해서 구현하는 방식입니다. 구현하기 Mutators 모듈을 추가하고 함수추가 후 매개변수로 전달하는데 첫 번째 매개변수는 'value'가 필드에 표시되는 데이터, 두 번째 매개변수는 추가로 전달하는 데이터입니다. 해당 함수에서 반환되는 데이터가 화면에 표시되며 해당 보기에서는 터너리 식을 사용하여 데이터베이스에서 전송한 두 필드 중 하나의 필드가 널인 경우 다른 필드의 값이 표시되도록 구현하였습니다. {title: "title", field: "val1", mutat..
Logistics Delivery Status (Lotte, Post Office) In this post, we will see how we can add real time delivery status search depending on the kind of different logistics companies. Usually, this can be done by adding the invoice numbers to the search URL and the examples based on the logistics companies follows as below. Lotte https://www.lotteglogis.com/home/reservation/tracking/invoiceView?InvNo= One thing to note here is that when copy and pa..
택배사 운송 조회 (롯데, 우체국) 배송추적 기능 구현 시 배송사에 따른 배송상태 조회하는 방법을 알아보겠습니다. 주로 송장번호 등을 조회 페이지 주소에 쿼리로 추가하는 방식을 사용하며 배송사별 주소와 형식은 아래와 같습니다. 롯데택배 https://www.lotteglogis.com/home/reservation/tracking/invoiceView?InvNo= 주의할 점은 크롬에서 ?InvNo 부분이 자동으로 ?invNo 변환되면서 조회가 불가능한 경우가 있는 데 쿼리는 대소문자를 구분하므로 반드시 ?InvNo 형태로 들어가야합니다. 참고로 아래와 같이 폼 데이터로 전송하는 것도 가능합니다 (이 경우 송장번호가 주소에 표시되지 않음). 우체국택배 https://service.epost.go.kr/trace.RetrieveDomRigiT..
NPM - Nodemon Usually, to reflect the changes in the backend on the front end when developing an app, we have to save changes and rerun the server. Nodemon is a live server library that reflects the changes automatically without us having to do so. Implementation Installing Nodemon npm i nodemon Running Once installed we can either run the nodemon directly using the path or NPM commend ▶ Running Directly Run ..

728x90