public class SpringUtil extends Object
Applicable to Spring Framework version 2.x or later
| Constructor and Description |
|---|
SpringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext()
Get the spring application context.
|
static Object |
getBean(String name)
Get the spring bean by the specified name.
|
static Object |
getBean(String name,
Class cls)
Get the spring bean by the specified name and class.
|
Copyright © 2015. All rights reserved.