我需要預加載頁面加載時顯示的一些數據。初始化步驟在@ PostConstruct-annotated方法上執行,但現在我需要使用參數才能獲取數據。如何發送一個參數用於支持bean的@PostConstruct方法?
我想要做的事:
@PostConstruct
public void init()
{
List data = getDataFromDB(parameter) /*Need to read a parameter created somewhere else*/
}
有沒有辦法來實現這一目標?
在此先感謝
這個參數來自哪裏? – BalusC 2011-01-12 21:16:27