일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- javscript
- lambda calculus
- Spring
- Rails
- 로버트마틴
- Pattern
- 프로그래머스
- 디자인패턴
- 파이썬
- Collection
- Python
- 스택
- JavaScript
- 큐
- 겨울카카오인턴
- 자바
- design-pattern
- Java
- 람다 칼큘러스
- Network
- Eclipse
- 백준
- JDBC
- Collections
- tcp
- functional programming
- exception
- DesignPattern
- 함수형 프로그래밍
- solid
- Today
- Total
목록Spring (4)
개발자 노트
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bcJtpQ/btrH6IvINqi/til9zaYHqS7bYHEhfJTFY0/img.png)
예제 코드 https://github.com/jurogrammer/dtrans 상황 트랜잭션을 분리해서 작업하고 싶은데, 이 때문에 서비스 클래스를 생성하기엔 번잡할 때 코드 @Service @RequiredArgsConstructor public class SaveServiceVer1 { private final UserRepository userRepository; private final OrderRepository orderRepository; @Transactional public void save() { userRepository.save(new User("홍길동")); // 만약 order 저장시 에러가 발생 경우에도, user는 그대로 저장하고 싶다면? saveOrder(); } publi..
Spring Field Injection에 의한 순환 참조 오류 참고자료 edwith 도비양말 리뷰어님 https://www.mimul.com/blog/di-constructor-injection/ (DI가 필요한 이유) https://madplay.github.io/post/why-constructor-injection-is-better-than-field-injection (생성자 주입을 필드주입 보다 권장하는 이유) https://d2.naver.com/helloworld/1230 (JVM Internal) 개요 edwith 강의에서 필드 주입을 하는 방식으로 DI를 구현하여 프로젝트 제출시 Field Injection을 하여 제출하였습니다. 하지만 리뷰어님께서 Constructor Injectio..
Layered Architecture 참고자료 https://en.wikipedia.org/wiki/Multitier_architecture https://sites.google.com/site/telosystutorial/springmvc-jpa-springdatajpa/presentation/architecture https://www.petrikainulainen.net/software-development/design/understanding-spring-web-application-architecture-the-classic-way/ (대다수 내용 참고) 작성하는 내용의 대다수는 3번을 참고하여 작성합니다. 허나 제 생각을 토대로 말하기 때문에 부족하다 느끼시다면 3번 참고자료를 확인해보실 것을..