我遇到了「WELD-001408 Unsatisfied dependencies」的奇怪事件。焊接1.1 +焊料導致不滿足的依賴關係?
按照所有規則和文檔,應該解決依賴關係。在其他一些bean中是正常的@Produces
方法和@Inject
。
@Produces @ApplicationScoped public Properties getEntityManagerFactoryProperties(){
...
}
@Inject
private Properties emfProperties;
現在我試圖從焊縫1.1.13升級到2.0.1,並開始變得「WELD-001332 BeanManager方法getBeans()是不是在應用程序初始化過程中不可用」,這是在SOLDER-339描述。
焊料可能是奇怪的不滿意的依賴關係的罪魁禍首嗎?
如果你可以發佈完整的例外,這將有所幫助。我會推薦新的項目使用deltaspike而不是焊料,只是爲了當前的可維護性。焊料與焊縫2/cdi 1.1不兼容。 –