作者:Java兔
参考资料:http://blog.csdn.net/u013041642/article/details/71430293
测试环境:
SpringMvc + Spring + Mybatis+ Maven
测试版本:
Junit : 4.12
Spring + SpringMvc : 4.2.3.RELEASE
测试文件:
package hjp;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.alibaba.fastjson.JS