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
run.jvmArgs('-noverify', '-javaagent:/usr/local/libs/springloaded/springloaded-1.2.8.RELEASE.jar')
Maven pom.xml example
<project>
<!-- -->
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-noverify</argument> <!-- 1 -->
<argument>-javaagent:/usr/local/libs/springloaded/springloaded-1.2.8.RELEASE.jar</argument> <!-- 2 -->
</arguments>
1 | Add noverify argument |
2 | Add javaagent argument |
You can now start the application with ./gradlew run
(Gradle) or ./mvnw compile exec:exec
(Maven).