전체 글에 해당하는 글 293

  1. 무중단 배포 삽질 2025.02.13

    보호되어 있는 글입니다.


  2. Cacheable 삽질 2025.02.05

    서버 내에서 자주 쓰이는 값을 캐싱처리해야 할 일이 있었다.단순히 String이 아니라, 좀 더 편하게 꺼내 쓰기 위해 자바 객체로 담아 redis 캐시로 저장하기로 했다! 하지만...DefaultSerializer requires a Serializable payload but received an object of type... 기본 직렬화를 하기 위해서는 Serializable한 데이터가 있어야 한다는 에러 메시지가 떴다. redis에 캐시를 저장할 때, redis는 데이터를 hash해서 저장한다.그렇기 때문에, redis에 저장할 클래스는 Serializable을 implement해서 만들어야한다! Servlet.service() for servlet [dispatcherServlet] in co..


  3. [LeetCode] Max Number of K-Sum Pairs 2024.12.11

    https://leetcode.com/problems/max-number-of-k-sum-pairs/description/?envType=study-plan-v2&envId=leetcode-75 You are given an integer array nums and an integer k.In one operation, you can pick two numbers from the array whose sum equals k and remove them from the array.Return the maximum number of operations you can perform on the array. Example 1:Input: nums = [1,2,3,4], k = 5Output: 2Explanati..


  4. MSA 도커 컨테이너 2024.12.05

    보호되어 있는 글입니다.


  5. docker-compose.yml로 Redis 컨테이너 올리기 2024.12.05

    redis 데이터베이스에 비밀번호를 추가하고 도커 컨테이너로 레디스를 띄우는 방법을 알아보자. docker-compose.yml 설정우선 redis에서 비밀번호를 입력해야 하도록 설정한다.redis.conf에서 아래 부분의 주석을 해제하고, foobared 를 사용할 비밀번호로 바꿔 입력하면 비밀번호 설정 끝!# requirepass foobared 그리고 docker-compose.yml은 아래처럼 작성한다.services: redis: image: redis:latest container_name: redis-workspace ports: - "6379:6379" volumes: - {호스트 머신 내 디렉토리}/redis.conf:/usr/local/conf/..


  6. [LeetCode] Product of Array Except Self 2024.11.24

    https://leetcode.com/problems/product-of-array-except-self/description/?envType=study-plan-v2&envId=leetcode-75 Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.You must write an algorithm that runs in O(n) time and without..


  7. [LeetCode] Container With Most Water 2024.11.19

    https://leetcode.com/problems/container-with-most-water/description/?envType=study-plan-v2&envId=leetcode-75 You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).Find two lines that together with the x-axis form a container, such that the container contains the most water.Return the maximum a..


  8. @JsonManagedReference와 @JsonBackReference 2024.10.31

    보호되어 있는 글입니다.


  9. [LeetCode] In Subsequence 2024.10.30

    https://leetcode.com/problems/is-subsequence/description/?envType=study-plan-v2&envId=leetcode-75 Given two strings s and t, return true if s is a subsequence of t, or false otherwise.A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (i.e., "ace"..