Multithreading in Java and Spring Boot
1. Creating Threads in Java 1.1 Extending the Thread Class public class MyThread extends Thread { public void run() { // Code to be executed in the new thread for (int i = 0; i Read more…
1. Creating Threads in Java 1.1 Extending the Thread Class public class MyThread extends Thread { public void run() { // Code to be executed in the new thread for (int i = 0; i Read more…
Set up dependency <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> Configuring JPA and Hibernate in application.properties file spring.datasource.url=jdbc:mysql://localhost:3306/dbname spring.datasource.username=root spring.datasource.password=password spring.jpa.hibernate.ddl-auto=update or application.yml spring: application: name: demoapp datasource: url: jdbc:mysql://localhost:3306/dbname username: root password: password driver-class-name: com.mysql.cj.jdbc.Driver jpa: hibernate: Read more…
DockerFile Reference: https://docs.docker.com/reference/dockerfile/ Best practices for Dockerfile instructions: https://docs.docker.com/develop/develop-images/instructions/
Import from rootfs archive Format: docker import [options] <file>|<URL>|- [<repository name>[:<label>]] The tarball can be a local file, a remote web file, or even from standard input. The tarball will be expanded in the mirror Read more…
From the previous docker commit, we saw that customizing an image is really just customizing the configuration/files that are added at each layer. If we could write each layer of modify, install, build, and manipulate Read more…
Zeming Wang
+61 491 609 745
wzm970527@gmail.com