自定义启动器类有bug

Blade 未结 1 263
wasd345
wasd345 剑童 2023-12-18 16:15

一、该问题的重现步骤是什么?

1. boot单机版本启动有问题

2. 命令行太长

3.Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]


二、你期待的结果是什么?实际看到的又是什么?

能用idea 2022.2版本正常启动boot单机版本


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

1:boot单机商业版本。

2:win11电脑

3:idea版本 2022.2


四、请提供详细的错误堆栈信息,这很重要。


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:298)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)

五、若有更多详细信息,请在下面提供。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:298)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)


1条回答
  • Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader,有改过代码吗?依赖有冲突了,删了本地仓库从新下载一下依赖试试。

    0 讨论(0)
提交回复