Added spring boot example application that can be used during test efforts
Added use of spring profiles
This commit is contained in:
17
src/test/java/ca/uhn/fhir/jpa/starter/Application.java
Normal file
17
src/test/java/ca/uhn/fhir/jpa/starter/Application.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package ca.uhn.fhir.jpa.starter;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.web.servlet.ServletComponentScan;
|
||||
|
||||
@ServletComponentScan(basePackageClasses = {JpaRestfulServer.class})
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
System.setProperty("spring.profiles.active", "r4");
|
||||
System.setProperty("elasticsearch.enabled", "false ");
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user