Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Spring
- JPA DB 다중 Connection
- spring JPA DB Connection
- repository annotation
- Transactions Propagation Option
- spring mapper
- 자바버그수정
- JPA DB Connection 다중
- AllArgsConstructor
- doker logs tail
- spring DB Connection
- @Builder @NoArgsConstructor
- Data Annotation
- spring JPA DB multi Connection
- docker 로그
- spring repository
- Vue
- mapper annotationo
- NoArgsConstructor
- JpaRepository update
- spring @mapper
- Spring JPA Specification
- vuecomponent
- 도커 컨테이너 로그
- 도커 로그 확인
- JAVA Exception 종류
- spring mapper annotation
- vueslot
- CrudRepository update
- 도커 logs
Archives
- Today
- Total
목록spring JPA DB multi Connection (1)
개발을 잘하고 싶은 개발자
[Spring] JPA DB Connection 다중으로 사용하기!
한 개의 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..
Backend/spring
2021. 8. 3. 20:40