일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- spring JPA DB multi Connection
- Data Annotation
- Transactions Propagation Option
- 자바버그수정
- spring JPA DB Connection
- doker logs tail
- CrudRepository update
- vuecomponent
- AllArgsConstructor
- JPA DB Connection 다중
- @Builder @NoArgsConstructor
- 도커 logs
- spring repository
- JPA DB 다중 Connection
- Spring JPA Specification
- spring mapper
- spring DB Connection
- vueslot
- spring mapper annotation
- Vue
- NoArgsConstructor
- 도커 로그 확인
- mapper annotationo
- JAVA Exception 종류
- 도커 컨테이너 로그
- Spring
- spring @mapper
- docker 로그
- repository annotation
- JpaRepository update
- Today
- Total
목록Backend/spring (9)
개발을 잘하고 싶은 개발자
출처 https://www.baeldung.com/transaction-configuration-with-jpa-and-spring https://taetaetae.github.io/2016/10/08/20161008/ propagation ( 전파옵션) REQUIRED : 부모 트랜잭션 내에서 실행하며 부모 트랜잭션이 없을 경우 새로운 트랜잭션을 생성 REQUIRES_NEW : 부모 트랜잭션을 무시하고 무조건 새로운 트랜잭션이 생성 SUPPORT : 부모 트랜잭션 내에서 실행하며 부모 트랜잭션이 없을 경우 nontransactionally로 실행 MANDATORY : 부모 트랜잭션 내에서 실행되며 부모 트랜잭션이 없을 경우 예외가 발생 NOT_SUPPORT : nontransactionally로 실행하..
xml 기반의 mapper를 사용할 때 /* query */ 이런 식으로 mapper 태그 안에 쿼리를 넣어 사용한다 But, 방식으로 DB의 데이터를 객체로 매핑시켜 데이터를 접근하는 ORM 방식을 사용해보면서 @Mapper를 사용하게 되었다 https://codingnojam.tistory.com/27 여기 블로그에 아주 잘 설명을 해주셨고 많은 도움이 되어 참고를 해본다 https://mybatis.org/mybatis-3/ko/apidocs/index.html @Mapper의 API 문서를 찾아보니 Maker interface for MyBatis mappers 라고 한다 => "MyBatis 매퍼용 메이커 인터페이스" 그럼 MyBatis 문서에서 확인해 본다 https://mybatis.org/..
spring에서 쓰는 어노테이션의 종류는 매우 많다 오늘은 우선 '@Repository' https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/stereotype/Repository.html Repository (Spring Framework 5.3.9 API) Indicates that an annotated class is a "Repository", originally defined by Domain-Driven Design (Evans, 2003) as "a mechanism for encapsulating storage, retrieval, and search behavior which emulat..
한 개의 DB Connection만을 사용하던 "나의 Config"에서 다른 DB Connection을 붙여야 하는 미션이 주어졌다. 기존 소스는 아래와 같다. import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework..