java - Spring injecting interface in multi module project -
one question spring developers:
i working on multi module project using spring framework.
modules:
parent (parent maven pom project)
all (ear project used build ear multiple modules)
catalog parent of
catalog-ejb (implementation)
catalog-api (interface)
there rest module has dependency catalog-api , uses autowired interface catalog-api.
problem during deployment "no qualifying bean of type found" exception.
api module deployed jar library within ear
ejb module deployed ejbmodule
rest module deployed webmodule (war).
actually there problem ejb module packaged ejb in ear. in result duplicate webinitializers executed @ startup resulting exceptions.
spring didn't found implementations because componentscan assigned *.api package implementation in *.ejb package.
Comments
Post a Comment