Site icon Tech In The Cloud

Angular JS and Bootstrap with Spring, Spring Security and Hibernate

Angular

Folks have been asking me if I knew of any good examples of a J2EE web application that utilizes the following technologies: Angular JS, Bootstrap, Spring 4, Spring Security 4 and Hibernate 5.2.4, and after searching around

I decided that it would be best to create an example project that would demonstrate the integration of all these technologies as well as describe some of the specifics.

Before you start

About this post:

What you will gain reading this post:

What you can do to help support:

Now, let’s get started.

Angular JS

Why choose this technology

For the example I wanted to create the client rich J2EE web application that uses a technology.

To utilize MVC on the client side allowing for a more responsive application and less server interactions.

To use a technology that is sort after on the market.

Technology focus areas

Bootstrap

Why choose this technology

For the example I wanted to create the J2EE web application that looks professional and is quick to style.

Bootstrap is a responsive web library allowing for ideal UI displaying across different devices and resolutions.

Technology focus areas

Spring 4.2.5

Why choose this technology

For the example I wanted to create the functionality scenarios to best emulate the industry best practices and for the reader to be able to walk away understanding how they can utilize the growing demand for a client rich front end while still  rely on the server side technologies that are currently strong in the market.

I decided to use Spring 4 MVC to create a RESTful API in which the client could GET, POST, PUT, DELETE data as it was required.

Technology focus areas

Spring Security 4.1.0

Why choose this technology

For the example I wanted to have the RESTful API endpoints protected as sensitive information can be accessed and sensitive operations performed.

Spring Security allows to have the endpoints annotated with @PreAuthorize, @Secured or @PostAuthorize depending on you configuration and when you want to have the security check performed.

Technology focus areas

Hibernate 5.2.4

Why choose this technology

For the example I wanted to demonstrate a complete end to end solution where transaction operations could be executed that would show industry based standards.

Hibernate allows for JPA implementation utilizing the Entity Manager and creating simple transactions.

Technology focus areas

Example

You can check out the project from the following location below:

Project URL: https://github.com/Rob-Leggett/angular_bootstrap_spring
Here is what you can learn:

Did this help?

Exit mobile version