전체 글에 해당하는 글 293

  1. [LeetCode] Maximum Number of Vowels in a Substring of Given Length 2025.04.15

    https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/description/?envType=study-plan-v2&envId=leetcode-75 Given a string s and an integer k,return the maximum number of vowel letters in any substring of s with length k.Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'. Example 1:Input: s = "abciiidef", k = 3 Output: 3 Explanation: The substring "iii" conta..


  2. [LeetCode] Maximum Average Subarray I 2025.04.14

    https://leetcode.com/problems/maximum-average-subarray-i/description/?envType=study-plan-v2&envId=leetcode-75 You are given an integer array nums consisting of n elements, and an integer k. Find a contiguous subarray whose length is equal to k that has the maximum average value and return this value. Any answer with a calculation error less than 10-5 will be accepted. Example 1:Input: nums = [1,..


  3. @Conditional 로 특정 빈 등록 조건 만들기 2025.03.21

    테스트 환경에서는 실행되지 않아야 하는 파일이 있을 수 있다.그럴 때? @Conditional 어노테이션을 사용하면 쉽게 조건을 만들어서 구현할 수 있다. @Conditional 어노테이션은 정의된 조건에 맞춰 빈 등록을 할 지 말지 정해준다.예를 들어서, 개발 환경에서만 따로 로그를 찍는 빈이 있다고 해 보자. 간단히 Condition을 구현해서, matches 함수를 오버라이드하면 커스텀 조건을 작성할 수 있다.true를 리턴하는 조건에서 Conditional 조건을 만족하여 작동하게 된다.아래는 실행시 지정한 프로파일이 dev 일 때만 true를 리턴한다.public class LoggingCondition implements Condition { @Override public boole..


  4. JPA와 LocalDateTime 2025.03.14

    보호되어 있는 글입니다.


  5. INSERT ON DUPLICATE KEY 2025.03.14

    보호되어 있는 글입니다.


  6. generatedKeys 2025.03.14

    보호되어 있는 글입니다.


  7. JPAㅠ 2025.03.14

    보호되어 있는 글입니다.


  8. Date -> LocalDateTime 2025.03.13

    보호되어 있는 글입니다.


  9. [Gradle] --project-prop 옵션으로 특정 파일 제외하여 빌드하기 2025.03.07

    이번에 Swagger를 활용해 API 문서를 작성하면서,개발 서버에서만 쓰이는 내부용 컨트롤러에 아예 접근할 수 없도록 처리할 필요가 있었다. @Hidden, @Profile 등 여러 방법을 찾아 보다 gradle로 아예 파일 자체를 빼고 빌드하기로 했다. https://docs.gradle.org/current/userguide/command_line_interface.html#sec:environment_options Command-Line Interface ReferenceGradle provides several built-in tasks which show particular details of your build. This can be useful for understanding your bu..


  10. 세션 관리 삽질 2025.02.25

    보호되어 있는 글입니다.