java类和spring bean引用

springbean 对象引用

userService = springContext.getBean("userService")

springbean 对象引用2

import xx.xx.UserService
userService = springContext.getBean(UserService.class)

java类引用

import java.util.HashMap

Last updated