簡體   English   中英

創建在類路徑資源中定義的名稱為'/ sbhupload'的bean時出錯-Junit

[英]Error creating bean with name '/sbhupload' defined in class path resource - Junit

當我嘗試在現有的spring項目中使用junit進行整數運算時,出現以下錯誤。

> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '/sbhupload' defined in class path
> resource [com/scb/test/base/CAD_ApplicationContext_Test.xml]:
> Instantiation of bean failed; nested exception is
> java.lang.ExceptionInInitializerError

您似乎錯過了類路徑中已尋址的消息資源。 由於您未提供代碼,因此無話可說。

MessageResources是通過struts框架(可能是jsp標記)處理的文本和i18n翻譯。

這些通常是帶有foo_<locale_country>.properties

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM