-
- 좋은 글임.
-
- 직접 AWS를 이용해서 만들어 볼 수도 있음!
-
[백기선님 강의(Dan 공유) 밥먹으면서 보기 좋음](https://www.youtube.com/watch?v=Te6ILtpX5rA&list=PLfI752FpVCS8_5t29DWnsrL9NudvKDAKY&index=4 https://github.com/spring-projects/spring-petclinic)
-
400, 404, 204???
- https://stackoverflow.com/questions/31773088/rfc-404-or-400-for-relation-of-entity-not-found-in-put-request
- https://stackoverflow.com/questions/42143115/which-status-code-is-correct-404-or-400-and-when-to-use-either-of-these
- https://stackoverflow.com/questions/53131797/handle-resource-not-found-in-rest-api
-
인텔리제이 라이브 템플릿 팁
IntelliJ Live Template 팁 하나 드리려고 해요! 보통 foreach문을 생성할 때,
foreach
라는 키워드로 되어있는 친구는 Android Plugin에서 제공해주는 친구인데요.iter
키워드를 사용하시면 더 편하게 Foreach문을 생성할 수 있습니다. 저 같은 경우에는fore
라는 키워드로 변경해서 사용하고 있어요.둘의 차이는Iterable
한 객체가 메소드에 여러 개 있을 때, 사용자가 Iteration할 객체를 선택해서 사용할 수 있고, 그 객체의 Type에 따라서 앞의 Type도 자동으로 바꿔줘요. -
Serializable
에는 구현할 메소드가 없습니다.그래서 마커 인터페이스라고 부르고요, 마커 인터페이스를 채택하는 것은 구현이라고 보지 않는걸로 알아요.
-
-
Dan의 세줄 요약
- StringBuilder 가 체고시다.
- 10 개 정도에서는 + 연산자도 괜찮습니다.
- String.format() 은 가능한 쓰지 맙시다.
-
그리고 저 글에도 나와있긴 한데
로거 안에서 일체의 concatenation 하시면 안됩니다.
{} 쓰십쇼
-
-
스프링 컨트롤러가 받아줄 수 있는 타입 정리
-
- 꼭 보시길 강력 추천합니다~
-
딩고가 공유한
@RequestParam
,@RequestBody
- RequestParam annotation
In Spring MVC, "request parameters" map to
**query parameters**
,**form data**
, and**parts in multipart requests**
. https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestParam.html-
RequestBody annotation
Annotation indicating a method parameter should be bound to the
**body of the web request**
. https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestBody.html
오늘은 스레드만 기억해 주세요 ㅋㅋ 멀티스레드는 동기화 문제가 발생해서 잘 해결해야 한다. 톰캣은 멀티스레드 기반이다.
아참 심심하신 분들은 몬테카를로 방법으로 파이 값 구하기 멀티스레드로 구현
시그리드가 공유한 링크(멀티 쓰레드)
- http://tutorials.jenkov.com/java-concurrency/race-conditions-and-critical-sections.html
- http://tutorials.jenkov.com/java-concurrency/synchronized.html
저는 디온봇이 아닙니다. 😨
감사합니다.