org.springframework.beans.factory.BeanNotOfRequiredTypeException must be of type
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'british' must be of type [service.British], but was actually of type [com.sun.proxy.$Proxy9]
解決辦法:在applicationContext.xml中新增<aop:config proxy-target-class="true"/>
設定為CGLIB代理就好
相關文章
- Mount: you must specify the filesystem type
- 除錯記錄:The public type must be defined in its own file除錯
- linux 掛載光碟:mount: you must specify the filesystem typeLinux
- The content of element type "package" must match "(result-types?,interceptors?...Package
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- Caused by: org.hibernate.MappingException: must specify an identifier type:APPExceptionIDE
- It's a must to ghd
- 直接用 appium 可以連線真機,用 pycharm 執行指令碼時報錯 “'platformVersion' must be of type string”APPPyCharm指令碼Platform
- XX must be built with ARCUI
- find: paths must precede expression:Express
- Flutter:VM snapshot must be valid. Check failed: vm. Must be able to initializeFlutterAI
- variable: Type 與 Type variable
- cannot convert (type interface {}) to type int: need type assertion
- Value Type vs Reference Type in SwiftSwift
- Service異常:Service Intent must be explicitIntent
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- Type in Chakra
- 【Redis】錯誤:failed: Hostname must not be empty or nullRedisAINull
- Page directive must not have multiple occurrences of pageencodingEncoding
- HITSC_4_Data Type and Type Checking
- Golang Cannot use ss(type AAA) as type AAA in map indexGolangIndex
- A resource type with the name 'ora.daemon.type' is already registered
- oracle enqueue typeOracleENQ
- jQuery.type()jQuery
- oracle block type!OracleBloC
- Type classes in Scala
- block corruption typeBloC
- [PLT] Type system
- The type MultipartEntity is deprecated
- Type與Class
- MIME TYPE (轉)
- requirement for output typeUIREM
- type.jsJS
- 如何解決 case expressions must be constant expressionsExpress
- ORA-39700: database must be opened with UPGRADE optionDatabase
- Error 1: Filename must be either an absolute pathname or blocklist(轉)ErrorBloC
- python argument 1 must be 2-item sequence, not intPython
- Xtrabackup恢復時報錯'Error: datadir must be specified'Error