Here is how you can convert Java LocalDateTime to ZonedDatime. Java LocalDateTime store only date time information without any timezone information. You can convert it to a ZonedTime with time zone information.
Sadupa Wijeratne
29 Articles
Sadupa Wijeratne is the founder of My Cute Blog. Currently working as a software engineer. Interested about latest technologies and love to learn by experience.
You may have encountered following error if you are migrating hibernate to version 5.x from an older version, This happens due to changes in hibernate HQL parameters of latest versions. Here is a quick fix to overcome this issue Simply replace ‘?’ with ‘?0’ in…
Here is a step by step guide on how to setup Lets Encrypt free SSL certificate on an AWS EC2 instance with Amazon linux OS. Cerbot client is used to generate the certificates. Currently Lets Encrypt does not officially supports for Amazon Linux OS. But…
Here is a H2 database example using Hibernate and Spring Boot. This example shows you how to create, read, update and delete a record in H2 database.
Spring framework has built in support for scheduled tasks. Here are some examples of spring cron jobs using both annotations and xml configurations.
You can send an email in a bash script using mutt command. Here is how you can send an email with an attachment to multiple recipients using a linux shell script.
Here is an example using hibernate4, spring4 and maven. Learn how to do simple create, read, update and delete operations using hibernate.
Here are some sample log4j2 xml configurations. This includes full source code created with maven.
Here is how to run multiple mysql instances on the same machine. This will be helpful when you need to run different mysql version on same computer or have separate mysql servers for each system. Here I assume you have already installed one instance of…
Here is how you can replace a text in a file using bash script. You can use the sed command as below to replace the text.