class UserService {

    @Transactional("slaveTransactionManager")
    public void inserUser(String username, String password) {
        User user = new User(username, password);
        userMapper.insert(user);
        School school = new School(username, password);
        schoolMapper.insert(school);
    }

}