資源簡介
17-19.rar
代碼片段和文件信息
package?com.mr.main;
import?org.springframework.beans.factory.BeanFactory;
import?org.springframework.beans.factory.xml.xmlBeanFactory;
import?org.springframework.core.io.ClassPathResource;
import?org.springframework.core.io.Resource;
import?com.mr.user.User;
public?class?Manager?{
????
????public?static?void?main(String[]?args)?{
????????Resource?resource?=?new?ClassPathResource(“applicationContext.xml“);????????????//裝載配置文件
????????BeanFactory?factory?=?new?xmlBeanFactory(resource);
????????User?user?=?(User)?factory.getBean(“user“);????????????????????????????????????//獲取Bean
????????System.out.println(“用戶姓名——“+user.getName());//輸出用戶的姓名
????????System.out.println(“用戶年齡——“+user.getAge());//輸出用戶的年齡
????????System.out.println(“用戶性別——“+user.getSex());//輸出用戶的性別
????}???
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1055??2016-03-21?11:59??第17章\17.1\.classpath
?????文件???????1037??2016-03-21?11:59??第17章\17.1\.project
?????文件????????503??2016-03-21?12:01??第17章\17.1\.settings\.jsdtscope
?????文件????????364??2016-03-21?12:01??第17章\17.1\.settings\org.eclipse.jdt.core.prefs
?????文件????????466??2016-03-21?12:01??第17章\17.1\.settings\org.eclipse.wst.common.component
?????文件????????345??2016-03-21?12:01??第17章\17.1\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2016-03-21?12:01??第17章\17.1\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2016-03-21?12:01??第17章\17.1\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件????????568??2016-03-21?12:01??第17章\17.1\build\classes\applicationContext.xm
?????文件???????1514??2016-03-21?12:02??第17章\17.1\build\classes\com\mr\main\Manager.class
?????文件????????940??2016-03-21?12:02??第17章\17.1\build\classes\com\mr\user\User.class
?????文件????????568??2016-03-21?12:01??第17章\17.1\src\applicationContext.xm
?????文件????????898??2016-03-21?12:02??第17章\17.1\src\com\mr\main\Manager.java
?????文件????????565??2016-03-21?12:02??第17章\17.1\src\com\mr\user\User.java
?????文件?????????39??2016-03-21?12:01??第17章\17.1\WebContent\me
?????文件???????4467??2016-03-21?12:02??第17章\17.1\WebContent\WEB-INF\lib\aopalliance.jar
?????文件??????60686??2016-03-21?12:02??第17章\17.1\WebContent\WEB-INF\lib\commons-logging.jar
?????文件???????1055??2016-03-21?11:59??第17章\17.2\.classpath
?????文件???????1037??2016-03-21?11:59??第17章\17.2\.project
?????文件????????503??2016-03-21?12:01??第17章\17.2\.settings\.jsdtscope
?????文件????????364??2016-03-21?12:01??第17章\17.2\.settings\org.eclipse.jdt.core.prefs
?????文件????????466??2016-03-21?12:01??第17章\17.2\.settings\org.eclipse.wst.common.component
?????文件????????345??2016-03-21?12:01??第17章\17.2\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2016-03-21?12:01??第17章\17.2\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2016-03-21?12:01??第17章\17.2\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件????????568??2016-03-21?12:01??第17章\17.2\build\classes\applicationContext.xm
?????文件????????993??2016-03-21?12:02??第17章\17.2\build\classes\com\mr\main\Manager.class
?????文件???????1066??2016-03-21?12:02??第17章\17.2\build\classes\com\mr\user\User.class
?????文件????????568??2016-03-21?12:01??第17章\17.2\src\applicationContext.xm
?????文件????????658??2016-03-21?12:02??第17章\17.2\src\com\mr\main\Manager.java
............此處省略914個文件信息
評論
共有 條評論