java8的开始支持的lombok,可以在定义DTO实体对象时不写get和set方法,虽然运行没有问题,但是编译时会提示错误信息“Cannot resolve method 'setUserId'”,要消除这个错误提示,需要安装lombok插件;
安装方法为:
file->settings->plugins,在仓库中搜索lom安装,重启idea。
在此记录,方便以后查阅。