Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Spring Boot starter for Segment Analytics

This module provides a Spring Boot starter for the Segment client.

Usage

For Maven, include this dependency in your pom.xml:

<dependency>
  <groupId>com.segment.analytics.java</groupId>
  <artifactId>analytics-spring-boot-starter</artifactId>
  <version>${segment.analytics.version}</version>
</dependency>

For Gradle,

compile 'com.segment.analytics.java:analytics-spring-boot-starter:+'

In your Spring Boot configuration (application.properties, environment, or similar), provide the property segment.analytics.writeKey. The autoconfiguration will register an Analytics bean in the Spring context ready for use.