Tagged: #maven

How to convert a maven project to a non-maven project in Eclipse

Eclipse doesn’t provide a direct way to convert a Maven web project to a non-maven structure. In this tutorial, we provide an easy 2-steps way to do this. 1- Generate war file Suppose we have an existing maven web project with the following structure: In order to convert the above project to a non-maven structure, the first thing to do...

Spring cloud config server

Spring Cloud Config Server

Managing the configuration of microservices in a distributed system has been a tedious and time-consuming task especially if we’re talking about huge systems which consist of considerable amount of microservices. Each time you need to change the configuration of a microservice, you would go to the corresponding project, change its configuration and then restart the application for the change to...

Spring Boot + Spring Security + OAuth2

In this tutorial we explain how to secure a Spring Boot application using OAuth2. If you follow the steps in order, you’ll get a fully working secured application which authenticates user requests through Google API. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 Spring Boot 2.0.0 1- Create maven project Open eclipse then create a new maven project and...

Spring Boot + JPA + Hibernate + Oracle

In this tutorial we show how to create a Spring Boot application that communicates with an Oracle data source through Hibernate. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1- Create maven project Open eclipse, then create a new maven project and name it as SpringBootHibernate. At the end of this tutorial, we’ll get the following project structure: 2-...

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...

Deploy Spring Boot application on external Tomcat

Spring Boot provides an embedded servlet container which makes it very easy to setup and deploy web applications, by default all Spring Boot applications are exported as a runnable jar file and developers would only need to run this jar file on a java environment without the need to worry about installing and setting up servlet containers. However, the embedded...

Introducing Spring Boot

Setting up an enterprise spring-based application has become a tedious and error-prone task due to the required bulky configuration along with the complicated dependency management especially if we’re talking about applications which make use of several third party libraries. Each time you build an enterprise spring-based application, you have to repeat the same configuration steps: Import the required spring modules...

How to create a web project using Maven in Eclipse

In this tutorial, we provide a step-by-step guide on how to create a web project using Maven in Eclipse. Prerequisites: Eclipse IDE (Mars release) Java 1.8 Apache tomcat 8 1. Step-1 Open eclipse, then select File -> New -> Maven Project. 2. Step-2 In the next screen, select the workspace of the project and keep the other options as default then...