What Is a Java Virtual Machine (JVM)? Architecture Explained
The JVM loads, verifies and runs Java bytecode on any operating system. See its architecture, JIT compilation, memory areas, garbage collection and the JVM, JRE, JDK difference.
2,889 posts about Java: questions with answers, tutorials and articles, newest first.
The JVM loads, verifies and runs Java bytecode on any operating system. See its architecture, JIT compilation, memory areas, garbage collection and the JVM, JRE, JDK difference.
A Gradle build script configures plugins, dependencies and tasks for a project. See a complete Kotlin DSL example for a Java application and key commands.
Learn how Apache Ant build.xml files are structured, how targets and tasks work, and how to compile, copy and package a Java project step by step.
Ant is a flexible, script-driven Java build tool. Maven is convention-based with dependency management. Compare them and choose.
Maven repositories store the artifacts your build downloads and publishes. Learn local, remote and central repositories, mirrors, resolution order and deployment.
The Maven Compiler Plugin runs javac for your main and test code. Learn to set the Java release, compiler flags, annotation processors and fix common errors.
The pom.xml is the XML file that describes a Maven project: coordinates, dependencies, plugins and properties. See structure and examples.
Learn how Maven resolves transitive dependencies and how to inspect, pin, exclude and enforce them with dependency:tree, BOMs and the Enforcer plugin.
The Maven dependency tree lists direct and transitive dependencies with versions and scopes. Learn to print it, read conflicts and fix them with exclusions or a BOM.
Spring Boot profiles let one build run differently per environment. See profile files, activation methods, the @Profile annotation, groups and test usage.
@SpringBootApplication marks your Spring Boot entry point and enables configuration, auto-configuration and component scanning. See how each part works and how to tune it.
Package a Spring Boot app as a JAR or container image and deploy it to a server, Kubernetes or a cloud platform, with a short production checklist.
The Spring Boot CLI runs Groovy scripts with automatic dependencies and generates projects with spring init. Learn its commands, install steps and where it fits.
Spring Boot Actuator exposes /actuator/health to report application and dependency status. Learn custom indicators, details and Kubernetes liveness and readiness probes.
A Spring Boot starter is one dependency that pulls in a coherent, version-managed set of libraries. Learn how starters work with auto-configuration.
Combine Actuator health checks, Micrometer metrics with Prometheus and Grafana, central logging and tracing to monitor a Spring Boot app in production.
Spring Boot Actuator gives a Spring Boot application production-ready endpoints for health, metrics and diagnostics. Learn how to expose, secure and extend them.
Learn how Spring Security implements OAuth 2.0 as a client and resource server, with Spring Boot 3 configuration for provider login and JWT protected APIs.
@EnableWebSecurity turns on Spring Security's web support so you can define a SecurityFilterChain. See current Spring Security 6 configuration and what replaced the adapter.
Use Spring Security 6 with a SecurityFilterChain bean, hashed passwords, method security and JWT for APIs, plus a production hardening checklist.