springboot(3)
-
11/06/23 gradlew build
Once you write a Spring Boot web application, you might want to deploy the service. One of the easiest ways is to biuild the JAR file by using the following command: ./gradlew build The JAR file is created under the ./build/libs/ directory. Now that you can run your Spring Boot web application anywhere if there is a compatible Java Runtime Environment by using this command: java -jar build/libs/..
2023.06.11 -
11/06/23 record type in Java
With the release of Java 14, it introduces a Record class. Records are immutable data classes that require only the type and name of fields. Programmers can use them to pass immutable data between objects. Record classes are popular when creating a resource representation classes. The below screenshot is an example of using a Record class. You don't need to define any member variables and member..
2023.06.11 -
11/06/23 gradlew tasks
When you download and unarchive the demo project from https://start.spring.io, there is an executable shell script called gradlew on MacOS. Even though, the Spring Quickstart Guide asks readers to type gradlew bootRun to start your Spring Boot application. I wonder how to list gradle commands for this project. The command gradlew tasks gives you a list of the main tasks of the selected project l..
2023.06.11