原因: springmvc在处理请求时,默认采用的是 ISO-8859-1 编码格式,具体原因不了解,个人觉得是还没有来得及更改,所以在处理一些json格式的时候,会出现中文乱码。 org.springframework.http.converter...
分类:
编程语言 时间:
2014-09-19 19:48:26
阅读次数:
176
2014-09-19 15:38:17,615 DEBUG [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] - Rejected bean name 'org.springframework.web.servlet.handler.MappedInterceptor#0': no URL paths ident...
分类:
编程语言 时间:
2014-09-19 17:46:25
阅读次数:
315
1、在配置文件中配置
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.Dat...
分类:
数据库 时间:
2014-09-19 17:41:25
阅读次数:
522
今天处理了一个奇怪的问题,现象如下:1、 Linux下安装了Mysql,导入数据库表,一切正常;2、 Spring+Myibatis连接数据库正常;3、 当执行数据库查询的时候,抛出如下异常:org.springframework.jdbc.BadSqlGrammarException:### Er...
分类:
数据库 时间:
2014-09-18 14:38:53
阅读次数:
191
ssh框架从页面传中文发生乱码时怎么解决,就是添加一个字符编码拦截器。用springframework自带的便可
分类:
编程语言 时间:
2014-09-17 10:02:21
阅读次数:
186
题描述
在Linux上使用Spring+Hibernate+dbcp连接本机上的MySQL时,出现异常:
[ERROR][2014-09-1614:00:59,343][com.ocyd.jeecgframework.core.common.exception.MyExceptionHandler]org.springframework.transaction.CannotCreateTran...
分类:
数据库 时间:
2014-09-16 19:03:20
阅读次数:
457
同理 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:?Line?52?in?XML?document?from?class?path?resource?[bean.xml]?is?invalid;?nested?exception?is?org.xml.sax.S...
分类:
Web程序 时间:
2014-09-16 16:14:00
阅读次数:
859
实现任务类:package com.vnetoo.nec.base.quartz;import org.springframework.context.annotation.Lazy;import org.springframework.scheduling.annotation.Scheduled...
分类:
其他好文 时间:
2014-09-16 12:33:50
阅读次数:
339
global.dao.dbcp.xml:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx...
分类:
其他好文 时间:
2014-09-15 17:56:09
阅读次数:
254
1、创建Spring配置
在XML文件中声明Bean时,Spring配置文件的根元素来源于Spring beans命名空
间所定义的元素。以下为一个典型的Spring XML配置文件:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema...
分类:
其他好文 时间:
2014-09-15 11:19:48
阅读次数:
228