Memorynotfound Java Programming Tutorials
Simple Redis Message Queue
In this tutorial we will build a redis message queue. Redis can be used as a Message Queue. Messages will be queued in a list by key-value. Producers add messages into the end of...
Creating and running a thread in Java
In this example, we will create and running a thread in a java application. This example is very basic but it helps to understand how a thread can be created and executed. We can...
Minify Javascript Css using maven minify plugin
In this tutorial we will show how to minify and compress javascript and css files using maven-minify-plugin. The maven-minify-plugin minifies and compresses javascript and css files at built time which means that you first...
List all System Properties in Java
This example show how you can list all system properties of a running java application. You can use this as a reference to look up which properties are by default available. Print System Properties...
Get Uptime Operating System Windows, Mac, Linux
This example shows you how you can get the uptime for different operating systems like Windows, Mac or Linux. In windows, you can execute the net stats srv command. In Unix, you can execute...
How to get Uptime Java JVM running Application
This tutorial shows you how to get the uptime (in milliseconds) of your running JVM/java application. This could be used to display in a fancy dashboard for your users or administrators. We can obtain...
Loading a property or system property using spring @Value
In the previous tutorial we saw how you can load properties from a file. In this tutorial we will show you how to inject these properties or system properties into a spring bean using...
Load Properties from a file with Spring Property Placeholder
In this example we will show you how to load properties from a file using spring property placeholder. With PropertyPlaceholderConfigurer you can externalize property values from a bean definition in a separate file. This...
Spring XML Auto Component Scanning / Mapping Componetns
This example shows how to use spring xml auto component scanning. We will compare the traditional way using only xml to configure your spring beans and use the auto component scanning option. The last...