Skip to content
Snippets Groups Projects
Commit 85067b7f authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

call StartupBean.init after DI via @PostConstruct

parent eb123891
No related branches found
No related tags found
4 merge requests!678Merge 12.2.0 beta.2 into master,!67712.2.0~beta.2 into master,!676Devel 12.2.0~beta.2 into master,!674call StartupBean.init after DI via @PostConstruct
Pipeline #9010 passed
...@@ -6,6 +6,7 @@ import java.io.IOException; ...@@ -6,6 +6,7 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.Properties; import java.util.Properties;
import javax.annotation.PostConstruct;
import javax.faces.context.FacesContext; import javax.faces.context.FacesContext;
import javax.servlet.ServletContext; import javax.servlet.ServletContext;
...@@ -73,7 +74,7 @@ public class StartupBean { ...@@ -73,7 +74,7 @@ public class StartupBean {
/** /**
* Method that process initial script of application. * Method that process initial script of application.
*/ */
@EventListener(ApplicationReadyEvent.class) @PostConstruct
public void init() { public void init() {
loadCustomLog4jProperties(); loadCustomLog4jProperties();
logger.debug("Application startup script starts"); logger.debug("Application startup script starts");
......
package lcsb.mapviewer.web.config; package lcsb.mapviewer.web.config;
import lcsb.mapviewer.services.SpringServiceConfig; import lcsb.mapviewer.services.SpringServiceConfig;
import lcsb.mapviewer.web.bean.utils.StartupBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment