public class MybatisGeneralEntityProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
| 构造器和说明 |
|---|
MybatisGeneralEntityProcessor(GeneralMapperSqlInjector generalSqlInjector) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkBeanType(Class<?> entityClazz)
Preprocess for class filtering.
|
static String |
generateNamespace(Class<?> entityClazz) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
Scan sub-types for Entity.
|
static String[] |
parseTypeAliasPackage(String typeAliasesPackage)
Allow to define the parse strategy for package scan.
|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
优先选择mybatis-plus配置进行动态扫描注入
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
public MybatisGeneralEntityProcessor(GeneralMapperSqlInjector generalSqlInjector)
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessorbean - SessionFactoryBeanbeanName - beanNameorg.springframework.beans.BeansExceptionpublic static String[] parseTypeAliasPackage(String typeAliasesPackage)
typeAliasesPackage - protected boolean checkBeanType(Class<?> entityClazz)
entityClazz - public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>Copyright © 2017. All rights reserved.