Installation

Installing with existing SpringBoot applications

Integrate Palmyra in SpringBoot Application

Add Project Dependency

For Gradle projects

Add palmyra dependencey in project build configuration, example given for gradle build.

repositories {
		mavenCentral()
		maven {
	        url "https://repo.palmyralabs.com/releases"
	    }
	}


dependencies {
.. spring dependencies
	implementation 'com.palmyralabs.palmyra:palmyra-spring:1.0.0'
}

For Maven projects

Modify pom.xml as below

Configure springboot

and in the SpringBoot main class, Import PalmyraSpringConfiguration The starter java class would be as below.

@SpringBootApplication
@Import({PalmyraSpringConfiguration.class})
public class App {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}	
}