전체 글
-
Spring Boot 기초 맛보기개발/프로그래밍 2023. 8. 14. 23:36
오늘부터는 제가 제일 메인으로 다루는 Spring Boot에 대해서도 알아보려고 합니다. 이번 포스팅에서는 기초 개념정도만 다뤄볼게요. Spring Boot는 개발자가 Spring Framework에서 프로젝트를 착수할 때 많은 작업을 줄여주고, 더욱 높은 생산성으로 개발이 가능하게 해주는 프레임워크입니다. 이번에는 Spring Boot의 특징과 장점, 그리고 간단한 예제 코드를 통해 Spring Boot의 간단한 사용법을 알아보겠습니다. 목차 Spring Boot의 특징 스프링 프레임워크 기반 Spring Boot는 스프링 프레임워크의 자동화된 구성을 기반으로 하고 있습니다. 기존의 스프링 기술들을 계속해서 사용할 수 있으며, IoC와 Spring MVC, AOP, JDBC 등 다양한 기능들을 사용할 ..
-
제이쿼리(jQuery) 기초 맛보기개발/프로그래밍 2023. 8. 13. 03:19
제이쿼리(jQuery)는 HTML 문서 객체를 제어하는 자바스크립트 라이브러리 중 하나로 매우 강력하고 유용한 기능들을 제공합니다. 이번 글에서는 제이쿼리의 기초적인 사용 방법과 주요 기능들에 대해 자세하게 알아보겠습니다. 목차 제이쿼리 시작하기 제이쿼리를 사용하려면 먼저 HTML 문서에 적용할 제이쿼리 라이브러리 파일을 불러와야 합니다. 일반적으로는 CDN을 이용하여 불러옵니다. 이제 제이쿼리를 사용해서 HTML 요소를 조작하고 이벤트 처리를 할 수 있습니다. HTML 요소 선택 제이쿼리를 사용하여 HTML 요소를 선택할 때는 CSS 선택자(selector)를 사용합니다. 제이쿼리는 모든 HTML 요소 노드를 다룰 수 있으며, 선택한 요소에 대해 다양한 조작을 할 수 있습니다. 선택 방법은 아래와 같습..
-
JSP에서 AJAX를 활용한 비동기 처리개발/프로그래밍 2023. 8. 11. 13:13
오늘도 JSP입니다. 이번 포스팅에서는 AJAX를 배워보려고 해요. AJAX는 자바스크립트와 XML을 이용하여 비동기적으로 서버와 브라우저가 데이터를 주고받을 수 있는 기술입니다. AJAX를 이용하면 페이지 전부를 새로고침하지 않고도 필요한 부분만 갱신할 수 있으므로, 더 나은 사용자 경험을 제공하는 동시에 서버 부하도 줄일 수 있습니다. JSP에서 AJAX를 활용한 비동기 데이터 처리를 구현하는 방법에 대해 설명하겠습니다. 목차 AJAX 기본 개념 AJAX는 비동기적으로 데이터를 처리하는 기술로, 일반적으로 jQuery나 JavaScript를 이용하여 구현합니다. AJAX 요청을 보내기 위해서는 $. ajax() 메서드나 $.post(), $.get() 메서드 등이 사용됩니다. 이 메서드들은 HTTP ..
-
JSP 태그 JSTL 사용방법개발/프로그래밍 2023. 8. 10. 23:12
오늘은 JSP에 대해 내용을 준비해 보았습니다. JSP 표준 태그 라이브러리 JSTL은 JSP 페이지의 코딩을 더 간결하고 이해하기 쉽게 만들어 주는 커스텀 태그 모음입니다. 오늘 포스팅에서는 JSTL의 주요 기능을 간략하게 살펴보고, 직접 적용해 볼 수 있는 예제까지 같이 살펴보겠습니다! 목차 JSTL 개념 JSTL은 웹 애플리케이션 개발자가 JSP 페이지에서 자주 사용하는 일반적인 기능을 처리하기 위한 여러 태그들을 제공합니다. JSTL은 코어 태그, 조건 태그, 반복 태그, 국제화(i18n) 및 형식 태그, SQL 태그, XML 태그로 분류할 수 있습니다. JSTL 설치 및 설정 JSTL을 사용하려면 먼저 관련 라이브러리를 다운로드하고, 아래와 같이 태그를 사용하기 위한 설정을 해야 합니다. 필요한..
-
MySQL 인덱싱과 성능 최적화개발/DB 2023. 8. 9. 23:40
오늘도 MySQL에 대해서 알아보려고 합니다. 오늘의 주제는 현업에서도 큰 효과를 봤던 인덱싱을 이용한 최적화에대해 알아보겠습니다. MySQL 데이터베이스에서 인덱싱은 데이터 검색 속도를 빠르게 하는 데 중요한 요소입니다. 그래서 MySQL 데이터베이스의 인덱싱과 성능 최적화 방법을 살펴보며, 실제로 적용해 볼 수 있는 간단한 예제 코드도 살펴보겠습니다. 목차 인덱싱 이해하기 인덱스는 데이터베이스에서 데이터를 빨리 찾을 수 있도록 도와주는 중요한 데이터 구조입니다. 인덱스는 책의 색인처럼 동작하며, 데이터 검색 시간을 크게 줄여줍니다. 인덱스를 사용하면 데이터 행의 물리적인 정렬과 상관없이 빠르게 데이터에 접근할 수 있습니다. 인덱스 종류 MySQL은 주로 다음의 인덱스 종류를 사용합니다: Primary..
-
MySQL과 NoSQL 비교하기개발/DB 2023. 8. 8. 23:16
오늘은 MySQL과 NoSQL을 비교해 보면서 파악해 보는 시간을 가져보겠습니다. MySQL은 관계형 데이터베이스로, SQL을 사용하여 데이터를 관리합니다. NoSQL은 스키마를 가지지 않는 데이터베이스로, 다양한 유형의 데이터를 저장할 수 있습니다. 예제 코드로도 간단하게 파악해보려고 합니다. 이번엔 Python에서 MySQL과 NoSQL 데이터베이스를 다루는 방법을 알아보고, 해당 모듈을 사용한 코드 예제를 다뤄보겠습니다. 목차 데이터 구조 MySQL은 관계형 데이터베이스(RDBMS)입니다. 데이터는 테이블(table)에 저장되며 관계된 테이블 간에 join 연산을 실행할 수 있습니다. MySQL은 데이터를 정형화된 형식으로 저장하며, 엄격한 데이터 일관성을 유지하는 데 적합합니다. NoSQL 데이터..
-
MySQL 외래키(FK) 제약조건 이해하기개발/DB 2023. 8. 7. 23:53
이번 시간에도 MySQL에 대해서 알아보려고 하는데요. 오늘 배울 MySQL 외래 키(Foreign Key) 제약 조건은 데이터베이스를 설계하고 구현하는 데 중요한 요소 중 하나입니다. 외래 키 제약 조건은 데이터 일관성 유지와 참조 무결성에 대한 보장을 제공합니다. 이 글에서는 MySQL에서 외래키 제약 조건의 작동 원리와 사용 방법에 대해 자세히 알아보겠습니다. 외래 키 제약 조건이란? 외래 키 제약 조건(Foreign Key Constraint)은 테이블 간 관계를 유지하기 위한 제약 조건입니다. 다른 테이블의 기본 키(Primary Key)와 연결된 컬럼이 현재 테이블의 외래 키가 됩니다. 아래는 Country 테이블과 City 테이블이라는 두 개의 테이블이 있습니다. City 테이블의 Count..
-
MySQL JOIN 간단하게 이해하기개발/DB 2023. 8. 6. 22:41
이번 포스팅에서는 MySQL에서 사용되는 INNER JOIN, LEFT JOIN, RIGHT JOIN 그리고 FULL OUTER JOIN 오늘은 MySQL 데이터베이스 관리 시스템에서 많이 사용되는 JOIN에 대해 알아보겠습니다. JOIN은 두 개 이상의 테이블에서 관련된 데이터를 가져와서 하나의 결과 집합으로 조합할 때 사용되는 기능입니다. MySQL에서는 여러 가지 JOIN 방식을 지원하며 각 JOIN 방식이 어떻게 데이터를 가져오는지 이해하고 알맞게 활용할 수 있다면 효율적인 데이터 추출이 가능합니다. 목차 INNER JOIN INNER JOIN은 두 테이블의 공통된 값을 기준으로 조인되며, 양쪽 테이블에서 일치하는 값만 결과 집합에 반환됩니다. 이 방식은 칼라 간의 일치하는 값이 있는지 찾아 합치..