no matching editors or conversion strategy found

搭建ssh框架,在配置完applicationContext.xml测试时报daoImpl的no matching editors or conversion strategy found。。。

上网搜了一下,在<aop:config>里加上 proxy-target-class="true" 。。

意思是代理目标类设为true。。

<aop:config proxy-target-class="true">
<aop:pointcut id="aopMananger" expression="execution(* com.bjsxt.service.*Impl.*(..))" />
<aop:advisor advice-ref="txManager" pointcut-ref="aopMananger" />
</aop:config>
时间: 2024-08-15 20:02:56

no matching editors or conversion strategy found的相关文章

no matching editors or conversion strategy

spring的配置文件applicationContext.xml用拦截器来代理事务,Tomcat启动报如题所示的错误,找到的原因如下: 解决办法是:    在事务中加上下面语句    <property name="proxyTargetClass" >       <value>true</value>    </property>    表示proxy代理的是类而不是接口. no matching editors or conver

spring入门教程——笔记

Spring学习笔记(1)----简单的实例 --------------------------------- 首先需要准备Spring包,可从官方网站上下载. 下载解压后,必须的两个包是spring.jar和commons-logging.jar.此外为了便于测试加入了JUnit包. 在Myeclipse中创建Java项目. 编写一个接口类,为了简单,只加入了一个方法. Java代码  1.package com.szy.spring.interfacebean;  2.  3.public

不错的Spring学习笔记(转)

Spring学习笔记(1)----简单的实例 ---------------------------------   首先需要准备Spring包,可从官方网站上下载.   下载解压后,必须的两个包是spring.jar和commons-logging.jar.此外为了便于测试加入了JUnit包.   在Myeclipse中创建Java项目.   编写一个接口类,为了简单,只加入了一个方法.   Java代码   1.package com.szy.spring.interfacebean;  

Unable to instantiate Action异常

严重: Exception occurred during processing request: Unable to instantiate Action, SsbkAction,  defined for 'SsbkAction' in namespace ''Error creating bean with name 'SsbkAction' defined in file [D:\Program Files (x86)\Liuhe\code\myeclipse 2014 code\.me

关于spring的applicationContext.xml配置文件的ref和value之自我想法

今天在做SSH的一个项目的时候,因为需要定时操作,所以就再sping里面加入了一个quartz的小定时框架,结果在运行时候,发生了一个小bug. Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'org.quartz.spi.JobFactory' fo

spring错误汇总

在学习spring过程中遇见了种种不同的异常错误,这里做了一下总结,希望遇见类似错误的同学们共勉一下. 1. 错误一 Error creating bean with name 'helloServiceImpl' defined in class path resource [spring-service.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritableP

Spring-Mybatis 异常记录(1)

Spring  applicationconfig.xml如下 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://w

springmvc对同名参数处理-我们到底能走多远系列(44)

springmvc对同名参数处理 扯淡: 中断发博客几个月,其实蛮不爽的,可能最近太忙太劳累了些,很多总结也没时间写,今天刚好遇到个小问题,就阅读下源码找找乐.因为考虑到网上大多是提供解决问题的方案,没有实际去看spring源码流程,所以就发个博文记录下,万一以后有同学搜到我的文章能深入看些东西吧. 问题描述: 前端有多个相同name的input: <input type="text" min="1" max="31" name="

spring mvc出现 Failed to convert property value of type &#39;java.lang.String&#39; to required type &#39;java.util.Date&#39; for property &#39;endtime&#39;

在使用spring mvc中,绑定页面传递时间字符串数据给Date类型是出错: Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'expert.birthdate'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of typ