전체 글 338

[mysql] 멀티게시판 구현 설계

-- 게시판 종류를 저장하는 테이블 CREATE TABLE board_type ( type_id INT NOT NULL AUTO_INCREMENT, type_name VARCHAR(50) NOT NULL, PRIMARY KEY (type_id) ); -- 게시글 정보를 저장하는 테이블 CREATE TABLE board_post ( post_id INT NOT NULL AUTO_INCREMENT, board_type_id INT NOT NULL, title VARCHAR(100) NOT NULL, content TEXT, writer VARCHAR(50), created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_T..

Web/DB 2023.05.02

[mysql] with 절(가상테이블) 01

더보기 https://inpa.tistory.com/entry/MYSQL-%F0%9F%93%9A-WITH-%EC%9E%84%EC%8B%9C-%ED%85%8C%EC%9D%B4%EB%B8%94 [MYSQL] 📚 WITH (임시 테이블 생성) WITH (임시 테이블) SQL을 통해 빅데이터라 불리는 매우 크고 무거운 데이터를 다루는데, 새로운 결과를 원하고 저장할 때마다 table을 저장할 수 없다. 또한, 실무에서는 실제 실행 속도도 빠르게 inpa.tistory.com https://velog.io/@genieee/with%EC%A0%88-%EA%B0%80%EC%83%81%ED%85%8C%EC%9D%B4%EB%B8%94-%EA%B0%84%EB%8B%A8-%EC%A0%95%EB%A6%AC with절 (가상테..

Web/DB 2023.05.01

[Baedung] Best Practices for REST API Error Handling

더보기 https://www.baeldung.com/rest-api-error-handling-best-practices 링크의 포스팅 일자 2021.5.13 REST 는 Client가 서버의 resource에 access and manipulate 하는 stateless한 아키텍쳐이다 보통 REST service들은 HTTP를 활용한다 HTTP Status Codes 클라이언트가 HTTP 서버에 request하고 요청을 성공적으로 수신하면 서버는 해당 처리 여부를 response해준다 HTTP accomplishes this with five categories of status codes: 100-level (Informational) – server acknowledges a request //서버..

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (3)

3.4. Spring Type Conversion 더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#core-convert core.convert 패키지에서 일반적인 유형 변환 시스템을 제공한다. 시스템은 유형 변환 로직을 구현하기 위한 SPI와 런타임에 유형 변환을 수행하기 위한 API를 정의한다. Spring 컨테이너 내에서 이 시스템을 구현의 대안으로 사용하여 PropertyEditor외부화된 빈 속성 값 문자열을 필수 속성 유형으로 변환할 수 있다. 유형 변환이 필요한 애플리케이션의 모든 위치에서 공용 API를 사용할 수 있다. 3.4.1. Converter SPI SPI = Service Provid..

[운영체제] 정보란

정보의 최소 단위 => 두 가지 사건 중 하나가 발생했을 때 p(x) = 1/2 일 때 를 1 bit = 1 binary digit 을 말한다 정보의 양을 정확하게 알 수 있게 An information can be dfined as - a quantitative representation that measures the uncertainty 정보이 최소 단위 bit (binary digit) 8bit = 1byte 1M 1G 1T .... 정보의 처리 : 정보의 상태 변환 (0 에서 1, 1에서 0) bool 대수(Boolean Algebra) = NOT, AND, OR 모든 연산이 가능함 논리 게이트 : NOT, AND, OR, XOR, NAND, NOR 논리 회로 : IC, LSI, VLSI, UL..

IT공부 2023.04.29

[Data JPA] Specification

더보기 https://vladmihalcea.com/spring-data-jpa-specification/ the BaseJpaRepository from the Hypersistence Utils project, which is a better alternative to the default JpaRepository from Spring Data the JpaSpecificationExecutor, which provides the Spring Data Specification filtering methods 가져와야하는 검색 Specification 을 미리 인터페이스화 한다 @Repository public interface PostCommentRepository extends BaseJpaRepo..

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (2)

3.3. Bean Manipulation and the BeanWrapper ~3.3.2. Built-in PropertyEditor Implementations 더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-beans 3.3. Bean Manipulation and the BeanWrapper org.springframework.beans 패키지는 JavaBeans 표준을 준수한다. JavaBean은 인수가 없는 기본 생성자를 가진 클래스이며 예를 들어 bingoMadness라는 속성이 setBingoMadness(..) setter 메서드와 getBingoMadness() getter 메서드..

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (1)

더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#validation 3.1. Validation by Using Spring’s Validator Interface ~ 3.2. Resolving Codes to Error Messages Validation, Data Binding, and Type Conversion Validation을 business Logic으로 간주하면 장단점이 있고, Spring은 유효성 검사 및 데이터 바인딩을 위한 디자인을 제공하고 있다. Validation은 Web Layer에 연결되지않아야하고 localizer가 쉬워야하며 사용 가능한 모든 available validato..

728x90