阿神2017-04-18 10:10:16
There is no need to use mock
使用spring-test
Direct connection to the database test. In the unit test environment, transactions will be automatically rolled back and the test data will be cleaned. This is highly accurate and simple.