# java backend

## 자바 백엔드 개발 소소한 미세팁

* 함수형 프로그래밍을 ENUM 에 사용하는 방법
* 애노테이션을 직접만들어서 사용하는 방법
  * @Quilifier
  * 테스트 환경용 어노테이션
* "" 문자열에 equals 넣어서 문자열 null 예외 회피하기
* 조회한 빈을 모두 사용해야 할 때
  * List 나 Map 으로 주입 받기
* Apache 나 스프링이 제공하는 Util 함수 활용하기
  * null 검사나 조건 검사에 활용
  * ValidationUtils
  * StringUtils
  * ObjectUtils
  * UrlUtils
  * JDBCUtils
  * AopUtils
  * 가독성이 좋아지고 좀 더 안전한 처리가 가능하다


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://programmer-jjy.gitbook.io/second-brain/cheat-sheet/code-review/java-backend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
