Setup your project

Spring Boot integration process overview

1. Create new store in Smarts Web Manager to get access token

2. Register store from your application property file

smarts.access[0].token=${PASTE_YOUR_ACCESS_TOKEN_HERE}
smarts.access[0].institution={PASTE_YOUR_STORE_ID_HERE}

3. Import Smarts dependency to your Spring Boot project

<repositories>
    <repository>
        <snapshots>

            <enabled>false</enabled>
        </snapshots>
        <id>smarts-central</id>
        <name>libs-release</name>
        <url>http://repo.huefy.eu/artifactory/libs-release</url>
    </repository>
    <repository>
        <snapshots />
        <id>smarts-snapshots</id>
        <name>libs-snapshot</name>
        <url>http://repo.huefy.eu/artifactory/libs-snapshot</url>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>smarts-central</id>
        <name>libs-release</name>
        <url>http://repo.huefy.eu/artifactory/libs-release</url>
    </pluginRepository>
    <pluginRepository>
        <snapshots />
        <id>smarts-snapshots</id>
        <name>libs-snapshot</name>
        <url>http://repo.huefy.eu/artifactory/libs-snapshot</url>
    </pluginRepository>

</pluginRepositories>
<dependency>
    <groupId>ee.smarts</groupId>
    <artifactId>spring-boot-starter</artifactId>
    <version>0.0.49-SNAPSHOT</version>
</dependency>

Last updated