<repo_name>zibersaioros/multiple_datasource<file_sep>/src/test/java/com/rs/multiple_datasource/biz_b/service/TestServiceTest.java
package com.rs.multiple_datasource.biz_b.service;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import static org.junit.jupiter.api.Assertions.*;

@SpringBootTest
class TestServiceTest {

    @Autowired
    TestService testService;

    @Test
    public void test(){
        System.out.println(testService.select(1).getData());
    }

}<file_sep>/settings.gradle
rootProject.name = 'multiple_datasource'
<file_sep>/src/test/java/com/rs/multiple_datasource/biz_a/persistence/BizAMapperTest.java
package com.rs.multiple_datasource.biz_a.persistence;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import static org.junit.jupiter.api.Assertions.*;

@SpringBootTest
class BizAMapperTest {

//    @Autowired
//    BizAMapper bizAMapper;
//
//    @Test
//    public void test(){
//        String test = bizAMapper.selectTest();
//        System.out.println(test);
//    }
}<file_sep>/src/main/java/com/rs/multiple_datasource/biz_b/model/TestEntity.java
package com.rs.multiple_datasource.biz_b.model;


import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Table(name = "test")
public class TestEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column
    private Integer data;
}
