代码案例:
public interface SysMenuService {
/**
* 根据菜单ID查询
* @param sysMenuId 菜单ID
* @return 菜单实体
*/
SysMenu findById(String sysMenuId);
}
public class SysMenuServiceImpl implements SysMenuService {
@Autowired
private SysMenuRepository sysMenuRepository;
@Override
public SysMenu findById(String sysMenuId) {
return sysMenuRepository.findOne(sysMenuId);
}
}
修改idea:
将鼠标放在方法名上: