package com.wyz.demo;

import org.apache.ibatis.session.SqlSession;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest
class ApplicationTests {

	@Autowired
	public SqlSession sqlSession;



	@Autowired
	public SqlSession s2;




	@Test
	void contextLoads() {
	}



	@Test
	void f(){
//		UserService mapper = sqlSession.getMapper(UserService.class);
//		mapper.addUser(new User("tony","qaz123","110"));
//		sqlSession.commit();


//		System.out.println(sqlSession);
//		System.out.println(s2);
	}

}
