Код: Выделить всё
@ShellMethod(value = "Command import your frequency into database. You need pass path to the file .xlsx")
public String fileRead(@ShellOption(defaultValue = "") String path) throws FileNotFoundException {
if (path.isEmpty() && !path.equals("")) {
return "You need to pass path to the file";
}
return "Successfully read";
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... ring-shell
Мобильная версия