Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.33 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.33 KB

WIP12 User Service

Requirements

For building and running the application you need:

Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the de.codecentric.springbootsample.Application class from your IDE.

Alternatively you can use the Spring Boot Maven plugin like so:

mvn spring-boot:run

Set up Environment Variable

Environment variables can be specified using the environmentVariables attribute. The following sets the 'ENV1', 'ENV2', 'ENV3', 'ENV4' env variables:

<project>
  ...
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <environmentVariables>
                <ENV1>5000</ENV1>
                <ENV2>Some Text</ENV2>
                <ENV3/>
                <ENV4></ENV4>
            </environmentVariables>
        </configuration>
        ...
      </plugin>
      ...
    </plugins>
    ...
  </build>
  ...
</project>