org.springframework.beans.factory.BeanCreationException

Problem:

執行程式時發生了奇怪的事,

出現了org.springframework.beans.factory.BeanCreationException,

伴隨java.lang.reflect.MalformedParameterizedTypeException…

Environment:

spring 3.0.6 + mybatis 3.0.6

Situation:

單獨執行程式時可正常運作, 包入另一程式後卻出現Exception.

Reason:

另一程式也使用spring, 但版本不同(3.0.5)。因為版本衝突導致程式無法運作。

(spring version conflicts)

Solution:

把另一個版本的Spring library移除, 只留下一個版本即可。

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s