IDEA中mapper.xml文件出现的问题
解决绿色背景
File | Settings | Editor | Color Scheme | General | Code | Injected language fragment | Background
解决sql(表、字段名)爆红
1.修改设置
File | Settings | Editor | Inspections | SQL | Unresolved reference
2.添加MySQL Data Source
添加mapper.xml文件模板
File | Settings | Editor | File and Code Templates
点击+号,Name自便,Extenxion为xml
添加插件Free MyBatis plugin实现mapper接口与mapper.xml互相跳转
点击左侧箭头互相跳转