Most important Spring Framework annotations with examples


In the Spring Framework, annotations are regularly used to perform Spring core tasks like Inversion of Control (IoC) and Dependency Injection (DI). Before annotations were introduced in Java 5, the Spring Framework used XML files to manage Inversion of Control and Dependency Injection. Today, most Spring applications out there do this with annotations. Annotations are not […]

Understanding Dependency Injection (DI)


In object-oriented programming (OOP) you can think of objects or classes as components or modules that work together to provide the program’s functionality. In a well-structured program, you may want to replace Module A with Module B and even add new components to Module B, you may want to add unit testing or refactoring of […]

How to connect SourceTree 4 to your GitLab account


Today we’re going to connect our Gitlab account to SourceTree to be able to clone remote git repositories, make local changes and push them back to our VCS. Download SourceTree for your operating system from https://www.sourcetreeapp.com Continue to login to GitLab with your credentials.Click on your avatar in the upper right corner and select Settings. […]

JSP with JDBC connection to a MySQL database


Before we start with this example for connecting and reading data from a MySQL database, we assume that you already have a JSP/Servlet container like Apache Tomcat, Jetty etc. and a MySQL database installed on your computer. An easy to understand article about installing Apache Tomcat can be found in previous tutorials here on Librescript. […]

Installing Apache Tomcat 9 on Windows or macOS


To develop JSPs or servlets, you need a Tomcat container and the latest JDK (Java Development Kit) to be installed on your local computer. To find out if the JDK is already installed on your computer, you can open a command prompt window (CMD) or a terminal on macOS and run: $ java -version java […]

JavaScript unit testing with Jasmine


For this tutorial, we first need to install the latest version of Jasmine. We will use Jasmine 3.4 as a standalone version Download the latest version of Jasmine from https://jasmine.github.io and unpack the file in your workspace Alternatively, you can install Jasmine from the command line: #Global installation npm install -g jasmine #Local installation: npm […]