1. 程式人生 > >Error creating bean with name 'com.tool.InitCopierOne#0'

Error creating bean with name 'com.tool.InitCopierOne#0'

出現這種問題的原因,是自己所寫的ssm框架中的*.xml檔案中使用掃描所造成的,本身的目的是達到掃描資料庫中的內容,來達到載入資料的作用。

1.載入資料用到的兩個介面ServletContextAware和 InitializingBean。

2介面寫好以後需要在*.xml中來進行掃描

<bean class="介面所在類的目錄"></bean>

確保書寫類邏輯的正確性。