public class MapperFactory extends Object
| 构造器和说明 |
|---|
MapperFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
<T extends IEntityMapper> |
getBean(Class<T> mapperInterface)
返回Mapper实例
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
@Autowired
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic <T extends IEntityMapper> T getBean(Class<T> mapperInterface)
T - IEntityMapper类型mapperInterface - IEntityMapper接口类@PostConstruct public void afterPropertiesSet() throws Exception
ExceptionCopyright © 2021. All rights reserved.