- Cannot use both: sqlSessionTemplate and sqlSessionFactory together. sqlSessionFactory is ignored.
https://tube-life.tistory.com/m/20
@MapperScan에서sqlSessionFactoryRef를 제거하여 해결하자
Datasource 수동설정시 url => jdbc-url
HicariCP가 그렇다 함
자동설정시에는 자동변환 해준다함
https://sanghye.tistory.com/m/26
[Mybatis] Spring boot 에서 mybatis 로 2개의 DB connection 하기
새로운 매니저 사이트를 작업하면서 한 서비스에 다른 여러개의 DB 를 접속시켜야되는 이슈가 발생하였습니다. 예를 들어, DB 접속정보가 따로 관리되는 채소과게와 과일가게의 매출 통계를 구��
sanghye.tistory.com
https://aljjabaegi.tistory.com/442
Spring Boot Multiple Database Configuration + Mybatis +HikariCP, MySQL, Oracle, Using Mapper annotation
Spring Boot Multiple Database Configuration + Mybatis +HikariCP, MySQL, Oracle, Using Mapper Annotation 스프링 부트에서 멀티 Database 연결 설정 Mybatis + HikariCp, MySql, Oracle, 어노테이션..
aljjabaegi.tistory.com
https://gigas-blog.tistory.com/122
[Spring] Spring Boot 2 Multiple DataSource
프로젝트를 진행하는데 기존 시스템이 있는곳이라 DB를 2개 이상 사용해야된다고 합니다. 이제 Spring Boot 2.x 를 공부겸 진행하고 있는데 매번 난관이군요. 늘 생각하는거지만 실제론 쉬운 코드인�
gigas-blog.tistory.com
Springboot + JPA + JTA (Atomikos) + MySQL 을 이용한 멀티 트랜잭션 구현
두 개의 물리적으로 다른 Database에 트랜잭션을 적용하기 위해서 JTA를 사용해야 한다는 것을 듣고 그 중에 Atomikos를 사용하면 된다는 이야기에 구현을 해 보았다. 구글링을 해 보아도 이런말 저런
www.4te.co.kr
'spring-boot' 카테고리의 다른 글
스프링부트 톰캣 war 배포 (0) | 2020.04.18 |
---|---|
content is not allowed in prolog 에러 (0) | 2020.04.10 |
custom error page-exception 처리 (0) | 2020.03.13 |
spring-boot-starter-actuator (모니터링) (0) | 2020.01.29 |
spring boot에서 filter 사용하기 (0) | 2020.01.14 |