Testing Spring Boot Applications
Executive Summary: Most Spring Boot testing is plain JUnit 5 and Mockito: build the service directly and mock its dependencies. Here I show when to boot…
Category
Java is a statically typed, object-oriented language that compiles to bytecode and runs on the Java Virtual Machine, so the same build runs on any platform with a JVM. Its mature ecosystem includes the Collections framework, JDBC, JPA with Hibernate for data access and Spring Boot for web services. Java remains a mainstay for enterprise backends and large data systems, with a new long-term support release every two years.
74 articles
Executive Summary: Most Spring Boot testing is plain JUnit 5 and Mockito: build the service directly and mock its dependencies. Here I show when to boot…
Executive Summary: Spring Security basics rest on two questions: authentication checks who is calling, and authorization decides what…
Executive Summary: Bean Validation lets you put constraints like @NotNull, @Size, and @Email on fields and check them…
Executive Summary: Java’s built-in HttpClient handles HTTP calls, and Jackson’s ObjectMapper turns JSON into records and back. I…
Executive Summary: The repository pattern puts data access behind a domain-named interface, with an in-memory implementation for fast…
Executive Summary: JPA and Hibernate replace hand-written row mapping with mutable entities managed by an EntityManager. I cover…
Executive Summary: This hands-on project builds a book catalog CRUD app with plain JDBC, H2, and a small…
Executive Summary: Production JDBC needs a connection pool and explicit transactions. I show how to configure HikariCP and…
Executive Summary: JDBC is a standard interface over vendor drivers, built on Connection, PreparedStatement, and ResultSet. Here I…
Executive Summary: A Java CI pipeline on GitHub Actions starts with one workflow file that checks out the…
Executive Summary: Debugging Java follows one loop: reproduce, isolate, form one hypothesis, and verify it with evidence. Here…
Executive Summary: Java logging works best with SLF4J as the facade and Logback as the engine, so levels…
Executive Summary: Good tests follow the test pyramid: many fast unit tests, fewer integration tests, and a thin…
Executive Summary: Mockito lets you replace a class’s dependencies with mocks, stub their responses, and verify the calls…