How to Use DI to get a final variable as @PostMapping's path – Telegram API
I have a final class Constants, which holds some final data. @Component public final class Constants { public final String TOKEN; public final String HOST; public final String TELEGRAM; public Constants(@Value("${myapp.bot-token}") String token, @Value("${myapp.host}") String host) { this.TOKEN = token;…