Created
July 25, 2012 07:16
-
-
Save vangie/3174886 to your computer and use it in GitHub Desktop.
使用Spring初始化一个自己实例化的Bean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private View applyLifecycleMethods(String viewName, AbstractView view) { | |
return (View) getApplicationContext().getAutowireCapableBeanFactory().initializeBean(view, viewName); | |
} | |
//参考 UrlBasedViewResolver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment