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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -