It is the default property file (resource) that is automatically recognized by the application. Yes, it is possible to have multiple property files within a single application. By default, this file is located in the
main/resources directory of the project.
application.properties is a key-value repository resource that is widely used for configuration properties and runtime variables. Those are the most common uses of the
In this article, I will demonstrate two ways of using
A generator is a construct in Python that allows for lazy or ad hoc loading of a stream of data. They can work like a list and be looped over, but generators have the ability to maintain state.
Yes, I know this will mean nothing to you without an example, so let’s get right into it with the code snippets below:
JAR. JAva aRchive. This is a file format that allows you to package your Java code into a single file format. This file format can be be used for storage or it can be runnable. Runnable meaning, with the click of a button it will launch your application (just like those icons on your desktop).
Having a JAR file provides a simple way for us to package our code. It comes inbuilt with compression to reduce the size of code and makes it easier to transfer code across mediums due to the file being a smaller singular one.
Is it just me? I like to try cool, fun stuff in Python. One of the most useful programs I have ever written is a PDF merger. The inspiration came as a result of needing to combine several PDFs together all at once without overriding any existing PDF resource.
To make our life easier, I will be using the PyPDF2 library. The GIF below exhibits the process of installing the library using the
pip install PyPDF2 command. The PyPDF2 library handles all the intricacies of merging the PDF files. …
Have you ever had the trouble of making an HTTP request to several different Application Programming Interfaces (APIs)? Wouldn’t it be easier to combine only what you need from these different APIs into a single API?
Creating a middleware can solve this issue. A software application middleware allows us to have a single customized source of data. One of the major benefits of having a middleware is that it connects many different products and services together in a shared system. So, what exactly is a middleware? According to Microsoft Azure, a middleware is a software operating as a hidden translation…
I don’t know if it’s how I was taught Java but my go-to method of running it is through the terminal. I enjoy the “hacker vibe” you get from being able to just use the keys on your keyboard to control the execution of a program.
In this article, I will be sharing how you can run your Java programs inside the command line.
Note: This demonstration will be done on a windows machine.
Running your Java programs from the command line gives an appreciation to…
Spring is a framework that allows you to create enterprise-level applications. The problem arose where it took many configurations to get an initial application up. This is where Spring Boot came along.
“Spring Boot allows you to abstract (hide) these configurations. So you can get a preconfigured template application.” — From part 1 of this series
Here in this article, you’ll be shown how to create a Rest API in Spring Boot. This API will be a CRUD (create, read, update, delete) application that connects to a SQL database — in this case, a MariaDB database.
If you’re new to…
You might have seen this one before: the syntax which often gets ignored because it doesn’t seem to hinder the execution of your code. It may not seem necessary, but that’s only if you’re working with a single Python file.
Let’s start out by deconstructing the statement from left to right. We already know what an if statement is; however, the most important part of the statement are the two things being compared.
Let’s start with
__name__ .This is used to denote the name of the file that is currently being run, but there is a trick to this. …
Enjoys creating software that make tasks simpler. Always trying to gain new knowledge and expertise.