[Spring] 스프링 핵심 원리 - 기본편 (1)
객체 지향설계와 스프링 1. 이야기 - 자바 진영의 추운 겨울과 스프링의 탄생 기존 EJB(Enterprise Java Beans) 사용 but 비싼 비용, 복잡하고 어려움, 느림 Spring -> EJB 컨테이너 대체, 단순함 Hibernate -> EJB 엔티티빈 기술 대체, JPA(Java Persistence API) 표준 정의 2. 스프링이란? 필수 : 스프링 프레임워크, 스프링 부트 선택 : 스프링 데이터, 스프링 세션, 스프링 시큐리티, 스프링 REST Docs, 스프링 배치, 스프링 클라우드 핵심 : 객체 지향 언어인 자바 언어 기반의 프레임워크 스프링 프레임워크 핵심 기술 : 스프링 DI 컨테이너, AOP, 이벤트, 기타 웹 기술 : 스프링 MVC, 스프링 WebFlux 데이터 접근 기술..
2023. 1. 9.
[Python] String에 변수 사용(f-string)
기존 python에서는 string에 변수를 넣기 위해서는 C와 유사한 아래와 같은 형식이나, str = "Hello, World, My name is %s, I'm %d years old" % (name, age) format()을 사용하여 변수를 매핑하여 사용하였다. str = "Hello, World, My name is {}, I'm {} years old".format(name, age) Python 3.6부터 f-string을 지원하여 이를 사용 가능하다. str = f"Hello, World, My name is {name}, I'm {age} years old"
2022. 11. 13.
[LeetCode] 83. Remove Duplicates from Sorted List
Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted as well. Example 1: Input: head = [1,1,2] Output: [1,2] Example 2: Input: head = [1,1,2,3,3] Output: [1,2,3] Constraints: The number of nodes in the list is in the range [0, 300]. -100
2022. 10. 27.