异常信息如下:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personServicesFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.java.spring.factory.PersonServicesFactory]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class com.java.spring.factory.PersonServicesFactory
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.java.spring.demo.SpringDemo6.main(SpringDemo6.java:9)
Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.java.spring.factory.PersonServicesFactory]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class com.java.spring.factory.PersonServicesFactory
at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:213)
解决方案:
把指定的com.java.spring.factory.PersonServicesFactory类中的构造方法的访问修饰符改成public即可;
原因是因为Spring容器初始化时,访问不到共有的构造方法,从而无法创造Bean实例;
相关推荐
文件“Visible Light Communication in 5G.pdf”可能详细介绍了VLC技术在5G网络中的理论基础、系统架构、关键技术、实际应用案例及未来发展趋势。阅读该文件将有助于深入理解VLC如何融入5G生态系统,以及如何推动...
Loader.load(opencv_objdetect.class); // We can "cast" Pointer objects by instantiating a new object of the desired class. CvHaarClassifierCascade classifier = new CvHaarClassifierCascade(cvLoad...
论文:Misaligned Visible-Thermal Object Detection: A Drone-based Benchmark and Baseline 下载:https://ieeexplore.ieee.org/document/10522939 代码:https://github.com/VDT-2048/DVTOD
I am placing xgboost in a directory called xgboost_install_dir but this can be anything. 1. git clone https://github.com/dmlc/xgboost.git xgboost_install_dir 2. copy libxgboost.dll into the ...
在给定的标题"visible_band_histogra.rar_histogra_scatter plot"中,我们可以推断这个压缩包包含的是一个或多个用Matlab编写的脚本(.m文件),用于绘制可见光谱带的直方图以及可能的散点图。 1. 可见光谱带直方图...
private static final Log log = LogFactory.getLog(Bootstrap.class); /** * Daemon object used by main. */ private static Bootstrap daemon = null; private static final File catalinaBaseFile; ...
该项目为setVisibility(View.VISIBLE)添加了渐变效果,给显示和隐藏间添加过渡,看上去就不那么生硬。原理:对于layoutTransition: 使用LayoutTransition类在ViewGroup内部处理布局变化的动画。当调用一个View对象的...
│ ├── 13_Interview_Interview_2_People_Visible_13_1012.jpg │ ├── 13_Interview_Interview_2_People_Visible_13_1013.jpg │ ├── 13_Interview_Interview_2_People_Visible_13_101.jpg │ ├── 13_...
this.MyView2.Columns[4].Visible = false; // this.MyView2.Columns[5].Visible = false; this.MyView2.Columns[11].Visible = false; this.MyView2.Columns[12].Visible = false; this.MyView2.Columns[13]....
* \p{Graph} A visible character: [\p{Alnum}\p{Punct}] \p{Graph} 可视字符: [\p{Alnum}\p{Punct}] * \p{Print} A printable character: [\p{Graph}] \p{Print} 可打印字符: [\p{Graph}] * \p...
fixed: PageUp key bug when ScrollBar is not visible. fixed: Measuring HTML Column when WrapKid = wkWordWrap. fixed: Bug fixes and internal tweaks. NextGrid v5.7 -- added: RevertStyle(Integer) method....
VueJS(2.x)演示的VueVisible v-visible指令jsFiddle实时演示:https://jsfiddle.net/fcpc6utm/关于此插件为VueJS(2.x)演示添加了v-visible指令VueVisible v-visible指令jsFiddle实时演示:... ...
Dim x0 As Single Dim y0 As Single ... Line1.Visible = False Line2.Visible = False Line3.Visible = False Line1.BorderColor = vbRed Line2.BorderColor = vbRed Line3.BorderColor = vbRed End Sub
【前端项目-jquery-visible.zip】是一个前端开发相关的资源包,主要功能是提供了一个jQuery插件——jquery-visible。这个插件的目的是帮助开发者检测DOM中的元素是否在浏览器的可视区域内,即使用户进行了页面滚动。...
设置隐试打开PPT报错 Hiding the application window is not allowed
Command6.Visible = False a = Not a '变量开关,再次打开文件时进行判断 If a = True Then no1: Dim infile As String '打开通用对话框,获取文件名称 CommonDialog1.InitDir = "" CommonDialog1.Filter = "文本文件...
"JAVA 对word 内容的提取返回String" 在本文中,我们将详细介绍如何使用 Java 语言来提取 Word 文档的内容,并将其返回为字符串。我们将通过两种方式来实现这个目标,分别是使用 Java 流读取 Word 内容和使用 Jacob...
这种效果通过改变线条的`Visible`属性和`BorderColor`属性来实现。 ### 源代码解析 #### 基础设置 代码首先进行了基础设置,包括窗体标题、键预览功能关闭以及线条的初始状态设置。这些是实现浮动效果的前提条件...
Application app = com4j.createInstance(Visio.Application.class); app.visible(Variant.FALSE); // 设置为隐藏模式运行 Document doc = app.Documents.add(); doc.saveAs("新文档.vsdx", Variant.empty()); ...
this.notifyIcon1.Visible = true; this.notifyIcon1.Icon = new Icon("MyIcon.ico"); this.ContextMenuStrip=this.contextMenuStrip1; } private void 显示托盘ToolStripMenuItem_Click(object sender, ...