码迷,mamicode.com
首页 >  
搜索关键字:springframework    ( 4755个结果
xml 命名空间
用于标示命名空间的地址不会被解析器用于查找信息。其惟一的作用是赋予命名空间一个惟一的名称。不过,很多公司常常会作为指针来使用命名空间指向实际存在的网页,这个网页包含关于命名空间的信息。xmlns="http://www.springframework.org/schema/mvc" 默认名称空间xm...
分类:其他好文   时间:2014-09-02 00:12:23    阅读次数:251
FreeMarker页面中获得contextPath
要在ftl页面中使用contextPath,需要在viewResolver中做如下配置(红色部分): 这样,在页面中使用${rc.contextPath} 就可获得contextPath。注意,这里的rc对应的是org.springframework.web...
分类:其他好文   时间:2014-09-01 12:09:13    阅读次数:183
Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnl
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Ses...
分类:其他好文   时间:2014-08-30 13:46:49    阅读次数:368
Exception
配置Spring4 + Hibernate4遇到的问题: Messages:No Session found for current threadFile:org/springframework/orm/hibernate4/SpringSessionContext.javaLine number....
分类:其他好文   时间:2014-08-29 18:10:58    阅读次数:342
OA 整合spring hibernate
2个错误1.org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'TestService' is defined这是因为语句:TestService se = (TestService)ac.g...
分类:编程语言   时间:2014-08-29 01:23:27    阅读次数:228
Spring使用注解执行定时任务
一   SpringContext.xml中添加以下配置 1.  beans添加xmlns:task xmlns:task="http://www.springframework.org/schema/task" 2. xsi:schemaLocation中添加 http://www.springframework.org/schema/task http://www.springfram...
分类:编程语言   时间:2014-08-28 21:16:36    阅读次数:222
spring mvc 上传文件
springmvc配置文件: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" ...
分类:编程语言   时间:2014-08-28 18:07:45    阅读次数:389
Spring-SpringMVC-Hibernate整合
由于没有使用maven所以直接看包结构吧!后续可能会带有maven的! 包有点多,但是不要在乎这些细节,多总比少好。下面看配置文件spring-common.xml(相当于applicationContext.xml) <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.or...
分类:编程语言   时间:2014-08-26 09:50:35    阅读次数:333
CharacterEncodingFilter-Spring字符编码过滤器
用于处理项目中的乱码问题。 关系:java.lang.Object extended by org.springframework.web.filter.GenericFilterBean extended by org.springframework.web.filter.Onc...
分类:编程语言   时间:2014-08-25 16:45:44    阅读次数:275
Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext ?at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99) ?at or...
分类:移动开发   时间:2014-08-25 10:13:44    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!