Configuration

Configuring Spring-Loaded requires the agent JAR file to be downloaded on your system, and configured to be loaded as a javaagent by the build tool (or IDE).

Gradle build.gradle example

  1. run.jvmArgs('-noverify', '-javaagent:/usr/local/libs/springloaded/springloaded-1.2.8.RELEASE.jar')

Maven pom.xml example

  1. <project>
  2. <!-- -->
  3. <build>
  4. <plugins>
  5. <plugin>
  6. <groupId>org.codehaus.mojo</groupId>
  7. <artifactId>exec-maven-plugin</artifactId>
  8. <version>1.6.0</version>
  9. <configuration>
  10. <executable>java</executable>
  11. <arguments>
  12. <argument>-noverify</argument> <!-- 1 -->
  13. <argument>-javaagent:/usr/local/libs/springloaded/springloaded-1.2.8.RELEASE.jar</argument> <!-- 2 -->
  14. </arguments>
1Add noverify argument
2Add javaagent argument

You can now start the application with ./gradlew run (Gradle) or ./mvnw compile exec:exec (Maven).