본문 바로가기

HTTP18

SSR & CSR SSR :서버에서 완성된 HTML을 만들어서 보내주는 방식CSR : 서버는 데이터만 주고, 브라우저가 화면을 만드는 방식 2025. 7. 15.
Open Session in View (OSIV) OSIV (Open Session In View)면접관: 안녕하세요, 지원자님. 바쁘신데 와주셔서 감사합니다.지원자: 안녕하세요, 면접관님. 귀한 시간 내주셔서 감사합니다.면접관: 네, 그럼 바로 질문 시작하겠습니다. 저희가 Spring Boot 기반으로 개발을 하는데, JPA를 사용하고 있어요. 혹시 OSIV(Open Session In View) 개념에 대해 설명해주실 수 있을까요? 그리고 왜 이 개념이 중요한지, 어떤 역할을 하는지 궁금합니다.지원자: 네, OSIV는 JPA, 특히 Hibernate를 사용할 때 알아두면 좋은 개념입니다. 간단히 말씀드리면, HTTP 요청이 시작될 때부터 응답이 클라이언트에게 돌아갈 때까지 JPA의 영속성 컨텍스트(Hibernate의 Session)를 계속 열어두는 .. 2025. 7. 3.
URI, URL, URN URI (Uniform Resource Identifier)The broadest term for identifying a resource.Analogy: Any way to point out a person: their name, address, or ID number.Example: https://www.example.com/products/item123 (this URI identifies a specific product by its location) OR urn:ietf:rfc:2141 (this URI identifies a specific RFC document by its name).URL (Uniform Resource Locator)A type of URI that tells you w.. 2025. 6. 26.
Regular Expression(RegEx) . (Dot): Matches any single character (except newline).Example: a.b matches 'acb', 'a1b', 'a#b'.* (Asterisk): Matches the character immediately preceding it zero or more times.Example: a*b matches 'b', 'ab', 'aab', 'aaab'.+ (Plus): Matches the character immediately preceding it one or more times.Example: a+b matches 'ab', 'aab', 'aaab', but not 'b'.? (Question Mark): Matches the character immedi.. 2025. 6. 26.
Error Pages 400 Bad Request: Server can't understand your request (e.g., bad format). Analogy: Illegible order form.401 Unauthorized: You need to log in or provide valid credentials. Analogy: No membership card for a members-only club.403 Forbidden: You're not allowed to access this, even if logged in. Analogy: You're a member, but tried to enter a "staff only" area.404 Not Found: The requested page/resourc.. 2025. 6. 26.
Interceptor An interceptor is a component that intercepts web requests or responses, like a security checkpoint for data. It's primarily used for authentication, logging, or adding common functionality across your application.package com.tenco.blog._core.interceptor;import org.springframework.web.servlet.HandlerInterceptor;public class LoginInterceptor implements HandlerInterceptor { }package com.tenco.blog.. 2025. 6. 26.
Log-in & Log-out (Session based user validation) Session Management package com.tenco.blog.user;import jakarta.servlet.http.HttpServletRequest;import jakarta.servlet.http.HttpSession;import lombok.RequiredArgsConstructor;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.PostMapping;@RequiredArgsConstructor // DI@Controllerpublic class UserCo.. 2025. 6. 24.
EntityManager 2025. 6. 20.
Detail page {{> layout/header}} 수정 삭제 작성자 : {{board.username}} {{board.title}} {{board.content}} 댓글등록 댓글리스트 .. 2025. 6. 19.
Apache Commons Lang https://commons.apache.org/proper/commons-lang/ Lang – HomeCommons Lang The standard Java libraries fail to provide enough methods for manipulation of its core classes. Apache Commons Lang provides these extra methods. Apache Commons Lang provides a host of helper utilities for the java.lang API, notably String macommons.apache.orgCommons LangThe standard Java libraries fail to provide enough me.. 2025. 6. 19.
MIME? Media types (MIME types)A media type (formerly known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.The Internet Assigned Numbers Authority (IANA) is responsible for all official MIME types, and you can find the most up-to-date and complete list at the.. 2025. 6. 18.
Spring Blog Project 1. Spring initializr(DataJPA/Mustache/Web/Lombok/DevTool/H2/MySQL...)2. Git ignore setting(Win/Mac/Linux/Java/IntelliJ/VScode/Eclipse...)3. Environment Setting(UTF-8/Code Style...)4. Git local / remot reposit.5. application.properties > .yml6. 2025. 6. 18.
GET, POST, PUT, DELETE https://chromewebstore.google.com/detail/talend-api-tester-free-ed/aejoelaoggembcahagimdiliamlcdmfm?hl=ko Talend API Tester - Free Edition - Chrome 웹 스토어Visually interact with REST, SOAP and HTTP APIs.chromewebstore.google.compackage com.example.demo1.controller;import lombok.AllArgsConstructor;import lombok.Getter;import org.springframework.stereotype.Controller;import org.springframework.web.b.. 2025. 6. 17.
Spring boot 2025. 6. 17.
Web server & Web Application Server 2025. 6. 16.