nevergiveupzeng

导航

2015年11月21日 #

Spring容器中获取bean实例的方法

摘要: // 得到上下文环境WebApplicationContext webContext = ContextLoader .getCurrentWebApplicationContext();// 使用上下文环境中的getBean方法得到bean实例InhospDoctorStationControll... 阅读全文

posted @ 2015-11-21 15:20 nevergiveupzeng 阅读(744) 评论(0) 推荐(0) 编辑

jsp 静态引入<%@ include %> 动态引入<jsp:include> 区别

摘要: 1. 首先先介绍下,jsp机制:servlet容器,先将jsp转化成servlet,然后编译成.class文件,放置容器缓冲区【tomcat的work目录下】。每次调用jsp时,服务器会读取编译好的servler.class,处理jsp的请求。2. 在servlet容器转化jsp为servlet时... 阅读全文

posted @ 2015-11-21 11:08 nevergiveupzeng 阅读(2343) 评论(0) 推荐(0) 编辑