I'm in trouble refactoring a monolithic application into a multi-module structure:
-\
+ core (jpa domain entities, services, ...)
+ command-line-utils
+ web-app
I've moved classes and configured the pom files so that everything compiles and the web app executes correctly.
I cannot understand how to move into the core module the basic junit tests I originally had: I cannot stop having errors concerning missing @Autowired repositories.
I understand that I probably should define some sort of configuration class (?) in the core module (I do not have any special configuration concerning persistence in the original moloc except datasource parameters in properties file).
Aucun commentaire:
Enregistrer un commentaire