Home » Tag Archives: Maven

Tag Archives: Maven

4 Ways to Deploy Spring Boot Angular App (Maven & Tomcat)

In my last spring boot angular 5 article, we implemented a full stack end to end web application using spring boot angular 5.In this article we will discuss about different ways to deploy spring boot and angular app on tomcat. We will be creating a multi module maven project with backend(server) and fronted(client) and look into 4 ways about how ...

Read More »

Build REST Web Service using Spring Boot


This tutorial provides a step-by-step guide on how to build a restfull web service using Spring Boot. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1. Create maven web project Open eclipse then create a new maven web project and name it as SpringBootRest. The structure of the generated project looks like the following: 2. pom.xml After creating the web project, the ...

Read More »

Maven, Eclipse and Java 9

Anyone that uses the M2E(maven-to-eclipse) plugin in eclipse knows the issue where you have run a build, then update maven on your project only to have it reset the JRE and throw up a wall of project errors! I noticed the issue in the post I made on running Java EE 8 with Java 9 using Open Liberty The solution ...

Read More »

Integration tests with Maven

Implementing unit tests with maven is something ordinary and most of us are familiar with the project structure and where the unit tests reside. However Integration tests are a different case and most of times they have pretty different requirements. For example it is ok to have your unit tests operate on a h2 in memory database but when it ...

Read More »

OWASP Dependency Check Maven Plugin – a Must-Have

I have to admit with a high degree of shame that I didn’t know about the OWASP dependency check maven plugin. And seems to have been around since 2013. And apparently a thousand projects on GitHub are using it already. In the past I’ve gone manually through dependencies to check them against vulnerability databases, or in many cases I was ...

Read More »

Continuous Delivery friendly Maven versions

A Continuous Delivery pipeline requires predictable software and dependency versions. Snapshot versions, which are common in Maven software projects, contradict the motivation behind Continuous Delivery. In order to update snapshot versions to release versions developers usually edit the pom.xml file by hand or via a plugin such as the maven-release-plugin. However, Maven also offers the possibility to define version numbers ...

Read More »

Using MySQL JDBC Driver With Spring Boot

In this article, I will show you how to connect a MySQL database with your Spring Boot application. Tools used in this article include: Spring Boot 1.5.6 Release MySQL 5.7.X Maven Java 8 Spring Data JPA 1 – Project Structure The project structure is a typical Maven structure. 2 – Project Dependencies Please note that the parent needs to declared. ...

Read More »

PagingAndSortingRepository – How to Use With Thymeleaf

For this tutorial, I will demonstrate how to display a list of a business’ clients in Thymeleaf with pagination. 1 – Project Structure We have a normal Maven project structure. 2 – Project Dependencies Besides the normal Spring dependencies, we add Thymeleaf and hsqldb because we are using an embedded database. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> ...

Read More »

Validation in Thymeleaf + Spring

Overview Important topics we will be discussing are dealing with null values, empty strings, and validation of input so we do not enter invalid data into our database. In dealing with null values, we touch on use of java.util.Optional which was introduced in Java 1.8. 0 – Spring Boot + Thymeleaf Example Form Validation Application We are building a web ...

Read More »