On a previous post I provided a simple example on how to achieve aspect orientation in spring by using a ProxyFactoryBean and implementing the MethodBeforeAdvice interface. On this example we will learn how to achieve aspect orientation by using Spring boot and Aspect4j annotations. Let’s start with our gradle file. group 'com.gkatzioura' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'idea' ...
Read More »Home » Spring Boot »
Validating JWT with Spring Boot and Spring Security
For my current project I will have a REST API set up with Spring Boot (most likely running with BoxFuse). To be able to use the API endpoint the application will check that the incoming request has a valid JWT token provided earlier (by an API service that I trust). To implement this functionality I want to make use of ...
Read More »Build a new Web Application from scratch using Spring boot, Thymeleaf, AngularJS – Part 3
In the previous blogs we built the landing page using Thymeleaf, Bower and Bootstrap and deployed it to Heroku. In this blog we will introduce some functionality with AngularJS for front end and Spring Boot Webservices at backend. We will begin with Login/Logout section. Lets begin with installing AngularJS in our application using bower. Introducing AngularJS $ bower install angular --save ...
Read More »Approaches to binding a Spring Boot application to a service in Cloud Foundry
If you want to try out Cloud Foundry the simplest way to do that is to download the excellent PCF Dev or to create a trial account at the Pivotal Web Services site. The rest of the post assumes that you have an installation of Cloud Foundry available to you and that you have a high level understanding of Cloud Foundry. The objective ...
Read More »Spring Boot and Database initialization
Spring boot is hands down a great framework, saving the developer a lot of time and energy when developing a spring application. One of its great features is database initialization. You can use spring boot in order to initialize your sql database. We will start with the gradle file group 'com.gkatzioura' version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.5 buildscript { repositories ...
Read More »Laziness at extreme: developing JAX-RS services with Spring Boot
I think it would be fair to state that we, as software developers, are always looking for the ways to write less code which does more stuff, automagically or not. With this regards, Spring Boot project, proud member of the Spring portfolio, disrupted the traditional approaches, dramatically speeding up and simplifying Spring-based applications development. There is a lot to be ...
Read More »Build a new Web Application from scratch using Spring boot, Thymeleaf, AngularJS – Part 2
In this series of blogs we are building a complete web app using Springboot,Angular, etc. In the last blog, we made a basic landing page with Thymeleaf. In this blog we will introduce bower, which is used to manage front end dependencies like CSS,JS. 1.) Bower Install bower using this link. After bower is installed, we need to configure it to use ...
Read More »Build a new Web Application from scratch using Spring boot, Thymeleaf, AngularJS – Part 1
In this series of blog posts we will be building a complete responsive web application using the following tech stack : 1) Spring boot – Spring MVC web – Spring Data JPA – Spring Security 2) Thymeleaf for server side templating 3) Angular JS for client side MVC ( including JS dependency management with bower) 4) Deploy the app on ...
Read More »Make running your Spring Boot application in the cloud super easy with Boxfuse
A few days ago I started building an iOS app that would be using a REST API to retrieve and store data. This REST API would be a server application that I also have to build. Since I am familiair with Java and Spring I decided to use Spring Boot as framework. To be able to use it with my ...
Read More »