2021-06-25 TIL
fact
- 사용자 스토리 맵 만들기 1장 읽기
- 모각코 참가
feeling
- 애플케이션의 로그 설정, Nginx 로그 설정 등 모니터링 설정을 해보았다. 모르는게 너무 많다. 한편으로는 서버 장애가 발생했을때 이렇게 미리
대비해두면 대처하기 좋을 것같다. 실마리가 있고 없고의 차이는 크기 때문이다.
Findings
- 로깅과 프로필전략
- 지속 성장 가능한 소프트웨어를 만들어가는 방법
- Spring Request Param에서 빈값의 처리
@RequestMapping("/param-require")
@ResponseBody
public String paramRequired(@RequestParam(required = true) String name, @RequestParam(required = false) int count) {
return "hello";
}
@RequestMapping("/param-default")
@ResponseBody
public String paramDefault(
@RequestParam(defaultValue = "john") String name,
@RequestParam(defaultValue = "0") int count) {
return "hello";
}
required = true 옵션을 줘도 String을 Param으로 받으면 빈값을 입력해도 유효성을 통과한다.
defaultValue를 설정하면 빈값의 처리도 해준다.
Affirmation
- 서로 협업하면서 문제해결하기
Author And Source
이 문제에 관하여(2021-06-25 TIL), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@etff/2021-06-25-TIL저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)