基础设置
设置护眼色
File -> Settings -> Editor -> Color Scheme -> General
把 Scheme 设置为 IntelliJ Light
打开 Text 设置 Default text 的背景颜色(Background) 为 C7EDCC
JUnitGenerator
TesterBase 代码如下
import com.hn.Application;import org.junit.runner.RunWith;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.context.junit4.SpringRunner;/*** web单元测试继承该类即可*/@RunWith(SpringRunner.class)@SpringBootTest(classes = Application.class)public abstract class TesterBase {}

Alt+Enter 生成 Test



