You may wish your Spring Boot application to run with a timezone different from your machine’s default. In this tutorial, you can learn to configure this at different points during Spring’s startup.
Search Results for: set
Convert String to OffsetDateTime
Learn why converting strings to OffsetDateTime objects is crucial for handling date and time in Java applications.
Set Matrix Elements to Zero in Java
In this tutorial, we learn various approaches to setting a matrix’s entire row and column to zero if one of the elements is zero.
Check if an Element Is Present in a Set in Java
Learn to check if an element is in a Set in Java.
When to Use Setter Methods or Constructors for Setting a Variable’s Value in Java
Learn when to use setter methods or constructors for setting the value of a variable in Java.
Commit Offsets in Kafka
Learn about offset commits in Kafka.
Collect Stream of entrySet() to a LinkedHashMap
Explore various ways to collect a stream of Map.Entry objects into a LinkedHashMap.
Set an Environment Variable at Runtime in Java
Learn how to have more control over the environment variables, especially for test scenarios.
Difference between ZoneOffset.UTC and ZoneId.of(“UTC”)
Explore the ZoneOffset.UTC and ZoneId.of(“UTC”) methods and their key differences and use cases.
List vs. Set in @OneToMany JPA
Explore the differences between Lists and Sets in the context of entity relationships through examples.
Reset ListIterator to First Element of the List in Java
Explore the various ways to reset a ListIterator to the beginning of a list in Java
Setting up and Using Spock With Gradle
Learn how to configure Gradle dependencies to write specification tests with Spock and Spring.
Setup Asynchronous Retry Mechanism in Spring
Learn to implement an asynchronous execution with automatic retry in a Spring application.
Setting a Spring Bean to Null
Learn how to set beans in the Spring context to nulls.
Convert ResultSet Into Map
Learn to convert a ResultSet in to a HashMap in Java.
HashSet toArray() Method in Java
Learn how to convert a HashSet into an array using the toArray() method of the HashSet class.
How to Set Up Environment Variables in IntelliJ IDEA
A quick and practical guide to setting up environment variables with Intellij IDEA.
How to Get Index of an Item in Java Set
Explore how to find the index of an element in a Set.
Set a Parameter in an HttpServletRequest in Java
Learn how to modify a Servlet API request to set parameters that were not in the original HTTP request.
Cartesian Product of Any Number of Sets in Java
Learn how to determine the Cartesian product of an arbitrary number of sets in Java.