You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Bean
public History history(LineReader lineReader, @Value("${spring.application.name:spring-shell}.log") String historyPath) {
lineReader.setVariable(LineReader.HISTORY_FILE, Paths.get(historyPath));
return new DefaultHistory(lineReader);
}
The suffix .log is hardcoded when the spring.application.name is provided not allowing the user to override this. If there is an alternative way of overriding this, please let me know.