propertyeditormain.java
来自「是关于struts+hibernate+spring开发宝典的源代码,希望对大家」· Java 代码 · 共 21 行
JAVA
21 行
package cn.hxex.springcore.propertyeditor;
import org.springframework.beans.factory.config.CustomEditorConfigurer;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
public class PropertyEditorMain {
public static void main(String[] args) {
ClassPathResource resource = new ClassPathResource("cn/hxex/springcore/propertyeditor/PropertyEditorBeans.xml");
XmlBeanFactory factory = new XmlBeanFactory(resource);
CustomEditorConfigurer config = (CustomEditorConfigurer)factory.getBean("customEditorConfigurer");
config.postProcessBeanFactory( factory );
DependsOnExoticType dependsOnExoticType = (DependsOnExoticType)factory.getBean( "dependsOnExoticType" );
dependsOnExoticType.display();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?