Всем привет.
Подскажите решение проблемы:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [by.iba.isf.admin.console.app.Application]; nested exception is java.io.FileNotFoundException: class path resource [
application.properties] cannot be opened because it does not exist
Это после добавления конфигурационного класса:
import org.jline.reader.LineReader;
import org.jline.terminal.Terminal;
import org.springframework.context.annotation.*;
@Configuration@ComponentScan(basePackages = {"by.xx.xx.admin.console"})
@PropertySource("
application.properties")
public class SpringShellConfig {
@Bean
public ShellHelper shellHelper(@Lazy Terminal terminal) {
return new ShellHelper(terminal);
}
@Bean
public InputReader inputReader(@Lazy LineReader lineReader) {
return new InputReader(lineReader);
}
}
В main классе точно такой же CompanentScan и он работает.
Что делать?