@EnableAsync annotation metadata was not injected
not was metadata annotation
2023-09-27 14:23:13 时间
今天将老的项目放在Myeclipse2015中运行时,报错了。
错误原因:
在spring的配置文件applicationContext.xml中, 配置包扫描器时, 使用了*, 想扫描所有的包; 而这种方式有可能扫描到spring自带的包, 造成错误(自我理解, 不对的话求教育)
改动前:
<!-- 包扫描器 --> <context:component-scan base-package="*"/>
改动后 :
<!-- 包扫描器 --> <context:component-scan base-package="service.*,dao.*,action.*"/>
相关文章
- sqoop:Failed to download file from http://hdp01:8080/resources//oracle-jdbc-driver.jar due to HTTP error: HTTP Error 404: Not Found
- Could not create the view: An unexpected exception was thrown.问题解决
- Eclipse:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path
- mybatis报错:A query was run and no Result Maps were found for the Mapped Statement、、Property [login_ip] not found on type [com.thinkgem.jeesite.common.permission.entity.PremissUser]问题解决
- Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 解决Eclipse Debug 的source not found问题
- win7安装mysql8提示one more product requirements have not been satisified
- Status bar could not find cached time string image. Rendering in-process?
- iOS-Could not find Developer Disk Image
- javaweb 项目启动问题:Application Server was not connected before run configuration stop, reason: javax.manage
- 【AIX】3004-314 Password was recently used and is not valid for reuse
- “send“ and “transfer“ are only available for objects of type “address payable“, not “address
- 【日常记录】解决‘GLIBC_2.34‘ not found,并且gcc制定glibc版本编译
- 引入echars5.0报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
- java.lang.RuntimeException: Can't toast on a thread that has not called Looper.prepare()
- Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources。
- 多模块项目提示“Module ** must not contain source root **. The root already belongs to module **”的解决办法
- "Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit."
- MySQL [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause
- D - Not Divisible -- ATCODER
- [iOS Xcode8报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserN
- An SPF (type 99) record was not found. This record type is planned to supplant the SPF formatted TXT records,
- Delphi出现“borland license information was found,but it is not valid for delphi”的错误,无法运行的解决方法
- com.mongodb.MongoException$CursorNotFound: cursor not found on server异常处理