mapper 层加了@select注解的方法启动时自动被删了

在mybatis逆向工程生成的mapper接口中自定义方法,然后使用@select注解,在启动时会被自动删除
@Select("select * from note_user where user_phone=#{phone}")
NoteUser FindByPhone(@Param("phone") String phone);
只要项目启动方法就会被删除
我因为是test的原因,结果直接启动也会直接被删除,为什么呀?

可能你修改的代码文件是target生成的文件,并不是源文件,因此项目启用是重新编译生成了target