2008-07-19

Ibatis的resultMap的cacheModel研究

关键字: ibatis resultmap cachemodel
1. cacheModel属性说明 <cacheModel id="code-CacheModel" type ="LRU" readOnly="true" serialize="false"> <flushInterval seconds="60"/> <flushOnExecute statement="CodeModel-InsertCodeModel"/> <property name="cache-size" value="1000" /> </cacheModel> id: cacheModel的id. type: cache ...
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/modules/applicationContext-dao.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. Caused b ...
2008-02-22

MultiActionController与3种MethodNameResolver的配置

关键字: multiactioncontroller methodnameresolver
今天又被人问了MultiActionController与MethodNameResolver的配置,就贴出来. ParameterMethodNameResolver InternalPathMethodNameResolver PropertiesMethodNameResolver 配置web.xml <servlet> <servlet-name>spring</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </ ...
2008-02-22

web.xml中servlet-mapping的url-pattern的配置

关键字: servlet-mapping url-pattern
在配置web.xml的servlet-mapping 的 url-pattern 碰到问题, 上网查, 查到servelt2_2-spec.pdf才得到答案. 结论: • '/XXX/*' • '*.html' • '/' • 其他都是精确映射. 例: '/XXX/Y*.html' 只能映射/XXX/Y*.html 的URL请求. 例: '/XXX' 只可以映射/XXX的URL请求. 引用 10.2 Specification of Mappings In the web application deployment descriptor, the fo ...
2008-02-20

新版本Spring对于老版本JDK的支持方式

关键字: spring2.5 jdk1.5
我的环境: JDK 1.5 Spring 2.5 今天将Spring2.5导入Eclipse,准备将其做成Plugin,以备开发RCP. Spring2.5是号称支持JDK1.5的. 导完了Spring代码,解决了第三方jar依赖,编译发现Error3.奇怪,查代码. public void load(Properties props, Reader reader) throws IOException { if (loadFromReaderAvailable) { // On JDK 1.6+ props.load(reader); } el ...
lggege
搜索本博客
我的相册
49edb3d3-94ce-3f1d-b3b2-d2dd99204513-thumb
IndexCardGenerator
共 13 张
最近加入圈子
存档
最新评论