LordLamer
  • Home
  • About Me
  • Familie
  • Knowledgeroot
  • Impressum
KEEP IN TOUCH

Spring Boot – App Deployment on Linux

May13
2016
Written by lordlamer

Spring Boot bietet die Möglichkeit seine erstellte Jar-Datei auch als Selbstausführenden Linux-Dienst zur Verfügung zu stellen. Das heißt, die erstellte Jar-Datei lässt sich direkt als Linux-Dienst nutzen.

Um das Feature zu nutzen müsst ihr pom.xml wie folgt anpassen:

1
2
3
4
5
6
7
<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <executable>true</executable>
    </configuration>
</plugin>

Nach einem Package erstellen können wir die Datei auf unser Zielsystem deployen. Ein Link in die entsprechenden Runlevels und schon können wir die Spring Boot App als Linux Dienst laufen lassen.

Weitere Informationen dazu hier:
http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html

Posted in Java
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Neue Leselektüre ist da – The Book of PF
» Urlaub 2016

Community

  • Forum
  • GitHub
  • Knowledgeroot
  • YouTube

Categories

  • bsd (1)
  • citrix (3)
  • Company (27)
  • Debian (11)
  • docker (1)
  • Familie (75)
  • Geocaching (2)
  • Hausbau (41)
  • IPv6 (5)
  • Java (4)
  • klettern (10)
  • Knowledgeroot (16)
  • Linux (12)
  • LUG Balista (1)
  • misc (22)
  • mysql (1)
  • netscreen (2)
  • postgresql (1)
  • sap (4)
  • Software Architektur (2)
  • solr (2)
  • vim (2)

EvoLve theme by Theme4Press  •  Powered by WordPress LordLamer
Frank Habermann

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok