1. 程式人生 > >cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's conte

cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's conte

  1. cvc-complex-type.2.3: Element 'beans' cannot have character [children],    
  2. because the type's content type is element-only.  
這個錯誤,有的人說是配置處:  http://www.springframework.org/schema/aop中,aop應該寫成context。我的錯誤是,在寫每一個bean配置時候,格式錯誤,例如,在bean與bean之間錯誤的寫了一些字元。所以,只要自己好好檢查一下該配置檔案的內容的格式,應該就會發現問題