Skip to content

Commit

Permalink
OZ-657: Make scanBasePackages configurable (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett authored Jul 22, 2024
1 parent e447ede commit 13b5586
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/ozonehis/eip/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication(scanBasePackages = {"org.openmrs.eip, com.ozonehis.eip"})
@SpringBootApplication(scanBasePackages = "com.ozonehis.eip.*, ${eip.app.scan.packages}")
public class Application {

public static void main(final String[] args) {
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/resources/eip-client.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ camel.springboot.main-run-controller=true
# Camel context name
camel.springboot.name=${spring.application.name}
# ----------------------------------------------------------------------------------------------------------------------

## --- EIP Client Configuration ----------------------------------------------------------------------------------------
# Comma-separated list of packages to scan for EIP classes (components, routes, etc.)
# Default is org.openmrs.eip.*, which scans all packages under org.openmrs.eip. You can specify other different packages.
eip.app.scan.packages=org.openmrs.eip.*
# ----------------------------------------------------------------------------------------------------------------------

0 comments on commit 13b5586

Please sign in to comment.