Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

Spring Boot docs
Spring Boot
Getting Started with Spring BootProject Structure and ConfigurationCore ConceptsData and StateTestingDeployment
Discussions

Spring Boot guide · 6/6

Deployment

A Spring Boot application is packaged as a single executable jar that includes its web server. You can run that jar directly on a server, or build a container image and deploy it to a platform such as Kubernetes. This chapter covers packaging, container images, production configuration and Actuator health checks.

Build an executable jar

# Gradle: build/libs/demo-0.0.1-SNAPSHOT.jar
./gradlew bootJar

# Maven: target/demo-0.0.1-SNAPSHOT.jar
./mvnw package

java -jar build/libs/demo-0.0.1-SNAPSHOT.jar

Gradle's build task also produces a -plain.jar without dependencies; deploy the jar without plain in its name. The target machine needs only a JRE.

Passing production configuration

Treat the configuration inside the jar as defaults and pass environment-specific values at launch through environment variables or command-line arguments. Never bake secrets into images or commit them to the repository.

export SPRING_PROFILES_ACTIVE=prod
export SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/demo
export SPRING_DATASOURCE_PASSWORD=change-me
java -jar demo.jar --server.port=8080

Container images with Buildpacks

You can build an image without writing a Dockerfile, using Cloud Native Buildpacks. Docker must be running; the buildpack chooses the JRE, splits the image into layers and tunes memory settings for you.

./gradlew bootBuildImage --imageName=myorg/demo
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=myorg/demo

docker run -p 8080:8080 myorg/demo

Container images with a Dockerfile

If you want full control over the image, write a Dockerfile. Extracting the jar into layers means a code-only change does not invalidate the dependency layers, which makes rebuilds and pulls faster.

FROM eclipse-temurin:21-jre AS builder
WORKDIR /builder
COPY build/libs/demo-0.0.1-SNAPSHOT.jar application.jar
RUN java -Djarmode=tools -jar application.jar extract --layers --destination extracted

FROM eclipse-temurin:21-jre
WORKDIR /application
COPY --from=builder /builder/extracted/dependencies/ ./
COPY --from=builder /builder/extracted/spring-boot-loader/ ./
COPY --from=builder /builder/extracted/snapshot-dependencies/ ./
COPY --from=builder /builder/extracted/application/ ./
ENTRYPOINT ["java", "-jar", "application.jar"]

Health checks with Actuator

spring-boot-starter-actuator adds production endpoints. Only /actuator/health is exposed over HTTP by default; expose others selectively.

management:
  endpoints:
    web:
      exposure:
        include: health,info
  endpoint:
    health:
      probes:
        enabled: true
      show-details: when-authorized

curl http://localhost:8080/actuator/health returns {"status":"UP"}, which turns into DOWN if, for example, the database becomes unreachable. Enabling probes adds /actuator/health/liveness and /actuator/health/readiness; they are enabled automatically when the app detects it is running on Kubernetes.

# Part of a container spec in a Kubernetes Deployment
livenessProbe:
  httpGet:
    path: /actuator/health/liveness
    port: 8080
readinessProbe:
  httpGet:
    path: /actuator/health/readiness
    port: 8080

Pre-deployment checklist

  • Make sure the production profile and external settings (database, secrets) arrive through environment variables.
  • Set spring.jpa.hibernate.ddl-auto to validate or none and change the schema only through Flyway.
  • Expose only the Actuator endpoints you need, and secure them with Spring Security if necessary.
  • If startup time and memory matter, consider a GraalVM native image.

Summary

  • Build one jar with bootJar or package and run it with java -jar.
  • Build container images with bootBuildImage (Buildpacks) or a layered Dockerfile.
  • Pass environment-specific values through environment variables and profiles.
  • Let your platform check application health through Actuator's health endpoint and probes.

Official documentation

  • Spring Boot Reference Documentation
  • Deploying Spring Boot Applications
  • Container Images
  • Production-ready Features (Actuator)
  • Spring Guides
Questions about this chapter?
Previous chapterTesting

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.