Giriş
Şeklen şöyle. Henüz daha SpringContext yüklenmeden çağrılır
Açıklaması şöyle
You can see that the spring container has not been initialized at this time. If your extension takes effect,there are two ways:(1) In the startup class, use the springApplication.addInitializers(new TestApplicationContextInitializer()) statement to add(2) Configuration file configuration context.initializer.classes=com.example.demo.TestApplicationContextInitialize
Örnek
Şöyle yaparız
public class TestApplicationContextInitializer implements ApplicationContextInitializer {@Overridepublic void initialize(ConfigurableApplicationContext applicationContext) {...}}
Hiç yorum yok:
Yorum Gönder