I have the following code in the spring boot application:
@ApplicationScope
@Component
@Slf4j
public class ApplicationLists {
private List<Country> countryItems = new ArrayList<Country>();
@PostConstruct
protected void init() {
initCountryList();
And the @PostConstruct method is called only when I submit a request through postman, I need this code to run om startup. Thanks,