- 浏览: 244026 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
问道721:
长见识了, 新建文档还不行, 写入内容后就可以了
利用poi操作word文档 -
laodongbao:
终于找到了我能理解和接受的的spring aop和动态代理的结 ...
spring Aop中动态代理 -
lqservlet:
可以看到存储文件! 全是xml文件,好多呀。
利用poi操作word文档 -
步青龙:
直接重命名xx.docx的文件为xx.zip,用WinRar打 ...
利用poi操作word文档 -
邦者无敌:
如果是JDK1.3呢?是否要将上面四个jar包手动加入
com.sun.crypto.provider.SunJCE
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service' defined in class path resource [da.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class[]] for property 'proxyInterfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class[]] for property 'proxyInterfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
Caused by: java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:205)
at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:66)
at org.springframework.beans.TypeConverterDelegate.convertValue(TypeConverterDelegate.java:268)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:189)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:139)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:772)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)
at org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:840)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
at com.kettas.spring.jdbc.JDBCTest.main(JDBCTest.java:13)
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class[]] for property 'proxyInterfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class[]] for property 'proxyInterfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
Caused by: java.lang.IllegalArgumentException: Cannot find class [com.kettas.spring.service.AccountService]. Root cause: java.lang.ClassNotFoundException: com.kettas.spring.service.AccountService
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:205)
at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:66)
at org.springframework.beans.TypeConverterDelegate.convertValue(TypeConverterDelegate.java:268)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:189)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:139)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:772)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)
at org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:840)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
at com.kettas.spring.jdbc.JDBCTest.main(JDBCTest.java:13)
发表评论
-
jxl导出excel
2011-07-05 17:34 1384Java代码 package com.xinli; ... -
生成excel表格
2011-07-05 17:13 1164导出Excel表格的类 import java.io.File ... -
Ext动态树加载问题
2010-02-03 14:07 1749最近弄了个Ext动态加载树的Demo,有点小问题.请教下各位. ... -
Ext 树级联选中子节点
2010-02-02 16:05 3211var treePanel = new Ext.tree.Tr ... -
subtree
2010-02-02 11:09 1638在Faceye基础版(开源)中,使用了大量的树结构,比如台台管 ... -
subtreepanel
2010-02-02 11:07 1123Ext.namespace("www.haohao. ... -
com.sun.crypto.provider.SunJCE
2010-02-01 13:37 8189Could not instantiate bean clas ... -
利用poi操作word文档
2010-01-13 09:26 42016关键字:POI JAVA 批注 总页数 总字符数 一:认识PO ... -
POI 之二 poi操作解析word
2010-01-13 09:11 5238POI是Apache的一个开源项目,可以到Apache网站下载 ... -
POI 之一
2010-01-12 17:31 1468poi 新手教程 Jakarta_POI 使用Java读写Ex ... -
java 生成xml文件
2010-01-12 13:40 1199package com.xh.xml; import ja ... -
javascript 应用
2009-10-10 11:32 937/* * 打开新窗口 * f:链接地址 * n:窗口的名 ... -
端口查询
2009-08-02 09:13 2383在Windows 2000/XP/Server 2003中要查 ... -
Eclipse插件
2009-07-24 11:40 13761 EMF,GEF - Graphical Edito ... -
spring简单的下例子
2009-07-24 11:24 1210创建一个studentJavaBean public clas ... -
ssh整合报错
2009-07-23 17:29 21052009-07-23 17:24:02,343 DEBUG [ ... -
MyEclipse中连接Oracle中文版的时候报sql level1的错误
2009-07-23 10:12 1111打开MyEclipse的配置文件 把 英文的en替换成zh就 ... -
如何在eclipse中添加配置文件dtd描述
2009-07-22 12:13 4011手动增加spring配置文件的DTD描述 使用myeclips ... -
双系统grub引导出错
2009-07-22 11:18 1329现在的Linux安装程序都可以在安装grub时加入window ... -
SpringAop 报错
2009-07-17 15:56 2498AOP configuration seems to be i ...
相关推荐
Spring Boot & Spring MVC 异常处理的N种方法 参考文档: Spring Boot 1.5.4.RELEASE Spring framework 4.3.9.RELEASE 默认行为 根据Spring Boot官方文档的说法: For machine clients it will produce a JSON ...
在Spring Boot中,你可以通过配置`error`路径的视图解析来定制错误页面。在`application.properties`或`application.yml`中,设置`server.error.whitelabel.enabled=false`,然后在`templates`目录下创建一个名为`...
import org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler; import org.springframework.boot.web.reactive.error.ErrorAttributes; import org.springframework.context...
在IT行业中,Spring Cloud Gateway作为Spring Cloud生态体系中的一个关键组件,被广泛用于构建微服务架构中的API网关。这个框架允许我们集中处理各种请求,包括路由、过滤、安全等,极大地简化了服务间的通信。而...
通过配置Log4j,可以设定日志级别(debug、info、warn、error、fatal),并指定日志输出格式,从而实现对应用程序运行状态的监控和问题排查。 总之,Spring框架凭借其强大的功能和广泛的适用性,已经成为Java企业级...
赠送jar包:thymeleaf-spring5-3.0.14.RELEASE.jar 赠送原API文档:thymeleaf-spring5-3.0.14.RELEASE-javadoc.jar 赠送源代码:thymeleaf-spring5-3.0.14.RELEASE-sources.jar 包含翻译后的API文档:thymeleaf-...
Spring框架,作为Java开发中的主流框架,提供了对WebSocket的支持,使得开发者可以轻松地在Spring应用中集成WebSocket功能。 在这个"websocket+spring"项目中,前端和后端的代码都包含了实现WebSocket通信的逻辑。...
然而,当出现错误 `[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage (default) on project com.mutistic.boot` 时,这意味着Spring Boot的Maven插件在...
log.error("Error while stopping SocketServer", e); } } // ... 其他SmartLifecycle接口方法实现 } ``` 3. **Socket服务处理**:`SocketService`类是负责处理Socket连接的业务逻辑。它通常会创建一个新的...
弃用了struts,用spring mvc框架做了几个项目,感觉都不错,而且使用了注解方式,可以省掉一大堆配置文件。本文主要介绍使用注解方式配置的spring mvc,之前写的spring3.0 mvc和rest小例子没有介绍到数据层的内容,...
《Spring MVC 展示应用深度解析》 Spring MVC 是 Spring 框架的重要组成部分,它为构建基于模型-视图-控制器(MVC)模式的Web应用程序提供了强大的支持。"spring-mvc-showcase"项目是Spring官网提供的一个实战示例...
3. **异常回滚规则**:默认情况下,如果在@Transactional注解的方法中抛出未检查异常(继承自RuntimeException)或者Error,Spring会自动回滚事务。对于检查异常(非RuntimeException),如果不指定回滚规则,事务...
详解 SpringCloud Finchley Gateway 统一异常处理 SpringCloud Finchley Gateway 统一异常处理是指在使用 SpringCloud Finchley 版本的 Gateway 时,如何统一处理系统级异常的方法。默认情况下,SpringCloud ...
在深入探讨Spring源码编译过程中可能遇到的缺失包问题之前,我们首先需要理解Spring框架的基本概念和其在Java开发中的重要性。Spring是Java领域中最广泛应用的轻量级框架,它提供了丰富的功能,包括依赖注入、AOP...
**Spring Web MVC与Spring 2.0 Form Tag详解** 在Web开发领域,Spring Web MVC作为一款强大的MVC框架,被广泛应用于构建企业级的Web应用。它提供了模型(model)、视图(view)和控制器(controller)的分离,使得开发者...
Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0' defined in ServletContext resource [/WEB-INF/springMVC-servlet.xml]: Initialization of bean failed;...
<form-login login-page='/login' authentication-failure-url="/login?error=true"/> <logout logout-url="/j_spring_cas_security_logout" logout-success-url="/"/> <filter-name>casFilter ...
Log4j是Apache组织开发的日志记录工具,它允许开发者控制日志信息的输出级别(如DEBUG、INFO、WARN、ERROR等),并能将日志写入文件、控制台、数据库等多种目的地。在项目中配置Log4j,通常需要一个配置文件(如log4...